<div dir="ltr">Hi,<div style="user-select: auto;"><br style="user-select: auto;"></div><div style="user-select: auto;">Is there any other work/changes required for this patch to be submitted?</div><div style="user-select: auto;"><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;white-space:normal"><br style="user-select: auto;"></span></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;white-space:normal">Thanks</span></pre></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 1, 2022 at 3:37 PM huzaifa.rahman <<a href="mailto:huzaifa.rahman@emumba.com">huzaifa.rahman@emumba.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Bugzilla ID: 802<br>
<br>
The ipv4_multicast example does not work with any multicast IPs.<br>
Only a selected few IPs are allowed to send pakcets. These IPs<br>
are listed in an mcast_group_table array along with their respective<br>
port masks. A normal user would not know about this behaviour since<br>
there is no mention of it in the docs<br>
<br>
Added the mcast_group_table in the docs so user would know which<br>
IPs are allowed.<br>
<br>
Signed-off-by: huzaifa.rahman <<a href="mailto:huzaifa.rahman@emumba.com" target="_blank">huzaifa.rahman@emumba.com</a>><br>
---<br>
doc/guides/sample_app_ug/ipv4_multicast.rst | 8 +++++++-<br>
examples/ipv4_multicast/main.c | 2 ++<br>
2 files changed, 9 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/doc/guides/sample_app_ug/ipv4_multicast.rst b/doc/guides/sample_app_ug/ipv4_multicast.rst<br>
index f87f7be57e..7c49212c64 100644<br>
--- a/doc/guides/sample_app_ug/ipv4_multicast.rst<br>
+++ b/doc/guides/sample_app_ug/ipv4_multicast.rst<br>
@@ -22,7 +22,13 @@ There are two key differences from the L2 Forwarding sample application:<br>
<br>
The lookup method is the Four-byte Key (FBK) hash-based method.<br>
The lookup table is composed of pairs of destination IPv4 address (the FBK)<br>
-and a port mask associated with that IPv4 address.<br>
+and a port mask associated with that IPv4 address. By default, the following IP addresses and their respective<br>
+port masks are added:<br>
+<br>
+.. literalinclude:: ../../../examples/ipv4_multicast/main.c<br>
+ :language: c<br>
+ :start-after: Create the mcast group table. 8<<br>
+ :end-before: >8 End of create mcast group table.<br>
<br>
.. note::<br>
<br>
diff --git a/examples/ipv4_multicast/main.c b/examples/ipv4_multicast/main.c<br>
index bdcaa3bcd1..c086149eca 100644<br>
--- a/examples/ipv4_multicast/main.c<br>
+++ b/examples/ipv4_multicast/main.c<br>
@@ -139,6 +139,7 @@ struct mcast_group_params {<br>
uint16_t port_mask;<br>
};<br>
<br>
+/* Create the mcast group table. 8< */<br>
static struct mcast_group_params mcast_group_table[] = {<br>
{RTE_IPV4(224,0,0,101), 0x1},<br>
{RTE_IPV4(224,0,0,102), 0x2},<br>
@@ -156,6 +157,7 @@ static struct mcast_group_params mcast_group_table[] = {<br>
{RTE_IPV4(224,0,0,114), 0xE},<br>
{RTE_IPV4(224,0,0,115), 0xF},<br>
};<br>
+/* >8 End of create mcast group table. */<br>
<br>
/* Send burst of packets on an output interface */<br>
static void<br>
-- <br>
2.25.1<br>
<br>
</blockquote></div>