Re: [PATCH net v3 5/5] packet: fix tpacket_snd max frame len

2015-11-11 Thread Willem de Bruijn
On Wed, Nov 11, 2015 at 5:25 PM, Daniel Borkmann wrote: > Since it's introduction in commit 69e3c75f4d54 ("net: TX_RING and > packet mmap"), TX_RING could be used from SOCK_DGRAM and SOCK_RAW > side. When used with SOCK_DGRAM only, the size_max > dev->mtu + > reserve check should have reserve as 0

[PATCH net v3 5/5] packet: fix tpacket_snd max frame len

2015-11-11 Thread Daniel Borkmann
Since it's introduction in commit 69e3c75f4d54 ("net: TX_RING and packet mmap"), TX_RING could be used from SOCK_DGRAM and SOCK_RAW side. When used with SOCK_DGRAM only, the size_max > dev->mtu + reserve check should have reserve as 0, but currently, this is unconditionally set (in it's original fo