aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h
diff options
context:
space:
mode:
authorKejian Yan <yankejian@huawei.com>2016-03-22 16:06:30 +0800
committerDavid S. Miller <davem@davemloft.net>2016-03-22 15:45:58 -0400
commit211b1384030d3b94f962573f9bc5e5726bf79197 (patch)
treeaa321cca404e81c2f9deb8236fb06cb4d25ce4a7 /drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h
parentnet: hns: fix the bug about mtu setting (diff)
downloadlinux-dev-211b1384030d3b94f962573f9bc5e5726bf79197.tar.xz
linux-dev-211b1384030d3b94f962573f9bc5e5726bf79197.zip
net: hns: adds limitation for debug port mtu
If mtu for debug port is set more than 1500, it may cause that packets are dropped by ppe. So maximum value for debug port should be 1500. 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 '')
-rw-r--r--drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h1
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 7b47701daeca..823b6e78c8aa 100644
--- a/drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h
+++ b/drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h
@@ -28,6 +28,7 @@ struct dsaf_device;
#define MAC_MAX_MTU 9600
#define MAC_MAX_MTU_V2 9728
#define MAC_MIN_MTU 68
+#define MAC_MAX_MTU_DBG MAC_DEFAULT_MTU
#define MAC_DEFAULT_PAUSE_TIME 0xff