From: Bernard Iremonger Date: Thu, 13 Apr 2017 09:53:05 +0000 (+0100) Subject: net/i40e: ensure vector mode is not used with QinQ X-Git-Tag: spdx-start~3522 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b6e2e78f5dbece33b64e742331ae949b7ead5373;p=dpdk.git net/i40e: ensure vector mode is not used with QinQ In rx vector mode, QinQ is not supported. When hw_vlan_extend is set for QinQ ensure that rx vector mode is not selected. Fixes: 8e109464c022 ("i40e: allow vector Rx and Tx usage") Cc: stable@dpdk.org Signed-off-by: Bernard Iremonger Acked-by: Konstantin Ananyev --- diff --git a/drivers/net/i40e/i40e_rxtx_vec_common.h b/drivers/net/i40e/i40e_rxtx_vec_common.h index 952fd4b63b..692096684b 100644 --- a/drivers/net/i40e/i40e_rxtx_vec_common.h +++ b/drivers/net/i40e/i40e_rxtx_vec_common.h @@ -234,6 +234,10 @@ i40e_rx_vec_dev_conf_condition_check_default(struct rte_eth_dev *dev) if (rxmode->header_split == 1) return -1; + /* no QinQ support */ + if (rxmode->hw_vlan_extend == 1) + return -1; + return 0; #else RTE_SET_USED(dev);