diff options
author | Xie He <xie.he.0141@gmail.com> | 2020-08-21 14:26:59 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-08-24 16:09:33 -0700 |
commit | 1ee39c1448c4e0d480c5b390e2db1987561fb5c2 (patch) | |
tree | 6c8a69d4d4a96673c61ec914678a28911a09cb72 /drivers/net | |
parent | d3b990b7f327e2afa98006e7666fb8ada8ed8683 (diff) | |
download | linux-1ee39c1448c4e0d480c5b390e2db1987561fb5c2.tar.bz2 |
drivers/net/wan/lapbether: Added needed_tailroom
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>
Diffstat (limited to 'drivers/net')
-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 1ea15f2123ed..cc297ea9c6ec 100644 --- a/drivers/net/wan/lapbether.c +++ b/drivers/net/wan/lapbether.c @@ -340,6 +340,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; |