Skip to contentSkip to conversation

ethdev: use correct QinQ offload flag

PATCH Applied [email protected] 3 participants 4 messages Sep 13, 2019 – Oct 9, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ethdev: use correct QinQ offload flag

From: Vivek Sharma <[email protected]>

Use correct flag for indicating QinQ strip rx offload.

Fixes dfebfc9882fb ("ethdev: support dynamic configuration of QinQ strip")
---
 lib/librte_ethdev/rte_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/librte_ethdev/rte_ethdev.c +1 -1
index 17d183e..bfc0468 100644
@@ -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;
 }
Signature · 1 line
2.7.4
#1 lore raw

Ping!

Thanks,
Vivek

________________________________________
From: [email protected] <[email protected]>
Sent: 13 September 2019 16:44
To: [email protected]
Cc: [email protected]; Vivek Kumar Sharma; [email protected]
Subject: [PATCH] ethdev: use correct QinQ offload flag

From: Vivek Sharma <[email protected]>

Use correct flag for indicating QinQ strip rx offload.

Fixes dfebfc9882fb ("ethdev: support dynamic configuration of QinQ strip")
---
 lib/librte_ethdev/rte_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/librte_ethdev/rte_ethdev.c +1 -1
index 17d183e..bfc0468 100644
@@ -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