From patchwork Mon Sep 21 16:26:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "gregkh@linuxfoundation.org" X-Patchwork-Id: 309314 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1200CC43468 for ; Mon, 21 Sep 2020 17:03:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C97A62073A for ; Mon, 21 Sep 2020 17:03:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600707814; bh=evB8kI8CgM2XueBp2na5lhPEYi41PUqB/SbvXYg6MdU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=EMbMTc/GQPeGZOHzsZFgec/ol6NlrRb7F0+/CMVVjFqB4L3gG8jQWTA+uTIzyhdVq DzrwjTTp/ICyeNTeEJso031Qu/Ml/NLI6bHhdaOiznd6ZOi7PtUypSgsLmBWE9wsMU QjfqPqI/guVKU9fr9JDK1E+1+NQP6hX6TdXOz0wo= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730375AbgIURDe (ORCPT ); Mon, 21 Sep 2020 13:03:34 -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 Precedence: bulk List-ID: X-Mailing-List: stable@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;