Re: [PATCH net] packet: only test po->has_vnet_hdr once in packet_snd

2017-09-28 Thread David Miller
aFrom: Willem de Bruijn Date: Tue, 26 Sep 2017 12:20:17 -0400 > From: Willem de Bruijn > > Packet socket option po->has_vnet_hdr can be updated concurrently with > other operations if no ring is attached. > > Do not test the option twice in packet_snd, as the value may change in > between call

[PATCH net] packet: only test po->has_vnet_hdr once in packet_snd

2017-09-26 Thread Willem de Bruijn
From: Willem de Bruijn Packet socket option po->has_vnet_hdr can be updated concurrently with other operations if no ring is attached. Do not test the option twice in packet_snd, as the value may change in between calls. A race on setsockopt disable may cause a packet > mtu to be sent without ha