Message ID | 20201005142109.304847129@linuxfoundation.org |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=Taag=DM=vger.kernel.org=stable-owner@kernel.org> 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=-13.5 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=unavailable 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 A58C9C4363A for <stable@archiver.kernel.org>; Mon, 5 Oct 2020 15:28:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 607862085B for <stable@archiver.kernel.org>; Mon, 5 Oct 2020 15:28:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601911707; bh=s34KDftLwNqohmNXhpW+r5cjhudfdyFekn3KqLfndg0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=U01NP9a8SnUqrhcmvBTLtjwNAw50DDmOnleCfm7RovRYj5NrnVF97KP44KzEqj37k ya8oRntHHmMg6/vE/rKKFhVGHYGgIBnxwk03YCy1Cm+vXxjvT8Ah8p2MIM9fJa7u0m jkzqU0aZSNpAk1ZWveupaVHM/RZDVTG93hZAU47I= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727379AbgJEP2U (ORCPT <rfc822;stable@archiver.kernel.org>); Mon, 5 Oct 2020 11:28:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:53196 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727373AbgJEP2U (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 5 Oct 2020 11:28:20 -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 CD849208B6; Mon, 5 Oct 2020 15:28:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601911699; bh=s34KDftLwNqohmNXhpW+r5cjhudfdyFekn3KqLfndg0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KQJ9auJ1aVUAxXwICaHRJ+WR+D0P2TZ5LPOOhwbl8VJ8fKDQBTTNbk0302tyk6nXK mofNGRG13jsKaeYYy1tO0J6zaJroxhfXAs17Lnv61MLF9McODViQjwRj+1Q9J2gHyA usGE17I+Edip6+dY2fwyQ/AixZgfOJ8k9nstGvdE= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Krzysztof Halasa <khc@pm.waw.pl>, Martin Schiller <ms@dev.tdt.de>, Xie He <xie.he.0141@gmail.com>, Jakub Kicinski <kuba@kernel.org>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 4.19 13/38] drivers/net/wan/hdlc_fr: Add needed_headroom for PVC devices Date: Mon, 5 Oct 2020 17:26:30 +0200 Message-Id: <20201005142109.304847129@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201005142108.650363140@linuxfoundation.org> References: <20201005142108.650363140@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: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/drivers/net/wan/hdlc_fr.c b/drivers/net/wan/hdlc_fr.c index 038236a9c60ee..67f89917277ce 100644 --- a/drivers/net/wan/hdlc_fr.c +++ b/drivers/net/wan/hdlc_fr.c @@ -1044,7 +1044,7 @@ static void pvc_setup(struct net_device *dev) { dev->type = ARPHRD_DLCI; dev->flags = IFF_POINTOPOINT; - dev->hard_header_len = 10; + dev->hard_header_len = 0; dev->addr_len = 2; netif_keep_dst(dev); } @@ -1096,6 +1096,7 @@ static int fr_add_pvc(struct net_device *frad, unsigned int dlci, int type) dev->mtu = HDLC_MAX_MTU; dev->min_mtu = 68; dev->max_mtu = HDLC_MAX_MTU; + dev->needed_headroom = 10; dev->priv_flags |= IFF_NO_QUEUE; dev->ml_priv = pvc;