summaryrefslogtreecommitdiff
path: root/examples/ipv4_multicast
diff options
context:
space:
mode:
authorWei Zhao <wei.zhao1@intel.com>2018-10-17 15:41:26 +0800
committerThomas Monjalon <thomas@monjalon.net>2018-10-29 02:57:43 +0100
commit23021f1c6bb8a5e35cf92dfe91ca9ce171b06997 (patch)
tree22698dde6624ddfba4f4829936cbeb377cf195b1 /examples/ipv4_multicast
parent8298310ffaddd1e2e9941b955c168476adb54f21 (diff)
downloaddpdk-23021f1c6bb8a5e35cf92dfe91ca9ce171b06997.zip
dpdk-23021f1c6bb8a5e35cf92dfe91ca9ce171b06997.tar.gz
dpdk-23021f1c6bb8a5e35cf92dfe91ca9ce171b06997.tar.xz
examples/ipv4_multicast: enable multicast promiscuous
This example has not been enable for receiving multicast packet, so it will drop multicast packet. Users must send packet with ether MAC destination address the same as pf port MAC address, in order to forward packet successfully, but this is an example for forwarding ipv4 multicastpacket. So calling function rte_eth_promiscuous_enable() or rte_eth_allmulticast_enable() can enable promiscuous mode of all multicast packet. And also, DPDK has rte API function of rte_eth_dev_set_mc_addr_list() for setting specific multicast filter table for specific multicast IP address, but this example do not support this configuration, so it need to be enable multicast promiscuous mode instead. Signed-off-by: Wei Zhao <wei.zhao1@intel.com> Tested-by: Dong Wang <dong1.wang@intel.com>
Diffstat (limited to 'examples/ipv4_multicast')
-rw-r--r--examples/ipv4_multicast/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ipv4_multicast/main.c b/examples/ipv4_multicast/main.c
index 6530d48..4073a49 100644
--- a/examples/ipv4_multicast/main.c
+++ b/examples/ipv4_multicast/main.c
@@ -773,7 +773,7 @@ main(int argc, char **argv)
qconf->tx_queue_id[portid] = queueid;
queueid++;
}
-
+ rte_eth_allmulticast_enable(portid);
/* Start device */
ret = rte_eth_dev_start(portid);
if (ret < 0)