net/hns3: reduce judgements of free Tx ring space
authorYisen Zhuang <yisen.zhuang@huawei.com>
Thu, 9 Jan 2020 03:15:51 +0000 (11:15 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:46:26 +0000 (19:46 +0100)
commiteb570862a206adb53932525ed19211cee0f940de
tree5f8c2d110650f91badd60103f7a62f9d5e30a05c
parenteab21776717ec6cee13535c9efad724f2ae56aa6
net/hns3: reduce judgements of free Tx ring space

This patch reduces the number of the judgement of the free Tx ring space
in the 'tx_pkt_burst' ops implementation function to avoid performance
loss. According to hardware constraints, we need to reserve a Tx Buffer
Descriptor in the TX ring in hns3 network engine.

Signed-off-by: Yisen Zhuang <yisen.zhuang@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
drivers/net/hns3/hns3_rxtx.c