]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: fix issue of skb segments exceeds descriptor limitation
authorBaowen Zheng <baowen.zheng@corigine.com>
Fri, 8 Jul 2022 10:07:18 +0000 (11:07 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 Jul 2022 11:25:02 +0000 (12:25 +0100)
commitdf28e2acc74560b48a9c5751558a920abeeec61d
tree685fc8037426f8871843d7b959ce53577cc49163
parent64729cc0db762f6210bce4d7121f366730788a5c
nfp: fix issue of skb segments exceeds descriptor limitation

TCP packets will be dropped if the segments number in the tx skb
exceeds limitation when sending iperf3 traffic with --zerocopy option.

we make the following changes:

Get nr_frags in nfp_nfdk_tx_maybe_close_block instead of passing from
outside because it will be changed after skb_linearize operation.

Fill maximum dma_len in first tx descriptor to make sure the whole
head is included in the first descriptor.

Fixes: 2c359c6702e5 ("nfp: add support for NFDK data path")
Signed-off-by: Baowen Zheng <baowen.zheng@corigine.com>
Reviewed-by: Louis Peens <louis.peens@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfdk/dp.c