Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp62278ybi; Thu, 11 Jul 2019 14:44:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwP17BsGXLzMxfKFiAUCS3Eais02Rjv2I0h9vRUsCYU9DfhQ6YxSmfTwZtF453SeGODEnjN X-Received: by 2002:a17:90a:bf92:: with SMTP id d18mr7464852pjs.128.1562881465725; Thu, 11 Jul 2019 14:44:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562881465; cv=none; d=google.com; s=arc-20160816; b=sRRwxBA1sy0VfBSQwPcixphv+x1Vq8W0sttp0QSH0tFOZxdadXmTiUq6eDQb9TWtxK eg8XE9NtxmpeZbEIHqlpX/wMhAmI4glJ2YKnet6gPJUldsDzbKUodJUTdjfuxsianykZ Qc1srhOniAXpYz1LTjX9hBLqPgN+mqjD4zyP25SedZXjs7U2iRqtHWPtJ81V8F18SAsV O1pbxCMNkxQMaQV0XTumwVM/AJHud7/X3zLQYnaI+Bi6BYQnSkYWVrzZ2xcbbNXwY8zf SHTmj5v7IfzNHXeOX1MueXO/3YaUtOMtp9/fGhLY5Auhv2pVHoYlYZsfrB6wicyat1aY RoVg== 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 :references:in-reply-to:from:subject:cc:to:message-id:date; bh=vXysznyfgod2oesKFs4pfiPp4XJA4BgTGH51x2ZKgYE=; b=LbtuQqI5CPH29PWfyf+7uZWKEq+kDZ69oBxuEYwca30xcyMuH9Azlloy44aBG7Mlpq hMvhBi63kCWIciC17G06HeV204O7DtTHYWiB8vvQNpQfgbj122apSaQsN7Ov6DuV6ppv wmyllhYxMB/KQocUMSCozomMm/ysIgcL0gbeoOhfrMygD90ySAcnlgVDmmV7V/RlbDq+ GJS7MfJhAn0J064eDn7kF8YB7aOxtRgQebDAmZIGlMuL8rcx2FjtE6ANfSXMvqso2NFc wB8D7Aq6JNpSSykkySfB1tQfn+trjxTuz1aqRJfW37OjMq054Exj+KRizUUYlJhTcvg4 yFvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l184si5948922pgd.203.2019.07.11.14.44.05; Thu, 11 Jul 2019 14:44:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728694AbfGKVnm (ORCPT + 99 others); Thu, 11 Jul 2019 17:43:42 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:47338 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726207AbfGKVnm (ORCPT ); Thu, 11 Jul 2019 17:43:42 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::d71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 8F41314DB02C0; Thu, 11 Jul 2019 14:43:41 -0700 (PDT) Date: Thu, 11 Jul 2019 14:43:41 -0700 (PDT) Message-Id: <20190711.144341.734081163012422910.davem@davemloft.net> To: xingwu.yang@gmail.com Cc: kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, pablo@netfilter.org, kadlec@blackhole.kfki.hu, fw@strlen.de, netfilter-devel@vger.kernel.org, coreteam@netfilter.org Subject: Re: [PATCH] ipv6: Use ipv6_authlen for len From: David Miller In-Reply-To: <20190710131410.75825-1-xingwu.yang@gmail.com> References: <20190710131410.75825-1-xingwu.yang@gmail.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 11 Jul 2019 14:43:41 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: yangxingwu Date: Wed, 10 Jul 2019 21:14:10 +0800 > The length of AH header is computed manually as (hp->hdrlen+2)<<2. > However, in include/linux/ipv6.h, a macro named ipv6_authlen is > already defined for exactly the same job. This commit replaces > the manual computation code with the macro. > > Signed-off-by: yangxingwu Applied.