From 041dba5768660fe43386988d9e75379213356982 Mon Sep 17 00:00:00 2001 From: Vivek Sharma Date: Fri, 13 Sep 2019 16:44:49 +0530 Subject: [PATCH] ethdev: fix QinQ offload Use correct flag for indicating QinQ strip rx offload. Fixes: dfebfc9882fb ("ethdev: support dynamic configuration of QinQ strip") Cc: stable@dpdk.org Signed-off-by: Vivek Sharma Reviewed-by: Andrew Rybchenko --- 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 af823607c0..7caaa0be33 100644 --- a/lib/librte_ethdev/rte_ethdev.c +++ b/lib/librte_ethdev/rte_ethdev.c @@ -2936,7 +2936,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.20.1