Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6681860rdb; Fri, 15 Dec 2023 05:46:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IFMMNwDHKe7YRv9TfBo4EQwjYNj09A46YZ+5Tmp5P6sjRBM7wtc/bT/FQroyNx0RFTa2pwO X-Received: by 2002:a92:cdad:0:b0:35d:5995:79a2 with SMTP id g13-20020a92cdad000000b0035d599579a2mr18266433ild.60.1702647975127; Fri, 15 Dec 2023 05:46:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702647975; cv=none; d=google.com; s=arc-20160816; b=pKmgjkCUPRYHK6inloNk6zt2nbOGnB/U9yOBH0flIWP9wCD/lMQe8UTEX/rPnJpodP 7lByGWpgSbInIVFf9Nj/EnL62UjN3aGYkWxOI5V3eQYWIUpVD9RAR50WHgtl6W92UX0+ idX1qHYv7Iz5RuB3WZGh3bU2Xly8pHm7LJAtVXBb1WJteQIsDSCj68vVYVhQUuJ+A/xk KDDlzXr0Vxd59kuhW6U3covyj5xPcK6kcNU9ga2gdUwLbrv7sEugnQLz++Gtd7md3Lxl VkUefhE8nNQeCHxfVst1RBc7toJJDm8CafKTwgnWb7a0VjTclmkzSh8loI8xsG2B/Xx8 Ar2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:date; bh=YprdpLHYJ3u1/ghk9EJWzd+lCHP4vKWm21WOzGqn+yk=; fh=chNCcw4BQsFulrdjva6t6tzgLRxQIpcgaQqWI1Gj8QM=; b=T8F/7D/0fsFbOBEyJ+UhtkWGbEp5/qopbmAUC31FIkCkK/FWgP271FTHl6L/IlR1hG IrOt5IQZwaZ1zm7PJD9UMpCwFx/FeJxSFxnaoeogq3gnGin7Tc+l5VhydmogJOuKt0VG F3OpzeED6+ji6ZSamv+KOk1fsSWF+7k8OWqNgccMMQsPXzSPYj1XndIE+I99Kbkug2lE MmFUqu508k6Eroqp8GDQMXlsY4v2+krSYdrOJkr4EexVU/SEnKJGgNmw2rqVOKj8X71U zaG2BX7HQr9KUG5U1xntgboYruEciATinIZLoxkfouDO81it3TuAr9xrgoE241oURgNc OfjQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-1036-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1036-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id ca10-20020a056a02068a00b005be0050a443si13284451pgb.430.2023.12.15.05.46.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 05:46:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1036-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-1036-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1036-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id A28D1B21BCD for ; Fri, 15 Dec 2023 13:45:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EDB632E3FE; Fri, 15 Dec 2023 13:45:41 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mxhk.zte.com.cn (mxhk.zte.com.cn [63.216.63.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D5B522C852; Fri, 15 Dec 2023 13:45:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zte.com.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zte.com.cn Received: from mse-fl1.zte.com.cn (unknown [10.5.228.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mxhk.zte.com.cn (FangMail) with ESMTPS id 4Ss9TS4Pr5z8XrRL; Fri, 15 Dec 2023 21:45:32 +0800 (CST) Received: from xaxapp02.zte.com.cn ([10.88.97.241]) by mse-fl1.zte.com.cn with SMTP id 3BFDjRWh071963; Fri, 15 Dec 2023 21:45:27 +0800 (+08) (envelope-from yang.guang5@zte.com.cn) Received: from mapi (xaxapp02[null]) by mapi (Zmail) with MAPI id mid31; Fri, 15 Dec 2023 21:45:31 +0800 (CST) Date: Fri, 15 Dec 2023 21:45:31 +0800 (CST) X-Zmail-TransId: 2afa657c587b3a7-53fc0 X-Mailer: Zmail v1.0 Message-ID: <202312152145312776210@zte.com.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 From: To: Cc: , , , , , , , , Subject: =?UTF-8?B?W1BBVENIIGxpbnV4LW5leHRdIG1seHN3OiBzcGVjdHJ1bTogdXNlIG5ldGlmX2lzX21hY3NlYygpIGluc3RlYWQgb2Ygb3BlbiBjb2Rl?= Content-Type: text/plain; charset="UTF-8" X-MAIL:mse-fl1.zte.com.cn 3BFDjRWh071963 X-Fangmail-Gw-Spam-Type: 0 X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 657C587C.001/4Ss9TS4Pr5z8XrRL From: Yang Guang Open code which is dev->priv_flags & IFF_MACSEC has already defined as netif_is_macsec(). So use netif_is_macsec() instead of open code. No functional changed. Signed-off-by: Chen Haonan --- include/linux/netdevice.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 1b935ee341b4..1f2b23d854c9 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -5103,7 +5103,7 @@ void netif_inherit_tso_max(struct net_device *to, static inline bool netif_is_macsec(const struct net_device *dev) { - return dev->priv_flags & IFF_MACSEC; + return netif_is_macsec(dev); } static inline bool netif_is_macvlan(const struct net_device *dev) -- 2.25.1