diff options
author | Kejian Yan <yankejian@huawei.com> | 2016-03-22 16:06:29 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-03-22 15:45:58 -0400 |
commit | da3488bbde50c274a327afa67a141c86c065e0fa (patch) | |
tree | 9b57558daefe6ef8a235ac71bacf084d9f45d520 /drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h | |
parent | 717dd807383b074c1ff3852a05ea5d1289827993 (diff) | |
download | op-kernel-dev-da3488bbde50c274a327afa67a141c86c065e0fa.zip op-kernel-dev-da3488bbde50c274a327afa67a141c86c065e0fa.tar.gz |
net: hns: fix the bug about mtu setting
In chip V1, the maximum mtu value is 9600. But in chip V2, it is 9728.
And it is always configurates as 9600 before this patch.
Signed-off-by: Kejian Yan <yankejian@huawei.com>
Signed-off-by: Yisen Zhuang <Yisen.Zhuang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h b/drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h index 0f60968..7b47701 100644 --- a/drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h +++ b/drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h @@ -26,6 +26,7 @@ struct dsaf_device; #define MAC_DEFAULT_MTU (ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN + ETH_DATA_LEN) #define MAC_MAX_MTU 9600 +#define MAC_MAX_MTU_V2 9728 #define MAC_MIN_MTU 68 #define MAC_DEFAULT_PAUSE_TIME 0xff |