numam-dpdk/drivers/net
Sriharsha Basavapatna adcee0fc84 net/bnxt: fix Tx batching
This patch addresses the following issues with Tx batching:

1. Tx stall observed in some conditions:

The batching code doesn't request for a completion when only a partial
chain of packets is transmitted due to mbuf allocation errors. Because
of this, Tx consumer index is not updated correctly and it eventually
leads to qfull condition. Fix this by requesting a completion for the
last packet in the partial chain that is transmitted successfully.

2. Tx stall seen with Jumbo frames:

With jumbo frames, number of TxBDs is > 1. While setting up these
additional BDs in bnxt_start_xmit(), the flags field is being set using
the OR-assignment operator. We end up using a stale value of the flags
field (from a previous use of that descriptor). This results in an
invalid completion and eventually leads to tx stall. Fix this to just
assign the flags field with the right value.

Fixes: 5735eb2419 ("net/bnxt: support Tx batching")
Cc: stable@dpdk.org

Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
2019-05-27 18:09:07 +02:00
..
af_packet net: add rte prefix to ether structures 2019-05-24 13:34:45 +02:00
af_xdp net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
ark net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
atlantic net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
avp net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
axgbe net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
bnx2x net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
bnxt net/bnxt: fix Tx batching 2019-05-27 18:09:07 +02:00
bonding net: add rte prefix to UDP structure 2019-05-24 13:34:46 +02:00
cxgbe net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
dpaa net: add rte prefix to UDP structure 2019-05-24 13:34:46 +02:00
dpaa2 net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
e1000 net: add rte prefix to UDP structure 2019-05-24 13:34:46 +02:00
ena net: add rte prefix to TCP structure 2019-05-24 13:34:46 +02:00
enetc net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
enic net: add rte prefix to UDP structure 2019-05-24 13:34:46 +02:00
failsafe net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
fm10k net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
i40e net/i40e: support MARK and RSS flow action 2019-05-24 14:12:33 +02:00
iavf net: add rte prefix to UDP structure 2019-05-24 13:34:46 +02:00
ice net: add rte prefix to UDP structure 2019-05-24 13:34:46 +02:00
ifc net/ifc: fix used ring update 2019-04-19 14:51:54 +02:00
ipn3ke net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
ixgbe net: add rte prefix to UDP structure 2019-05-24 13:34:46 +02:00
kni net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
liquidio net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
mlx4 net/mlx4: use dynamic log type 2019-05-27 10:20:45 +02:00
mlx5 net/mlx5: fix memory free on queue create error 2019-05-27 10:21:04 +02:00
mvneta net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
mvpp2 net: add rte prefix to IP structure 2019-05-24 13:34:46 +02:00
netvsc net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
nfb net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
nfp net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
null net: add rte prefix to ether functions 2019-05-24 13:34:45 +02:00
octeontx net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
pcap net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
qede net: add rte prefix to UDP structure 2019-05-24 13:34:46 +02:00
ring net: add rte prefix to ether structures 2019-05-24 13:34:45 +02:00
sfc net: add rte prefix to TCP structure 2019-05-24 13:34:46 +02:00
softnic net: add rte prefix to TCP structure 2019-05-24 13:34:46 +02:00
szedata2 net: add rte prefix to ether functions 2019-05-24 13:34:45 +02:00
tap net: add rte prefix to UDP structure 2019-05-24 13:34:46 +02:00
thunderx net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
vdev_netvsc net: add rte prefix to ether functions 2019-05-24 13:34:45 +02:00
vhost net: add rte prefix to ether functions 2019-05-24 13:34:45 +02:00
virtio net: add rte prefix to UDP structure 2019-05-24 13:34:46 +02:00
vmxnet3 net: add rte prefix to UDP structure 2019-05-24 13:34:46 +02:00
Makefile net/ipn3ke: add new driver 2019-04-19 14:51:54 +02:00
meson.build net/ipn3ke: add new driver 2019-04-19 14:51:54 +02:00