Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4929360pxj; Wed, 9 Jun 2021 05:30:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1rANu6j1rD89DDiXMJO6o0YWcIcFhM8f/cgEzKscjPcNL4P95aXIUBLHhRtm9oPsgjB5D X-Received: by 2002:a17:906:7ce:: with SMTP id m14mr28288217ejc.444.1623241816140; Wed, 09 Jun 2021 05:30:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623241816; cv=none; d=google.com; s=arc-20160816; b=KNR24WeH5ZGimmp9rShSD+4s1Ft9dykEQ8uSt6hhQJmeK//AAccjxaqdQjAi4ii89g XriDy5959sd8c15Y93k8afypZ5lIaWM7CMdzAhKN20KMSACOohgC/eFhFR5SQbpvb4+8 jpb1H6pFlor8pGEEdjelGcYHGBgYOcUZtm2rhsaZEGZ1F0ukZSEIm67XFpx5EC2B3KNx PNmUvdQ51WgZhwACYLhk7CoFiuIk4hZ6fG7VPpZ3TxkOAEwehkdfxlmLQTSQY+AbI5wD zLbSt/YLab7OAZyhVxuOua2ccT59vkmnXII0Z5CM7V5rd/+hi7dTi5kYSPd30trbBrV+ Xz0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2/c6KMsKX6alZWBNUlZL1Vqah+CZUobnDVfUuNr6j0Q=; b=zFh0si3YR4RvGRwZOadl6HNmwTOww+Qa0eHPlzCgzoA94+SIKzGZX1BSGskCnBDpv+ qtDTn8y0WqPTuq9spa9tJF2DtO+BAElkWWvHNQJLn4opOeUV1p1lrvSDcXMaARPmd5wO h1VDt8DlaPLQcqckdsQRxVFLj/Bb9Ojl6HzjMBQyiNIwi7zF7fbVxTn74Wv7aP5jP0NV tVbLACrOCTrrFz4R210hxWSq/pv1x5kfQ4PE2w6uZk9otwnBIyqpEwRkgMlqGQEjEu2b Plw4u4K57X0kEgLqHyX0VSlQta6YEVusSDlAlTTTBgCOIwCQU+sbW1r0+kbsgDA9HkiA jshg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=auri21nX; 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 z12si2348264ejl.649.2021.06.09.05.29.52; Wed, 09 Jun 2021 05:30:16 -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=@gmail.com header.s=20161025 header.b=auri21nX; 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 S236152AbhFIC5O (ORCPT + 99 others); Tue, 8 Jun 2021 22:57:14 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:36625 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232690AbhFIC5J (ORCPT ); Tue, 8 Jun 2021 22:57:09 -0400 Received: by mail-pl1-f195.google.com with SMTP id x10so11772907plg.3; Tue, 08 Jun 2021 19:55:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=2/c6KMsKX6alZWBNUlZL1Vqah+CZUobnDVfUuNr6j0Q=; b=auri21nXSbQkAa3dvUFlWOI+SPSQ4IImLBtzfVw/IqXZDH/SR46D7ke3hItt9/DFHv Je40qmnqLMKvhRUV6Q4lCLMC9biyrw71rBjCsgpl+gU9vBvIkXoOPrO3immBN6iJdi0G JW+7Xkm1cLPzPbYaFAPPR5mcpfHO4hV7fsGjMw/Ile5/qi4oMPmrNnU52ydu2oMcObBu Pjggsq3hWSDuCOB9mqFZn1msujdotUWrtxaXndFDwM94+omZX2ZhpNeNUYZF3JDzHdIa CReV2iY0CQXP6+qYntXHohMS/7p+Hmzq2Q+7Mq942PG1sGaiBoss7W3hupqJ01bmMQUD AIrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=2/c6KMsKX6alZWBNUlZL1Vqah+CZUobnDVfUuNr6j0Q=; b=ujDchfT6+IGWQGvhIw1jPnAcKoqaQk/IwZQG4H5eACNVm58z4YscLH/50baMn4axfL CfT0FvbzTur1xloQ/Er7sU8VbMgvhCK5U0mVbuYCGPXFagYbkVLPvxBY9gb6cCUELAQB 1/NM/4R746Pq2qvVcOvS9VfStVQ+Kwp7bJtztDlaIlVSeHJuC3prSZCe/HxP08P8dZyI qi7JeOpSxHcckz9zLHAZw01iP3A0yLrQ5EW2hmmsFnxTPRzCJnCWTBkOEjGv+WWhxUzG yzHwJaTjSW29XKv6UuAOiNY/zvYzfGDx6rDn2HZHagD5XeMMVNFAouIGQ0LkUOljVcc2 bGvg== X-Gm-Message-State: AOAM533fBZQCAtZItU1FujDPETih7ORKgkjcFV7FBLMRC2itvEqD4YCM uztxvMlcI7iNiWLSLYZujmI= X-Received: by 2002:a17:90a:f197:: with SMTP id bv23mr28900818pjb.113.1623207255713; Tue, 08 Jun 2021 19:54:15 -0700 (PDT) Received: from localhost ([178.236.46.205]) by smtp.gmail.com with ESMTPSA id b14sm12527247pgl.52.2021.06.08.19.54.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Jun 2021 19:54:15 -0700 (PDT) Date: Tue, 8 Jun 2021 19:54:12 -0700 From: Menglong Dong To: Jon Maloy Cc: ying.xue@windriver.com, David Miller , Jakub Kicinski , LKML , netdev , tipc-discussion@lists.sourceforge.net, Menglong Dong , Zeal Robot Subject: Re: [PATCH net-next] net: tipc: fix FB_MTU eat two pages Message-ID: <20210609025412.GA58348@www> References: <20210604074419.53956-1-dong.menglong@zte.com.cn> <998cce2c-b18d-59c1-df64-fc62856c63a1@redhat.com> <20210607125120.GA4262@www> <46d2a694-6a85-0f8e-4156-9bb1c4dbdb69@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46d2a694-6a85-0f8e-4156-9bb1c4dbdb69@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 08, 2021 at 06:37:38PM -0400, Jon Maloy wrote: > > [...] > I spent a little more time looking into this. I think the best we can do is > to keep FB_MTU internal to msg.c, and then add an outline function to msg.c > that can be used by bcast.c. The way it is used is never time critical. > > I also see that we could need a little cleanup around this. There is a > redundant align() function that should be removed and replaced with the > global ALIGN() macro. > Even tipc_buf_acquire() should use this macro instead of the explicit method > that is used now. > In general, I stongly dislike conditional code, and it is not necessary in > this function. If we redefine the non-crypto BUF_TAILROOM to 0 instead of 16 > (it is not used anywhere else) we could get rid of this too. > > But I leave that to you. If you only fix the FB_MTU macro I am content. > Yeah, I think I can handle it, just leave it to me. (finger heart :/) Menglong Dong