examples/ipv4_multicast: enable multicast promiscuous for all port
PATCH 1/1 examples/ipv4_multicast: enable multicast promiscuous for all port
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 aslo, 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.
--- examples/ipv4_multicast/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
examples/ipv4_multicast/main.c +1 -1
@@ -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 )
Signature · 1 line
2.7.5
By the way, I think the maintainer's opinion is important for this change, but there is no maintainer name for this example in file MAINTAINERS!
Quoted 41 lines
-----Original Message-----
From: Zhao1, Wei
Sent: Wednesday, October 17, 2018 3:41 PM
To: [email protected]
Cc: [email protected]; Zhang, Qi Z <[email protected]>; Yigit, Ferruh <[email protected]>; Zhao1, Wei <[email protected]>
Subject: [PATCH] examples/ipv4_multicast: enable multicast promiscuous for all portThis 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()orrte_eth_allmulticast_enable()can enable promiscuous mode of all multicast packet. And aslo, DPDK has rte API function ofrte_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 <[email protected]>--- examples/ipv4_multicast/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)(quoted diff) +0
-0
b/examples/ipv4_multicast/main.cindex 6530d48..4073a49 100644examples/ipv4_multicast/main.c +1
-2@@ -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 ) --2.7.5
Add Wang Dong in the mailing list, he has test this patch.
Quoted 53 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Zhao1, Wei
Sent: Wednesday, October 17, 2018 4:09 PM
To: [email protected]
Cc: [email protected]; Zhang, Qi Z <[email protected]>; Yigit, Ferruh <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] examples/ipv4_multicast: enable multicast promiscuous for all portBy the way, I think the maintainer's opinion is important for this change, but there is no maintainer name for this example in file
MAINTAINERS!Quoted 41 lines
-----Original Message-----
From: Zhao1, Wei
Sent: Wednesday, October 17, 2018 3:41 PM
To: [email protected]
Cc: [email protected]; Zhang, Qi Z <[email protected]>; Yigit, Ferruh <[email protected]>; Zhao1, Wei <[email protected]>
Subject: [PATCH] examples/ipv4_multicast: enable multicast promiscuous for all portThis 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()orrte_eth_allmulticast_enable()can enable promiscuous mode of all multicast packet. And aslo, DPDK has rte API function ofrte_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 <[email protected]>--- examples/ipv4_multicast/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)(quoted diff) +0
-0
b/examples/ipv4_multicast/main.cindex 6530d48..4073a49 100644examples/ipv4_multicast/main.c +1
-2@@ -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 ) --2.7.5
Wang, Dong1
Acked-byTested it with 82599 PF.
-----Original Message-----
From: Zhao1, Wei
Sent: Wednesday, October 24, 2018 16:11
To: Zhao1, Wei <[email protected]>; [email protected]
Cc: [email protected]; Zhang, Qi Z <[email protected]>; Yigit, Ferruh <[email protected]>; Wang, Dong1 <[email protected]>; Thomas Monjalon <[email protected]>
Subject: RE: [PATCH] examples/ipv4_multicast: enable multicast promiscuous for all port
Add Wang Dong in the mailing list, he has test this patch.
Quoted 53 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Zhao1, Wei
Sent: Wednesday, October 17, 2018 4:09 PM
To: [email protected]
Cc: [email protected]; Zhang, Qi Z <[email protected]>; Yigit, Ferruh <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] examples/ipv4_multicast: enable multicast promiscuous for all portBy the way, I think the maintainer's opinion is important for this change, but there is no maintainer name for this example in file
MAINTAINERS!Quoted 41 lines
-----Original Message-----
From: Zhao1, Wei
Sent: Wednesday, October 17, 2018 3:41 PM
To: [email protected]
Cc: [email protected]; Zhang, Qi Z <[email protected]>; Yigit, Ferruh <[email protected]>; Zhao1, Wei <[email protected]>
Subject: [PATCH] examples/ipv4_multicast: enable multicast promiscuous for all portThis 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()orrte_eth_allmulticast_enable()can enable promiscuous mode of all multicast packet. And aslo, DPDK has rte API function ofrte_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 <[email protected]>--- examples/ipv4_multicast/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)(quoted diff) +0
-0
b/examples/ipv4_multicast/main.cindex 6530d48..4073a49 100644examples/ipv4_multicast/main.c +1
-2@@ -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 ) --2.7.5
Quoted 11 lines
-----Original Message-----
From: Wang, Dong1
Sent: Wednesday, October 24, 2018 4:51 PM
To: Zhao1, Wei <[email protected]>; [email protected]
Cc: [email protected]; Zhang, Qi Z <[email protected]>; Yigit, Ferruh <[email protected]>; Thomas Monjalon <[email protected]>
Subject: RE: [PATCH] examples/ipv4_multicast: enable multicast promiscuous for all port
Quoted 4 lines
Tested it with 82599 PF.
Acked-by Wang Dong <[email protected]>
Thank you!
Quoted 67 lines
-----Original Message-----
From: Zhao1, Wei
Sent: Wednesday, October 24, 2018 16:11
To: Zhao1, Wei <[email protected]>; [email protected]
Cc: [email protected]; Zhang, Qi Z <[email protected]>; Yigit, Ferruh <[email protected]>; Wang, Dong1 <[email protected]>; Thomas Monjalon <[email protected]>
Subject: RE: [PATCH] examples/ipv4_multicast: enable multicast promiscuous for all portAdd Wang Dong in the mailing list, he has test this patch.
Quoted 11 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Zhao1, Wei
Sent: Wednesday, October 17, 2018 4:09 PM
To: [email protected]
Cc: [email protected]; Zhang, Qi Z <[email protected]>; Yigit, Ferruh <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] examples/ipv4_multicast: enable multicast promiscuous for all portBy the way, I think the maintainer's opinion is important for this change, but there is no maintainer name for this example in file
MAINTAINERS!Quoted 42 lines
Quoted 42 lines
-----Original Message-----
From: Zhao1, Wei
Sent: Wednesday, October 17, 2018 3:41 PM
To: [email protected]
Cc: [email protected]; Zhang, Qi Z <[email protected]>; Yigit, Ferruh <[email protected]>; Zhao1, Wei <[email protected]>
Subject: [PATCH] examples/ipv4_multicast: enable multicast promiscuous for all portThis 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()orrte_eth_allmulticast_enable()can enable promiscuous mode of all multicast packet. And aslo, DPDK has rte API function ofrte_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 <[email protected]>--- examples/ipv4_multicast/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)(quoted diff) +0
-0
b/examples/ipv4_multicast/main.cindex 6530d48..4073a49 100644examples/ipv4_multicast/main.c +1
-2@@ -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 ) --2.7.5
Thomas Monjalon
Applied24/10/2018 10:50, Wang, Dong1:
Quoted 3 lines
Tested it with 82599 PF.
Acked-by Wang Dong <[email protected]>
The correct tag is probably Tested-by
Quoted 17 lines
From: Zhao1, Wei
Add Wang Dong in the mailing list, he has test this patch.
Quoted 13 lines
Quoted 13 lines
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()orrte_eth_allmulticast_enable()can enable promiscuous mode of all multicast packet. And aslo, DPDK has rte API function ofrte_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 <[email protected]>
Applied, thanks