Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5111051pxb; Mon, 15 Feb 2021 09:44:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJz89+WkbKrXSM3GJ7N7S9lNujZmnpnbmSDaaUT9NEc4gVF2I9aIYtSBSPmoLdu/FMiWJXWp X-Received: by 2002:a17:906:a295:: with SMTP id i21mr16965456ejz.334.1613411065247; Mon, 15 Feb 2021 09:44:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613411065; cv=none; d=google.com; s=arc-20160816; b=Ue30p2GoyV2JWDNfJa1ZHARieyLa/Wjo6wjfScHIh5UtchBtYkmJb7jgNnkl9UTgeu DnMTfuELXLzJBKaKyBuSNN+Tm4o3xQVKsj3FkDk7LusY4onsUq40vcW8JaMK1Hh5INPl dt4WLKPmeOoNasopotbMhYjOXiqwP7vcEthjxN/y4F99rWJDjAJ5czvE4ire7k2yuOy1 RguksevkDqBHb1iCI00tusdlSl4msc+GmMEk4e0iOLwXKUNY+NrFrDlJDQUezD3FBeWD no6/QkouXoYtkWo1L+VQFERd5a7X3Ao3/m15nWtKVrIxDTDqAuUMWgH3QlbDvLzRcJ8e ECGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=sLQol9oxPeOG1Kr+YSSO0W5V4v2gUOFh7QiJCDdWNqU=; b=usqMiM08kSZXD+pBVrS0dvc7kFipRZIQcepzuhxo2m52xvZST2y4ziInHDMLZJfPtv A1es65flHmcNIjyi/EekpXG3ERmjVq7bOTwoE7TrZcj/KSyGw4zhoUYjo/iTyDvRDD5r 22gHnRm5JGuHYAMm0InxX+ge0+1kRAviSK8ARuXu472BWedqktMV1xPQnjKVbB1K/PKE JA+OeZ5h0ctEchPY6CmNPobqh2IDxxnYcMSdv52HweJ1nkWPwzjmyQkt6CDfb6G4TWF3 gQEfMCZPTeODXCwmBfcEB8aGdvad3TXIVs78KbDOq5HAd1DqzGD8W+fm5t+it+mvk15z T4HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PkxBFU5n; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d5si13464748edo.481.2021.02.15.09.44.01; Mon, 15 Feb 2021 09:44:25 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=PkxBFU5n; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232637AbhBORnK (ORCPT + 99 others); Mon, 15 Feb 2021 12:43:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232288AbhBORYY (ORCPT ); Mon, 15 Feb 2021 12:24:24 -0500 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DFE9C061786; Mon, 15 Feb 2021 09:23:44 -0800 (PST) Received: by mail-pf1-x42c.google.com with SMTP id c11so4542218pfp.10; Mon, 15 Feb 2021 09:23:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sLQol9oxPeOG1Kr+YSSO0W5V4v2gUOFh7QiJCDdWNqU=; b=PkxBFU5nVbo5oAYYa/lQpvEaEElCvLWhl43ILCDOizN0iRgnF7V6yqP6qzHIU6WwCo HW4tHjJF1xxu2ds31Pbjpj8r4MsTNwTEtlSRgxhJQreeLE3McunlDsmvy/FoGa42cGr8 3wpDfMRo8hRMO2hEoD1r3EuWvn/FqeCaHahfd1TfnbQb/246+9jWL9AS886OLFia/OzI H51eHKJ0HBpSVqlXQdskpc6in/V9HpuqIbdqZe/xI9CamRfb0mZ8zOcD1LnrbFpholCp 2cP9YhTwIDwzEdW7bGvqX2xG9zUXPlyNE6CV8TzI/2XyBn9aVntjE8bM48rB4ZsYXUxF xP0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sLQol9oxPeOG1Kr+YSSO0W5V4v2gUOFh7QiJCDdWNqU=; b=UcyRoCvehsS3U/tsivFTm2l6eEabTyilmVvyjgpkV17kjQZ3rF4COPLfgW7dvvNxak xbcasdgRiSchFGKqKFQr0hnR3oKFl2qvh6GVFc5iNDi4Molb/TNvVUk/e5rGfsAlvjje xluQeeKHQyCcxUUssRhUNRaMPxN5MKAf1NqzAE9zsaKNObj6sZ57elrFkHeL8y5uhr2+ nnklMFHIpb+P0WQhfIaNrSyixQadJ9p5hPAaQCGrUU1khQVyxqo6I37qgAmgEr3052Zk k3xPanvhCNp4zxN8/LA7/S4DHBiegns+6QRxs2e6xI4KTyVA+aCfFTjmBqXh4owpts4v Ds7Q== X-Gm-Message-State: AOAM530tKC0ki2wK8OECh8IyJGnfclybBl5O94k19NnnphNcWIEVRzrw pciXqJZAI4irJ8AAPgfYxUbNyUw9ePIK++Z+uQ4= X-Received: by 2002:a63:7f09:: with SMTP id a9mr15435741pgd.63.1613409823721; Mon, 15 Feb 2021 09:23:43 -0800 (PST) MIME-Version: 1.0 References: <20210215072703.43952-1-xie.he.0141@gmail.com> In-Reply-To: From: Xie He Date: Mon, 15 Feb 2021 09:23:32 -0800 Message-ID: Subject: Re: [PATCH net-next RFC v3] net: hdlc_x25: Queue outgoing LAPB frames To: Leon Romanovsky Cc: "David S. Miller" , Jakub Kicinski , Linux X25 , Linux Kernel Network Developers , LKML , Martin Schiller , Krzysztof Halasa Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 15, 2021 at 1:25 AM Leon Romanovsky wrote: > > > + /* When transmitting data: > > + * first we'll remove a pseudo header of 1 byte, > > + * then the LAPB module will prepend an LAPB header of at most 3 bytes. > > + */ > > + dev->needed_headroom = 3 - 1; > > 3 - 1 = 2 > > Thanks Actually this is intentional. It makes the numbers more meaningful. The compiler should automatically generate the "2" so there would be no runtime penalty.