Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1916987pxk; Sun, 13 Sep 2020 22:30:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJOEiQJKzuOOXwxLw2FzwwjDjDhyT8/e+fOOhCjTWYbKPQ1N4o6pTRdwlMwvoXCPrKgej6 X-Received: by 2002:aa7:d1ce:: with SMTP id g14mr15596816edp.153.1600061408000; Sun, 13 Sep 2020 22:30:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600061407; cv=none; d=google.com; s=arc-20160816; b=WHKbLnaj88d2jvNi8KlakP53i4rRmC5a/rhcTMYyiROBZU7/nGZfn32m7YtRRhYE98 zZzMAFcBt/EkhljWNOyTJFsJFC18E8llXf4tzcY5M28/LiDHSbV/BYP02SbkbPtPS3g5 iZWF592VoXXGraBuSupaK5G3cDirso5jEW7fA5XkFhD2r8UNZj5cpl56u7KbNPlxoB2P lfwWzDIs6jHfVSRk2pBuL3BP0jCrLEGuc86f8epqA9lHwpJmd0OSbCMZnvOiK+zvjnSO Y35KoLyNjdcEVPYO8rw1lF305vxprWT3FbHoi0ieXZRd0cfLhxBaXoK5pxdl1Ml8JJW7 Cyyw== 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 :message-id:in-reply-to:date:references:subject:cc:to:from :dkim-signature:dkim-filter; bh=b36UtK65i/l+Kip5dYP2VFfv1iztlojBnFJGyz/GjAw=; b=QffAJ/mC2YjYgD3rzKYXbH+Tb6UhLi/nZaUNFcblm1BvNDN4Be8nJAEyUNY4O3Ot9c zgvhWHMg/vXUcSBwFpJImjfpkC/vZwpFGN+Fg17+CMF4Ts8wwIFJ4WXhpt4DhmaB7mxQ w1q0rXmEouOoYFf70UW31EaQR7UHMV2AHqivwkZnCDUXzKEbl13vNaf7iFHNU8Dm7BLi qty2eEuMD2xIDb1ucGhUFmxSl3QFBQKhVTshdSI+UBkE+Ayjc+huBrJN00izaILNSvua vGFcQLDr4+FaF5D+Fy4yUNFLjtfs9FxBfhNS+Uxz4dbOkk5a5rViJNRY7ZD4Qh5mkA2S Qwhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@piap.pl header.s=mail header.b=Di22R3LD; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=piap.pl Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i10si6500722edb.37.2020.09.13.22.29.45; Sun, 13 Sep 2020 22:30:07 -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=@piap.pl header.s=mail header.b=Di22R3LD; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=piap.pl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726087AbgINF0V (ORCPT + 99 others); Mon, 14 Sep 2020 01:26:21 -0400 Received: from ni.piap.pl ([195.187.100.5]:38692 "EHLO ni.piap.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726027AbgINF0T (ORCPT ); Mon, 14 Sep 2020 01:26:19 -0400 Received: from t19.piap.pl (OSB1819.piap.pl [10.0.9.19]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ni.piap.pl (Postfix) with ESMTPSA id 77894443565; Mon, 14 Sep 2020 07:26:12 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 ni.piap.pl 77894443565 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=piap.pl; s=mail; t=1600061173; bh=b36UtK65i/l+Kip5dYP2VFfv1iztlojBnFJGyz/GjAw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Di22R3LDlfbvvRM14LvwQ60tBgCi+6aHC2m/aMRXjoYKX8lqTy70Kg61mDLX5Gg+G jSSPi0X4GxPgHeHWKaMvfwvZLps/7dN27hp+vbDX4TliQrYN1CL/ROkAKdS7avZERR hH2u55sL7H/+eboAzYBgHGr+x4fBD5SgYFSKhpVU= From: =?utf-8?Q?Krzysztof_Ha=C5=82asa?= To: Xie He Cc: Jakub Kicinski , Krzysztof Halasa , "David S. Miller" , Linux Kernel Network Developers , LKML , Martin Schiller , Willem de Bruijn Subject: Re: [PATCH net v2] drivers/net/wan/hdlc_fr: Add needed_headroom for PVC devices References: <20200903000658.89944-1-xie.he.0141@gmail.com> <20200904151441.27c97d80@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> Date: Mon, 14 Sep 2020 07:26:12 +0200 In-Reply-To: (Xie He's message of "Fri, 4 Sep 2020 18:28:38 -0700") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-KLMS-Rule-ID: 4 X-KLMS-Message-Action: skipped X-KLMS-AntiSpam-Status: not scanned, whitelist X-KLMS-AntiPhishing: not scanned, whitelist X-KLMS-AntiVirus: Kaspersky Security for Linux Mail Server, version 8.0.3.30, not scanned, whitelist Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Xie He writes: > The HDLC device is not actually prepending any header when it is used > with this driver. When the PVC device has prepended its header and > handed over the skb to the HDLC device, the HDLC device just hands it > over to the hardware driver for transmission without prepending any > header. That's correct. IIRC: - Cisco and PPP modes add 4 bytes - Frame Relay adds 4 (specific protocols - mostly IPv4) or 10 (general case) bytes. There is that pvcX->hdlcX transition which adds nothing (the header is already in place when the packet leaves pvcX device). - Raw mode adds nothing (IPv4 only, though it could be modified for both IPv4/v6 easily) - Ethernet (hdlc_raw_eth.c) adds normal Ethernet header. (I had been "unplugged" for some time). --=20 Krzysztof Halasa Sie=C4=87 Badawcza =C5=81ukasiewicz Przemys=C5=82owy Instytut Automatyki i Pomiar=C3=B3w PIAP Al. Jerozolimskie 202, 02-486 Warszawa