sfc: check MTU against minimum threshold
Reported-by: Ma Yuying <yuma@redhat.com> Suggested-by: Jarod Wilson <jarod@redhat.com> Signed-off-by: Bert Kenward <bkenward@solarflare.com> Reviewed-by: Jarod Wilson <jarod@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
f1e4ba5b6a
commit
72a31d85a5
@@ -76,6 +76,9 @@
|
||||
/* Maximum possible MTU the driver supports */
|
||||
#define EFX_MAX_MTU (9 * 1024)
|
||||
|
||||
/* Minimum MTU, from RFC791 (IP) */
|
||||
#define EFX_MIN_MTU 68
|
||||
|
||||
/* Size of an RX scatter buffer. Small enough to pack 2 into a 4K page,
|
||||
* and should be a multiple of the cache line size.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user