mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
Update brcm2708 to latest 4.14 patches
This commit is contained in:
parent
40a0ec34d5
commit
30b61b0138
7 changed files with 419 additions and 0 deletions
|
@ -0,0 +1,36 @@
|
|||
From 8024dcb1164fd8266f3815aea1ebf7232365de61 Mon Sep 17 00:00:00 2001
|
||||
From: John Greb <h3x4m3r0n@gmail.com>
|
||||
Date: Sun, 6 May 2018 20:01:57 +0000
|
||||
Subject: [PATCH 346/374] usb: gadget ethernet: Re-enable Jumbo frames.
|
||||
|
||||
Commit <eea52743eb5654ec6f52b0e8b4aefec952543697> upstream
|
||||
|
||||
Fixes: <b3e3893e1253> ("net: use core MTU range checking")
|
||||
which patched only one of two functions used to setup the
|
||||
USB Gadget Ethernet driver, causing a serious performance
|
||||
regression in the ability to increase mtu size above 1500.
|
||||
|
||||
Signed-off-by: John Greb <h3x4m3r0n@gmail.com>
|
||||
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
|
||||
---
|
||||
drivers/usb/gadget/function/u_ether.c | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/drivers/usb/gadget/function/u_ether.c b/drivers/usb/gadget/function/u_ether.c
|
||||
index bdbc3fdc7c4f..4801ab3ae26f 100644
|
||||
--- a/drivers/usb/gadget/function/u_ether.c
|
||||
+++ b/drivers/usb/gadget/function/u_ether.c
|
||||
@@ -848,6 +848,10 @@ struct net_device *gether_setup_name_default(const char *netname)
|
||||
net->ethtool_ops = &ops;
|
||||
SET_NETDEV_DEVTYPE(net, &gadget_type);
|
||||
|
||||
+ /* MTU range: 14 - 15412 */
|
||||
+ net->min_mtu = ETH_HLEN;
|
||||
+ net->max_mtu = GETHER_MAX_ETH_FRAME_LEN;
|
||||
+
|
||||
return net;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(gether_setup_name_default);
|
||||
--
|
||||
2.16.1
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue