Re: [PATCH net] drivers/net/wan/lapbether: Added needed_tailroom

2020-08-19 Thread Xie He
Hi Martin Schiller, Can you help review this patch? Thanks! It is a very simple patch that adds the "needed_tailroom" setting for this driver. Thank you! Xie He

Re: [PATCH net] drivers/net/wan/lapbether: Added needed_tailroom

2020-08-18 Thread Xie He
Hi Guillaume Nault, I'm currently trying to fix a driver's "needed_tailroom" setting. This driver is a virtual driver stacked on top of Ethernet devices (similar to pppoe). I believe its needed_tailroom setting should take into account the underlying Ethernet device's needed_tailroom. So I submitt

Re: [PATCH net] drivers/net/wan/lapbether: Added needed_tailroom

2020-08-15 Thread Xie He
I took some time to look at the history of needed_tailroom. I found it was added in this commit: f5184d267c1a (net: Allow netdevices to specify needed head/tailroom) The author tried to make use of needed_tailroom at various places in the kernel by replacing the macro LL_RESERVED_SPACE with his ne

Re: [PATCH net] drivers/net/wan/lapbether: Added needed_tailroom

2020-08-10 Thread Xie He
On Mon, Aug 10, 2020 at 12:32 AM Willem de Bruijn wrote: > > What happens when a tunnel device passes a packet to these devices? > That will also not have allocated the extra tailroom. Does that cause > a bug? I looked at the code in net/ipv4/ip_tunnel.c. It indeed appeared to me that it didn't t

Re: [PATCH net] drivers/net/wan/lapbether: Added needed_tailroom

2020-08-10 Thread Willem de Bruijn
On Sun, Aug 9, 2020 at 7:12 PM Xie He wrote: > > On Sun, Aug 9, 2020 at 1:48 AM Willem de Bruijn > wrote: > > > > Does this solve an actual observed bug? > > > > In many ways lapbeth is similar to tunnel devices. This is not common. > > Thank you for your comment! > > This doesn't solve a bug obs

Re: [PATCH net] drivers/net/wan/lapbether: Added needed_tailroom

2020-08-09 Thread Xie He
On Sun, Aug 9, 2020 at 1:48 AM Willem de Bruijn wrote: > > Does this solve an actual observed bug? > > In many ways lapbeth is similar to tunnel devices. This is not common. Thank you for your comment! This doesn't solve a bug observed by me. But I think this should be necessary considering the

Re: [PATCH net] drivers/net/wan/lapbether: Added needed_tailroom

2020-08-09 Thread Willem de Bruijn
On Sat, Aug 8, 2020 at 7:53 PM Xie He wrote: > > The underlying Ethernet device may request necessary tailroom to be > allocated by setting needed_tailroom. This driver should also set > needed_tailroom to request the tailroom needed by the underlying > Ethernet device to be allocated. > > Cc: Wil

[PATCH net] drivers/net/wan/lapbether: Added needed_tailroom

2020-08-08 Thread Xie He
The underlying Ethernet device may request necessary tailroom to be allocated by setting needed_tailroom. This driver should also set needed_tailroom to request the tailroom needed by the underlying Ethernet device to be allocated. Cc: Willem de Bruijn Cc: Martin Schiller Signed-off-by: Xie He