diff options
author | Xie He <xie.he.0141@gmail.com> | 2020-08-21 14:26:59 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-09-17 13:45:24 +0200 |
commit | 1a76e0c124a869365ac7b2becbbe60a77ea63951 (patch) | |
tree | 35db4e2dcf0f2fe0bd20a29abdf0e17c16d13444 /drivers/net/wan | |
parent | 2ea66fb974d5bee654fb42c304bbea4eaf656845 (diff) | |
download | linux-stable-1a76e0c124a869365ac7b2becbbe60a77ea63951.tar.gz linux-stable-1a76e0c124a869365ac7b2becbbe60a77ea63951.tar.bz2 linux-stable-1a76e0c124a869365ac7b2becbbe60a77ea63951.zip |
drivers/net/wan/lapbether: Added needed_tailroom
[ Upstream commit 1ee39c1448c4e0d480c5b390e2db1987561fb5c2 ]
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 <willemdebruijn.kernel@gmail.com>
Cc: Martin Schiller <ms@dev.tdt.de>
Signed-off-by: Xie He <xie.he.0141@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/net/wan')
-rw-r--r-- | drivers/net/wan/lapbether.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wan/lapbether.c b/drivers/net/wan/lapbether.c index c94dfa70f2a3..6b2553e893ac 100644 --- a/drivers/net/wan/lapbether.c +++ b/drivers/net/wan/lapbether.c @@ -343,6 +343,7 @@ static int lapbeth_new_device(struct net_device *dev) */ ndev->needed_headroom = -1 + 3 + 2 + dev->hard_header_len + dev->needed_headroom; + ndev->needed_tailroom = dev->needed_tailroom; lapbeth = netdev_priv(ndev); lapbeth->axdev = ndev; |