]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix the max tx size according to user manual
authorYunsheng Lin <linyunsheng@huawei.com>
Tue, 19 Oct 2021 14:16:31 +0000 (22:16 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Oct 2021 10:38:11 +0000 (11:38 +0100)
commitadfb7b4966c0c4c63a791f202b8b3837b07a9ece
tree9d6ef6fd3b9cf5128d84ac657b869036fcb098fd
parent731797fdffa3d083db536e2fdd07ceb050bb40b1
net: hns3: fix the max tx size according to user manual

Currently the max tx size supported by the hw is calculated by
using the max BD num supported by the hw. According to the hw
user manual, the max tx size is fixed value for both non-TSO and
TSO skb.

This patch updates the max tx size according to the manual.

Fixes: 8ae10cfb5089("net: hns3: support tx-scatter-gather-fraglist feature")
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h