net/hns3: fix vector Rx/Tx when PTP enabled
authorMin Hu (Connor) <humin29@huawei.com>
Mon, 17 Jan 2022 02:43:02 +0000 (10:43 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 26 Jan 2022 14:52:09 +0000 (15:52 +0100)
commit3ca3dcd6510127162aaef359cf5b28684693da07
treef4e8ba02564f4a8c6127af25db60e5560c8fc688
parent5a2b22b40f3052a8898194fd8c235440ad1d85d8
net/hns3: fix vector Rx/Tx when PTP enabled

If hardware supports IEEE 1588 PTP, PTP capability will be set.
Currently, vec and sve burst is unsupported when PTP capability is set.

For sake of Rx/Tx performance, IEEE 1588 PTP is not supported in sve or
vec burst mode. When enabling IEEE 1588 PTP, Rx/Tx burst mode should be
simple or common. Rx/Tx burst mode could be set like this, for example:
-a 0000:35:00.0,rx_func_hint=common,tx_func_hint=common

This patch supports vec and sve burst when PTP is disabled. And only
support simple or common burst When PTP is enabled.

Fixes: 38b539d96eb6 ("net/hns3: support IEEE 1588 PTP")
Cc: stable@dpdk.org
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
doc/guides/nics/hns3.rst
drivers/net/hns3/hns3_ethdev.c
drivers/net/hns3/hns3_ptp.c
drivers/net/hns3/hns3_rxtx.c
drivers/net/hns3/hns3_rxtx_vec.c