commit | 25977ac77d62b3de19908979ac84c8fd5809de6f | [log] [tgz] |
---|---|---|
author | Florian Fainelli <f.fainelli@gmail.com> | Thu May 28 15:24:44 2015 -0700 |
committer | David S. Miller <davem@davemloft.net> | Sat May 30 23:51:25 2015 -0700 |
tree | 329f41c29ccf0528095ee270034511b114b01f21 | |
parent | c73b01837eeeba91b9c22c67c6372a6b73f08473 [diff] |
net: systemport: Add a check for oversized packets Occasionnaly we may get oversized packets from the hardware which exceed the nomimal 2KiB buffer size we allocate SKBs with. Add an early check which drops the packet to avoid invoking skb_over_panic() and move on to processing the next packet. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>