mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
msm: mhi-net-dev: Set MIN and MAX MTU size for Ethernet packet
Set MIN and MAX MTU for ethernet packets, so the user can configure MTU size. The default MTU size for the ethernet packet is 1500 bytes. With this change, the user/client can update the max MTU size up to 8192 (MHI_NET_DEFAULT_MTU) bytes. Change-Id: I7da6d11599bde1a6d3a9ac9b238a4ee57a7bbbba Signed-off-by: Veerabhadrarao Badiganti <quic_vbadigan@quicinc.com> Signed-off-by: Sai Chaitanya Kaveti <quic_skaveti@quicinc.com>
This commit is contained in:
parent
d8d32ae605
commit
3ed6f3203b
1 changed files with 2 additions and 0 deletions
|
|
@ -449,6 +449,8 @@ static void mhi_dev_net_ether_setup(struct net_device *dev)
|
|||
{
|
||||
dev->netdev_ops = &mhi_dev_net_ops_ip;
|
||||
ether_setup(dev);
|
||||
dev->min_mtu = ETH_MIN_MTU;
|
||||
dev->max_mtu = ETH_MAX_MTU;
|
||||
mhi_dev_net_log(MHI_INFO,
|
||||
"mhi_dev_net Ethernet setup\n");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue