net/bnxt: optimize Tx batching
authorSriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Wed, 15 May 2019 18:08:16 +0000 (11:08 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 27 May 2019 16:09:07 +0000 (18:09 +0200)
commit220de9869bc3877bb493f6cccd96aabe98adeb6b
tree311d0a227659880b4f64b9f33d594c11dbc8914f
parentadcee0fc845f653ca288807467f29c7c7c3e532a
net/bnxt: optimize Tx batching

This patch adds a few optimizations to Tx batching. Instead of
specifying 'cmpl_next' to bnxt_start_xmit() as a hint to enable
completion for a given packet, request for completion on the last
successfully enqueued TxBD. This takes care of both success and
error cases. It eliminates 'cmpl_next' arg and related per-packet
condition checks around it.

Fixes: 5735eb241947 ("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>
drivers/net/bnxt/bnxt_txr.c