net/bnxt: move Tx bd checking to header file
authorLance Richardson <lance.richardson@broadcom.com>
Wed, 29 May 2019 21:02:21 +0000 (17:02 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 13 Jun 2019 14:37:58 +0000 (23:37 +0900)
commit355b482e127a82bed9969420bd6df56fff161e29
tree6f25d72e37436cb427431c2f88e83b03cccf40cf
parent0b7591e34f66239b968d17ccd69ee4bcbab085ac
net/bnxt: move Tx bd checking to header file

To allow sharing of tx_bds_in_hw() and bnxt_tx_avail() between
vector-mode and non-vector transmit functions, move these functions
into bnxt_txr.h.

Signed-off-by: Lance Richardson <lance.richardson@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/bnxt/bnxt_txr.c
drivers/net/bnxt/bnxt_txr.h