net/hinic/base: fix LRO

The Rx queue must config as ceq disables, and must set MSI-X
state disabled. Otherwise when LRO is enables, there will be
problems with packet aggregation because of firmware.

Fixes: 9d02f40d6503 ("net/hinic: fix LRO")
Cc: stable@dpdk.org

Signed-off-by: Guoyang Zhou <zhouguoyang@huawei.com>
This commit is contained in:
Guoyang Zhou 2021-07-16 17:54:29 +08:00 committed by Thomas Monjalon
parent 2cfd68ec40
commit 68fa836d0f

View File

@ -230,8 +230,8 @@ static void hinic_rq_prepare_ctxt(struct hinic_rq *rq,
wq_block_pfn_hi = upper_32_bits(wq_block_pfn);
wq_block_pfn_lo = lower_32_bits(wq_block_pfn);
/* must config as ceq enable but do not generate ceq */
rq_ctxt->ceq_attr = RQ_CTXT_CEQ_ATTR_SET(1, EN) |
/* config as ceq disable, but must set msix state disable */
rq_ctxt->ceq_attr = RQ_CTXT_CEQ_ATTR_SET(0, EN) |
RQ_CTXT_CEQ_ATTR_SET(1, OWNER);
rq_ctxt->pi_intr_attr = RQ_CTXT_PI_SET(pi_start, IDX) |