linux-stable/drivers/net/ethernet
Giuseppe CAVALLARO 45db81e159 stmmac: limit max_mtu in case of 4KiB and use __netdev_alloc_skb (V2)
Problem using big mtu around 4096 bytes is you end allocating (4096
+NET_SKB_PAD + NET_IP_ALIGN + sizeof(struct skb_shared_info) bytes ->
8192 bytes : order-1 pages

It's better to limit the mtu to SKB_MAX_HEAD(NET_SKB_PAD),
to have no more than one page per skb.

Also the patch changes the netdev_alloc_skb_ip_align() done in
init_dma_desc_rings() and uses a variant allowing GFP_KERNEL allocations
allowing the driver to load even in case of memory pressure.

Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-10-19 19:24:18 -04:00
..
3com net: add skb frag size accessors 2011-10-19 03:10:46 -04:00
8390
adaptec net: add skb frag size accessors 2011-10-19 03:10:46 -04:00
adi
aeroflex net: add skb frag size accessors 2011-10-19 03:10:46 -04:00
alteon net: add skb frag size accessors 2011-10-19 03:10:46 -04:00
amd
apple cs89x0: Move the driver into the Cirrus dir 2011-10-18 23:41:43 -04:00
atheros net: add skb frag size accessors 2011-10-19 03:10:46 -04:00
broadcom net: add skb frag size accessors 2011-10-19 03:10:46 -04:00
brocade net: add skb frag size accessors 2011-10-19 03:10:46 -04:00
cadence
chelsio net: add skb frag size accessors 2011-10-19 03:10:46 -04:00
cirrus cs89x0: Move the driver into the Cirrus dir 2011-10-18 23:41:43 -04:00
cisco net: add skb frag size accessors 2011-10-19 03:10:46 -04:00
davicom
dec
dlink
emulex net: add skb frag size accessors 2011-10-19 03:10:46 -04:00
faraday ftmac100: fix skb truesize underestimation 2011-10-13 22:28:29 -04:00
freescale
fujitsu
hp
i825xx
ibm net: add skb frag size accessors 2011-10-19 03:10:46 -04:00
icplus
intel net: add skb frag size accessors 2011-10-19 03:10:46 -04:00
marvell net: add skb frag size accessors 2011-10-19 03:10:46 -04:00
mellanox mlx4_en: Updating driver version 2011-10-19 03:42:27 -04:00
micrel net: add skb frag size accessors 2011-10-19 03:10:46 -04:00
microchip
myricom net: add skb frag size accessors 2011-10-19 03:10:46 -04:00
natsemi net: add skb frag size accessors 2011-10-19 03:10:46 -04:00
neterion net: add skb frag size accessors 2011-10-19 03:10:46 -04:00
nuvoton
nvidia net: add skb frag size accessors 2011-10-19 03:10:46 -04:00
octeon
oki-semi net: Remove unnecessary driver assignments of ethtool_ringparam fields to zero 2011-10-07 19:13:28 -04:00
packetengines
pasemi net: add skb frag size accessors 2011-10-19 03:10:46 -04:00
qlogic net: add skb frag size accessors 2011-10-19 03:10:46 -04:00
racal
rdc r6040: bump version to 0.28 and date to 07Oct2011. 2011-10-09 23:50:59 -04:00
realtek net: add skb frag size accessors 2011-10-19 03:10:46 -04:00
renesas
seeq
sfc net: add skb frag size accessors 2011-10-19 03:10:46 -04:00
sgi
sis
smsc
stmicro stmmac: limit max_mtu in case of 4KiB and use __netdev_alloc_skb (V2) 2011-10-19 19:24:18 -04:00
sun net: add skb frag size accessors 2011-10-19 03:10:46 -04:00
tehuti net: add skb frag size accessors 2011-10-19 03:10:46 -04:00
ti
tile net: add skb frag size accessors 2011-10-19 03:10:46 -04:00
toshiba
tundra net: add skb frag size accessors 2011-10-19 03:10:46 -04:00
via net: add skb frag size accessors 2011-10-19 03:10:46 -04:00
xilinx net: add skb frag size accessors 2011-10-19 03:10:46 -04:00
xircom
xscale
dnet.c
dnet.h
ethoc.c
fealnx.c
jme.c net: add skb frag size accessors 2011-10-19 03:10:46 -04:00
jme.h
Kconfig
korina.c
lantiq_etop.c
Makefile
mipsnet.c
netx-eth.c
s6gmac.c