Skip to contentSkip to conversation

examples/ipv4_multicast: enable multicast promiscuous for all port

PATCH Applied Wei Zhao 3 participants 6 messages Oct 17, 2018 – Oct 29, 2018

lore
Share & tools
lore

Wei Zhao

author
#0 lore raw

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
index 6530d48..4073a49 100644
@@ -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
author
#1 lore raw

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 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(-)
(quoted diff) +0 -0

b/examples/ipv4_multicast/main.c index 6530d48..4073a49 100644

examples/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

author
#2 lore raw

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 port

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 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(-)
(quoted diff) +0 -0

b/examples/ipv4_multicast/main.c index 6530d48..4073a49 100644

examples/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

Acked-by
#3 lore raw

Tested 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 port

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 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(-)
(quoted diff) +0 -0

b/examples/ipv4_multicast/main.c index 6530d48..4073a49 100644

examples/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

author
#4 lore raw
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.

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 port

Add 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 port

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 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 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(-)
(quoted diff) +0 -0

b/examples/ipv4_multicast/main.c index 6530d48..4073a49 100644

examples/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

#5 lore raw
In reply to Wang, Dong1

24/10/2018 10:50, Wang, Dong1:

Quoted 3 lines

Tested it with 82599 PF.

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() 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.

Applied, thanks