diff options
author | Yufeng Mo <moyufeng@huawei.com> | 2021-02-05 16:32:47 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-02-06 14:36:05 -0800 |
commit | e070c8b91ac1c7810c8448b1e5534d1895a0c7f4 (patch) | |
tree | 1cd742d7f9b677416a4da6548e456aca8333e887 /drivers/net/ethernet/hisilicon/hns3/hnae3.h | |
parent | net: hns3: optimize the code when update the tc info (diff) | |
download | linux-dev-e070c8b91ac1c7810c8448b1e5534d1895a0c7f4.tar.xz linux-dev-e070c8b91ac1c7810c8448b1e5534d1895a0c7f4.zip |
net: hns3: add support for obtaining the maximum frame size
Since the newer hardware may supports different frame size,
so add support to obtain the capability from the firmware
instead of the fixed value.
Signed-off-by: Yufeng Mo <moyufeng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hnae3.h')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hnae3.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hnae3.h b/drivers/net/ethernet/hisilicon/hns3/hnae3.h index ba94b3c52ec5..ed4141476257 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hnae3.h +++ b/drivers/net/ethernet/hisilicon/hns3/hnae3.h @@ -284,6 +284,7 @@ struct hnae3_dev_specs { u16 int_ql_max; /* max value of interrupt coalesce based on INT_QL */ u16 max_int_gl; /* max value of interrupt coalesce based on INT_GL */ u8 max_non_tso_bd_num; /* max BD number of one non-TSO packet */ + u16 max_frm_size; }; struct hnae3_client_ops { |