Re: [net,v2] net/packet: fix packet receive on L3 devices without visible hard header

2020-12-24 Thread Xie He
On Fri, Nov 20, 2020 at 10:28 PM Eyal Birger wrote: > > Fix by changing af_packet RX ll visibility criteria to include the > existence of a '.create()' header operation, which is used when creating > a device hard header - via dev_hard_header() - by upper layers, and does > not exist in these L3 d

Re: [net,v2] net/packet: fix packet receive on L3 devices without visible hard header

2020-11-23 Thread Jakub Kicinski
On Sat, 21 Nov 2020 08:23:30 -0500 Willem de Bruijn wrote: > On Sat, Nov 21, 2020 at 2:56 AM Jason A. Donenfeld wrote: > > > > On 11/21/20, Eyal Birger wrote: > > > In the patchset merged by commit b9fcf0a0d826 > > > ("Merge branch 'support-AF_PACKET-for-layer-3-devices'") L3 devices which > >

Re: [net,v2] net/packet: fix packet receive on L3 devices without visible hard header

2020-11-21 Thread Willem de Bruijn
On Sat, Nov 21, 2020 at 2:56 AM Jason A. Donenfeld wrote: > > On 11/21/20, Eyal Birger wrote: > > In the patchset merged by commit b9fcf0a0d826 > > ("Merge branch 'support-AF_PACKET-for-layer-3-devices'") L3 devices which > > did not have header_ops were given one for the purpose of protocol pars

Re: [net,v2] net/packet: fix packet receive on L3 devices without visible hard header

2020-11-20 Thread Jason A. Donenfeld
On 11/21/20, Eyal Birger wrote: > In the patchset merged by commit b9fcf0a0d826 > ("Merge branch 'support-AF_PACKET-for-layer-3-devices'") L3 devices which > did not have header_ops were given one for the purpose of protocol parsing > on af_packet transmit path. > > That change made af_packet rece

[PATCH net,v2] net/packet: fix packet receive on L3 devices without visible hard header

2020-11-20 Thread Eyal Birger
In the patchset merged by commit b9fcf0a0d826 ("Merge branch 'support-AF_PACKET-for-layer-3-devices'") L3 devices which did not have header_ops were given one for the purpose of protocol parsing on af_packet transmit path. That change made af_packet receive path regard these devices as having a vi

[net,v2] net/packet: fix packet receive on L3 devices without visible hard header

2020-11-20 Thread Eyal Birger
In the patchset merged by commit b9fcf0a0d826 ("Merge branch 'support-AF_PACKET-for-layer-3-devices'") L3 devices which did not have header_ops were given one for the purpose of protocol parsing on af_packet transmit path. That change made af_packet receive path regard these devices as having a vi