]> 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)
commitb36da68477fd387f9ab8ad36c53076c3f0c440dc
tree9d6ef6fd3b9cf5128d84ac657b869036fcb098fd
parentceefe1f7c2adef6c331fe522da6df15dcc2adbe8
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: b690ebadab3c("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