]> 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)
commitf76273fdd22bb36356e3764e53388aea1b60243a
tree9d6ef6fd3b9cf5128d84ac657b869036fcb098fd
parent2d77b41f74819b2a346558f53c6de57d438ac337
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: 3a36e37e33f1("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