]> git.baikalelectronics.ru Git - kernel.git/commit
igb: prevent skb_over panic w/ mtu smaller than 1K
authorAlexander Duyck <alexander.h.duyck@intel.com>
Sat, 31 Jan 2009 08:52:57 +0000 (00:52 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 31 Jan 2009 08:52:57 +0000 (00:52 -0800)
commit6e4b2f4e96614bbbb116fd9b8dddc3f8cbbd0582
tree7e70f20258f0f3ac35e48e0d4a1fa41d63853997
parentc3bd6e62f37a1b7ecbf922a9859f950b560fd0a9
igb: prevent skb_over panic w/ mtu smaller than 1K

A panic has been observed with frame sizes smaller than 1K.  This has been
root caused to the hardware spanning larger frames across multiple buffers
and then reporting the original frame size in the first descriptor.  To
prevent this we can enable set the LPE bit which in turn will restrict
packet sizes to those set in the RLPML register.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/igb/igb_main.c