linux/drivers/net/ethernet/stmicro/stmmac
Giuseppe CAVALLARO e527c4a769 stmmac: fix oversized frame reception
The receive skb buffers can be preallocated when the link is opened
according to mtu size.
While testing on a network environment with not standard MTU (e.g. 3000),
a panic occurred if an incoming packet had a length greater than rx skb
buffer size. This is because the HW is programmed to copy, from the DMA,
an Jumbo frame and the Sw must check if the allocated buffer is enough to
store the frame.

Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-11-30 14:52:52 -05:00
..
chain_mode.c stmmac: fix dma api misuse 2014-08-29 19:54:36 -07:00
common.h stmmac: Configure Flow Control to work correctly based on rxfifo size 2015-04-16 13:58:42 -04:00
descs_com.h
descs.h stmmac: troubleshoot unexpected bits in des0 & des1 2015-06-24 02:38:53 -07:00
dwmac100_core.c net: stmmac: Support devicetree configs for mcast and ucast filter entries 2014-07-31 14:13:29 -07:00
dwmac100_dma.c stmmac: Configure Flow Control to work correctly based on rxfifo size 2015-04-16 13:58:42 -04:00
dwmac100.h
dwmac1000_core.c stmmac: Enable unicast pause frame detect in GMAC Register 6 2015-04-16 13:58:42 -04:00
dwmac1000_dma.c stmmac: Configure Flow Control to work correctly based on rxfifo size 2015-04-16 13:58:42 -04:00
dwmac1000.h stmmac: Add defines and documentation for enabling flow control 2015-04-16 13:58:42 -04:00
dwmac_dma.h stmicro: Remove extern from function prototypes 2013-09-24 12:54:08 -07:00
dwmac_lib.c stmmac: dity-up and rework the driver debug levels 2013-07-02 16:04:53 -07:00
dwmac-generic.c stmmac: remove setup/free glue callbacks 2015-07-29 00:13:25 -07:00
dwmac-ipq806x.c stmmac: avoid ipq806x constant overflow warning 2015-11-12 16:11:49 -05:00
dwmac-lpc18xx.c stmmac: add proper probe function to dwmac-lpc18xx 2015-07-20 20:45:57 -07:00
dwmac-meson.c stmmac: add proper probe function to dwmac-meson 2015-07-20 20:45:57 -07:00
dwmac-rk.c net: stmmac: fix double-initialization of phy_iface 2015-11-05 14:09:26 -05:00
dwmac-socfpga.c stmmac: dwmac-socfpga: turn setup callback into a probe function 2015-07-29 00:13:23 -07:00
dwmac-sti.c stmmac: dwmac-sti: fix st,tx-retime-src check 2015-11-30 14:52:51 -05:00
dwmac-sunxi.c stmmac: dwmac-sunxi: turn setup callback into a probe function 2015-07-29 00:13:23 -07:00
enh_desc.c stmmac: troubleshoot unexpected bits in des0 & des1 2015-06-24 02:38:53 -07:00
Kconfig stmmac: add ipq806x glue layer 2015-05-30 17:04:36 -07:00
Makefile stmmac: add ipq806x glue layer 2015-05-30 17:04:36 -07:00
mmc_core.c stmmac: Trivial: fix typo in constant name 2015-06-29 12:45:04 -07:00
mmc.h stmmac: fix tipo on mmc crc error 2014-08-29 19:54:36 -07:00
norm_desc.c stmmac: troubleshoot unexpected bits in des0 & des1 2015-06-24 02:38:53 -07:00
ring_mode.c stmmac: fix dma api misuse 2014-08-29 19:54:36 -07:00
stmmac_ethtool.c stmmac: Correctly report PTP capabilities. 2015-11-01 17:05:43 -05:00
stmmac_hwtstamp.c driver:stmmac: Adjust time stamp increase for 0.465 ns accurate only when Time stamp binary rollover is set. 2013-09-04 14:37:02 -04:00
stmmac_main.c stmmac: fix oversized frame reception 2015-11-30 14:52:52 -05:00
stmmac_mdio.c stmmac: fix PHY reset during resume 2015-11-30 14:52:51 -05:00
stmmac_pci.c stmmac: change the stmmac_dvr_probe return type to int 2015-05-21 18:57:26 -04:00
stmmac_platform.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-07-31 23:52:20 -07:00
stmmac_platform.h stmmac: move stmmac_pltfr_probe into dwmac-generic 2015-07-29 00:13:24 -07:00
stmmac_ptp.c ptp: stmmac: use helpers for converting ns to timespec. 2015-03-31 17:19:19 -04:00
stmmac_ptp.h stmmac: ptp: fix the reference clock 2014-08-29 19:54:36 -07:00
stmmac.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-06-01 22:51:30 -07:00