Thread (10 messages) 10 messages, 4 authors, 2020-01-07

Re: [PATCH v2 net-next 3/4] ionic: restrict received packets to mtu size

From: Andrew Lunn <andrew@lunn.ch>
Date: 2020-01-07 19:45:40

Hi Andrew,
Hi Shannon
In my experience the driver typically tells the NIC about the current
max_frame size (e.g. MTU + ETH_HLEN), the NIC only copies max_frame bytes,
and the NIC returns an error indication on a packets that had more than
max_frame.
Having played around with a few different NICs for DSA, it seems more
like 75% don't care about the 'MRU' and will happily accept bigger
frames.

Anyway, it does not hurt to drop received frames bigger than what you
can transmit.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help