[dpdk-dev] [PATCH] ethdev: use correct QinQ offload flag

Vivek Kumar Sharma viveksharma at marvell.com
Sun Sep 29 06:29:05 CEST 2019


Ping!


Thanks,
Vivek

________________________________________
From: viveksharma at marvell.com <viveksharma at marvell.com>
Sent: 13 September 2019 16:44
To: dev at dpdk.org
Cc: intoviveksharma at gmail.com; Vivek Kumar Sharma; stable at dpdk.org
Subject: [PATCH] ethdev: use correct QinQ offload flag

From: Vivek Sharma <viveksharma at marvell.com>

Use correct flag for indicating QinQ strip rx offload.

Fixes: dfebfc9882fb ("ethdev: support dynamic configuration of QinQ strip")
Cc: stable at dpdk.org

Signed-off-by: Vivek Sharma <viveksharma at marvell.com>
---
 lib/librte_ethdev/rte_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librte_ethdev/rte_ethdev.c b/lib/librte_ethdev/rte_ethdev.c
index 17d183e..bfc0468 100644
--- a/lib/librte_ethdev/rte_ethdev.c
+++ b/lib/librte_ethdev/rte_ethdev.c
@@ -2823,7 +2823,7 @@ rte_eth_dev_get_vlan_offload(uint16_t port_id)
                ret |= ETH_VLAN_EXTEND_OFFLOAD;

        if (*dev_offloads & DEV_RX_OFFLOAD_QINQ_STRIP)
-               ret |= DEV_RX_OFFLOAD_QINQ_STRIP;
+               ret |= ETH_QINQ_STRIP_OFFLOAD;

        return ret;
 }
--
2.7.4



More information about the dev mailing list