Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3301604pxk; Mon, 21 Sep 2020 10:04:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytvpLZ0j7G8wDS/n6V08+rZOJ3q+IZ3B54FRB1sufzJuDDRsvR5RVvv47/XmmH5j0VVD+z X-Received: by 2002:a17:906:f2cd:: with SMTP id gz13mr428029ejb.19.1600707897627; Mon, 21 Sep 2020 10:04:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600707897; cv=none; d=google.com; s=arc-20160816; b=lKMFbzl9LU/Ha0pVaqDFm7dpE9+bDfqY67lS2FxA+aRiz8KLDLA3tCa3yBMvlVX5RH N2L0GJGL9IBC85YNFWq081SqtGXS8iRQvZrA9GZz5NaZJcPujRTze2LvyvtMXWjP+7jw 5I5xwLO9RvJM9Fut3xBLZpKeXoVOuQpx5PiROfoBz/ryK43/cXfAfTlN0k5s8InDJMCV d9+AWcoed9CiGbkdrzjqnzPGcuVv7Hak42c/FqZkvyCrlLH7VJRiQHoccsNz+jqmcr8R tmP8PvXAB9BmDzIUfgol+q39SQcn4FFhwZzUnYEod0wTcHJzoLXcWolnEKh9LQjMYRIH 0Dxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=v7CfOTvxGdn/kGjslDnmbR0sWRAw/stHzujVXNEeCrY=; b=XfXc2uRch18tCq8OQqvhJTruxr+QEWPcFVGexXvtzFpVes4ZoXjt1+xyr0L+mAVL1r Fu0AxTL/6SUiAWrE5CkMje3KB4g3vyzmPxzdc08pdz/OJiPkToaURqlNQQw5Ou8cFD/8 CR3+SGa0qqaMvm094WRozCLb0AGGJ9mHVLc1Aj8ZlEJ3v1wpy1xV83xf6T6FbR7IFgLc TIQtXOmBU8Xi138h5mCiJg5gmU8OLUNe3+gAhNnP/bDRTjuvbrVZOkD9tkLB5WjHUb95 1FwlwqJ4X5LMr62Uzz/UgiwJzIn1Ujar6BwIvCvdOHNXFrtqlRZl8Dm8o5pxecdXEwXU 8ZVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OwaELMou; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dd3si8835117ejb.499.2020.09.21.10.04.32; Mon, 21 Sep 2020 10:04:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OwaELMou; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730487AbgIURDg (ORCPT + 99 others); Mon, 21 Sep 2020 13:03:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:36856 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729018AbgIUQgw (ORCPT ); Mon, 21 Sep 2020 12:36:52 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8736E206DC; Mon, 21 Sep 2020 16:36:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600706212; bh=evB8kI8CgM2XueBp2na5lhPEYi41PUqB/SbvXYg6MdU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OwaELMouyWjYoyjAET8JDu5b566J+Dpnk5Po0pqwh21xYt+anG6XxCBdjrVVqKC1v ImU394SW38ZpOIUnc1QH/hUep/rx7lfTHTQu6ncyIkwVYbkDNgPWf4Y6ojDOoeqeR7 Q9FnkEvptLHG7Mwdwv1Xbr7uH+97q5Vkrzud4t+A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Willem de Bruijn , Martin Schiller , Xie He , "David S. Miller" , Sasha Levin Subject: [PATCH 4.14 11/94] drivers/net/wan/lapbether: Added needed_tailroom Date: Mon, 21 Sep 2020 18:26:58 +0200 Message-Id: <20200921162036.058912858@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200921162035.541285330@linuxfoundation.org> References: <20200921162035.541285330@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xie He [ 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 Cc: Martin Schiller Signed-off-by: Xie He Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/wan/lapbether.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wan/lapbether.c b/drivers/net/wan/lapbether.c index c94dfa70f2a33..6b2553e893aca 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; -- 2.25.1