Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp24792pxk; Tue, 15 Sep 2020 16:43:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzC0sv7YorvYh+cnbIaykP0DlAdwvozhgCzXpc3ARqSaB4oNPfhGVdGyV2GUKwO1AzISNhF X-Received: by 2002:aa7:d1ce:: with SMTP id g14mr25107350edp.153.1600213390169; Tue, 15 Sep 2020 16:43:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600213390; cv=none; d=google.com; s=arc-20160816; b=Z8zqsg3u5M18TLqW0g/7X5sr9n1QpCo0QBbqVnl6gKDJlXen3ecVL3gzWvUvqemrUh 7bC/8Jsw9bCrpqHEFJx2eTLIs6mQnFV43pJXQ/9Hz5hWPUaBYO7JdNao1tdIccKnzOyu J75G0qVv9cVMdtZAawU4j5JhwSXxfAszudOMpmD0x50XxGIPvg3tyzdb/K76FLeWhS9P 9zazYB+638oRq4IO5UJmkrzceDOGPuwtC5bxuUN5QqjZIZPSDy1XxIRNDqAeqwQVwd56 SOpXqLd7RsU7NbraAVimk1BJ8Kp+0OyMlcLFgbI9whKj2LboJmatziVdxN5cYmWCZmGT QLPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender: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=eKK4iUPnY+JuVt1ybaeQU8UVY40vnexRbMxrur2CCV8BcU1ISKorZN6l8I3/a1472E 9pfB+TdI9e0MmAkktxJPFOlOuVNn5vc5VSJ1onRsLFON3jv32qxCTW8813GzcxiBwxVZ T7UJoEfDpmxhnFEUq48kgKmDnbWepXKQLP5aiBjlH43eHpGU486ykbFnQ5IRAbHZwTLN j9rW8+igbXX+ju9Dz3kq2gdQwkL4SJcWWBfz5qMGoYtY2d8FIPSRKrWdWuZKEpGnh/vs Mig+5repmfoKjoOQyL5KK12Rv9XZEGPmHi6j+5chA0A5is95YGJRYk++qWKrN3Yu4b+D 9DRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EvVKNwU5; 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 v10si10528037edy.425.2020.09.15.16.42.48; Tue, 15 Sep 2020 16:43:10 -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=EvVKNwU5; 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 S1727300AbgIOXlp (ORCPT + 99 others); Tue, 15 Sep 2020 19:41:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:46458 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727024AbgIOOem (ORCPT ); Tue, 15 Sep 2020 10:34:42 -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 6DCC221D95; Tue, 15 Sep 2020 14:15:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600179338; bh=evB8kI8CgM2XueBp2na5lhPEYi41PUqB/SbvXYg6MdU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EvVKNwU5LH9llx0aW/JLwr77A/c/QaYcoFUEhOKrt1lAXLEWHb0pw/tuJuG6sUSQL Js/nkVCjUQxt2HRYyySR3qsTfBQPG+/Lmu9qiyi95ul4jBSJ2fOvgYPCgDZtIHJ9VK M41Pz7EAVNUQFkfHlmiC7O/AAjgmZuYq9Xy8bXP8= 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.19 20/78] drivers/net/wan/lapbether: Added needed_tailroom Date: Tue, 15 Sep 2020 16:12:45 +0200 Message-Id: <20200915140634.563491744@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200915140633.552502750@linuxfoundation.org> References: <20200915140633.552502750@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org 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