net/hns3: decrease non-nearby memory access in Rx
authorChengchang Tang <tangchengchang@huawei.com>
Wed, 1 Jul 2020 11:54:35 +0000 (19:54 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 7 Jul 2020 21:38:26 +0000 (23:38 +0200)
commit8c7449779c4526d27205043560a21f0e2c2f622b
treeb7842a098a2de2eb24e24b39890c5b3bbda27c7c
parent1f295c40da3de1722ed6f6f0bc0853966b6ff4ae
net/hns3: decrease non-nearby memory access in Rx

Currently, hns3 PMD driver needs know the PVID configuration state and
do different processing in the 'rx_pkt_burst' ops implementation
function.

This patch adds a member to struct hns3_rx_queue/hns3_tx_queue of the
driver to indicate the PVID configuration status, so it isn't need
to access other data structure in the 'rx_pkt_burst' ops implementation,
to avoid performance loss because of reducing cache miss.

Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
drivers/net/hns3/hns3_ethdev.c
drivers/net/hns3/hns3_rxtx.c
drivers/net/hns3/hns3_rxtx.h