From: Tao Zhu Date: Wed, 30 Oct 2019 18:21:31 +0000 (+0800) Subject: net/i40e: handle QinQ strip X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b96fb2f0d22b55a8168006912c4af335ada0e943;p=dpdk.git net/i40e: handle QinQ strip Qinq strip is not supported by i40e. When user tries to turn on QinQ strip, the driver gives unsupported return value and log. Signed-off-by: Tao Zhu Acked-by: Beilei Xing Reviewed-by: Xiaolong Ye --- diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 91d529b2f3..5abf60e36a 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -3847,6 +3847,11 @@ i40e_vlan_offload_set(struct rte_eth_dev *dev, int mask) struct i40e_vsi *vsi = pf->main_vsi; struct rte_eth_rxmode *rxmode; + if (mask & ETH_QINQ_STRIP_MASK) { + PMD_DRV_LOG(ERR, "Strip qinq is not supported."); + return -ENOTSUP; + } + rxmode = &dev->data->dev_conf.rxmode; if (mask & ETH_VLAN_FILTER_MASK) { if (rxmode->offloads & DEV_RX_OFFLOAD_VLAN_FILTER)