net/bnxt: disable vector mode Tx with VLAN offload
The vector mode transmit path does not currently support VLAN tag insertion, so we need to disable vector transmit when transmit VLAN insertion offload is enabled. Fixes: bc4a000f2f53 ("net/bnxt: implement SSE vector mode") Signed-off-by: Lance Richardson <lance.richardson@broadcom.com> Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
This commit is contained in:
parent
c79012a3b0
commit
fca922e8f6
@ -734,13 +734,11 @@ bnxt_transmit_function(__rte_unused struct rte_eth_dev *eth_dev)
|
|||||||
{
|
{
|
||||||
#ifdef RTE_ARCH_X86
|
#ifdef RTE_ARCH_X86
|
||||||
/*
|
/*
|
||||||
* Vector mode receive can be enabled only if scatter tx is not
|
* Vector mode transmit can be enabled only if not using scatter rx
|
||||||
* in use and tx offloads other than VLAN insertion are not
|
* or tx offloads.
|
||||||
* in use.
|
|
||||||
*/
|
*/
|
||||||
if (!eth_dev->data->scattered_rx &&
|
if (!eth_dev->data->scattered_rx &&
|
||||||
!(eth_dev->data->dev_conf.txmode.offloads &
|
!eth_dev->data->dev_conf.txmode.offloads) {
|
||||||
~DEV_TX_OFFLOAD_VLAN_INSERT)) {
|
|
||||||
PMD_DRV_LOG(INFO, "Using vector mode transmit for port %d\n",
|
PMD_DRV_LOG(INFO, "Using vector mode transmit for port %d\n",
|
||||||
eth_dev->data->port_id);
|
eth_dev->data->port_id);
|
||||||
return bnxt_xmit_pkts_vec;
|
return bnxt_xmit_pkts_vec;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user