]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: hns: adds limitation for debug port mtu
authorKejian Yan <yankejian@huawei.com>
Tue, 22 Mar 2016 08:06:30 +0000 (16:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Mar 2016 19:45:58 +0000 (15:45 -0400)
commit211b1384030d3b94f962573f9bc5e5726bf79197
treeaa321cca404e81c2f9deb8236fb06cb4d25ce4a7
parentda3488bbde50c274a327afa67a141c86c065e0fa
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>
drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c
drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h