diff options
author | Giuseppe CAVALLARO <peppe.cavallaro@st.com> | 2015-11-26 10:35:45 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-11-30 22:52:52 +0300 |
commit | e527c4a769d375ac0472450c52bde29087f49cd9 (patch) | |
tree | 3418a8c1016d017de9260e0c544a5b19d9a53568 /firmware/yam | |
parent | ae26c1c6cb9bd5ad6fa1dbfdf1fe430ac09b0d28 (diff) | |
download | linux-e527c4a769d375ac0472450c52bde29087f49cd9.tar.xz |
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>
Diffstat (limited to 'firmware/yam')
0 files changed, 0 insertions, 0 deletions