* [dpdk-dev] [PATCH] [PATCH] bonding: add QinQ packet xmit hash support
@ 2018-09-15 1:36 Lilijun
0 siblings, 0 replies; 2+ messages in thread
From: Lilijun @ 2018-09-15 1:36 UTC (permalink / raw)
To: dev; +Cc: Lilijun
For QinQ packet with ether type 0x88a8, dpdk bond's xmit hash policy is
not worked to get the ip or port field.
Change-Id: Icb6843aff0a0d176b90ebe19a5c7125412fea5ce
Signed-off-by: Lilijun <jerry.lilijun@huawei.com>
---
drivers/net/bonding/rte_eth_bond_pmd.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c
index 58f7377..4417422 100644
--- a/drivers/net/bonding/rte_eth_bond_pmd.c
+++ b/drivers/net/bonding/rte_eth_bond_pmd.c
@@ -37,7 +37,8 @@
{
size_t vlan_offset = 0;
- if (rte_cpu_to_be_16(ETHER_TYPE_VLAN) == *proto) {
+ if (rte_cpu_to_be_16(ETHER_TYPE_VLAN) == *proto ||
+ rte_cpu_to_be_16(ETHER_TYPE_QINQ) == *proto) {
struct vlan_hdr *vlan_hdr = (struct vlan_hdr *)(eth_hdr + 1);
vlan_offset = sizeof(struct vlan_hdr);
--
1.8.4.msysgit.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* [dpdk-dev] [PATCH] [PATCH] bonding: add QinQ packet xmit hash support
@ 2018-09-15 1:48 Lilijun
0 siblings, 0 replies; 2+ messages in thread
From: Lilijun @ 2018-09-15 1:48 UTC (permalink / raw)
To: dev; +Cc: Lilijun
For QinQ packet with ether type 0x88a8, dpdk bond's xmit hash policy is
not worked to get the ip or port field.
Change-Id: Icb6843aff0a0d176b90ebe19a5c7125412fea5ce
Signed-off-by: Lilijun <jerry.lilijun@huawei.com>
---
drivers/net/bonding/rte_eth_bond_pmd.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c
index 58f7377..4417422 100644
--- a/drivers/net/bonding/rte_eth_bond_pmd.c
+++ b/drivers/net/bonding/rte_eth_bond_pmd.c
@@ -37,7 +37,8 @@
{
size_t vlan_offset = 0;
- if (rte_cpu_to_be_16(ETHER_TYPE_VLAN) == *proto) {
+ if (rte_cpu_to_be_16(ETHER_TYPE_VLAN) == *proto ||
+ rte_cpu_to_be_16(ETHER_TYPE_QINQ) == *proto) {
struct vlan_hdr *vlan_hdr = (struct vlan_hdr *)(eth_hdr + 1);
vlan_offset = sizeof(struct vlan_hdr);
--
1.8.4.msysgit.0
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-09-15 1:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-15 1:36 [dpdk-dev] [PATCH] [PATCH] bonding: add QinQ packet xmit hash support Lilijun
2018-09-15 1:48 Lilijun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).