net/hns3: fix Rx/Tx functions update
authorMin Hu (Connor) <humin29@huawei.com>
Mon, 17 Jan 2022 02:43:00 +0000 (10:43 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 26 Jan 2022 14:52:09 +0000 (15:52 +0100)
commit96c33cfb06cf59b785439058190060bde120f030
tree7a534b7fa9be2e3cc29f9c5ea6a2612b88906850
parentd6dccbd76692c64cff79a821bc73069dc5b043e4
net/hns3: fix Rx/Tx functions update

When fast path operation is introduced, the Rx/Tx function is done by
object 'rte_eth_fp_ops'. So 'rte_eth_fp_ops' should be updated if
'fast-path functions' need to be changed, such as PMD receive function,
prepare function and so on.

This patch fixed receiving packets bug when fast path operation is
introduced.

Fixes: bba636698316 ("net/hns3: support Rx/Tx and related operations")
Fixes: 168b7d79dada ("net/hns3: support set link up/down for PF")
Cc: stable@dpdk.org
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_mp.c
drivers/net/hns3/hns3_rxtx.c