From patchwork Wed Jul 31 09:16:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Radhey Shyam Pandey X-Patchwork-Id: 13748314 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0FC8CC3DA64 for ; Wed, 31 Jul 2024 09:17:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:CC:To:From:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=4RO7bJrGl/xzVJ91LxFCZoXeosBbl6GjncH/e8ncEf0=; b=O2SQtDYAtqQgTLUPuwpVfn9kyP FAbgC/4h0ukJxdeABBqvK571AGp8klwroqeWJp0sG7LIxb5BK195KenXHJ1JP9O1CmVXHJMGeLVgy hI+D9V9/jEwQmEqIFPr+WCJDE+h3hGV+rBsOmVvBCiXFmDF6FWGkI1JcJ7KiPJMt/M9fkViNQjAC3 70sDCRV/HyC8yjuWxx5hO65UbC02ASLxUV2Eyzx/9RnnK/sNMD6nrxnl0KYPEoca/9IKT3uOG6bby taK/vXCsIc4VP0h3GDHWEs7vRL5MP3PI+TvRpqysVJ3t05d2GX2W6rVcNVxpO60tPGzR24LykLBX2 ezLTRwLw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ5SZ-00000000SB5-0yfQ; Wed, 31 Jul 2024 09:17:27 +0000 Received: from mail-bn8nam11on20606.outbound.protection.outlook.com ([2a01:111:f403:2414::606] helo=NAM11-BN8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ5Rh-00000000Rro-1fXz for linux-arm-kernel@lists.infradead.org; Wed, 31 Jul 2024 09:16:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=XEPsih3upT/suqYeX2W3ZqI2mTnoEJbU2IesmKieOTsLDag7g5Bu25+YKQTswNwHIkfKSfz+j2YqZhYcKkzFwYmzBoWwxFGLG1DHP98RHvf2QLZwNV7mePWBKAQPe3oautDeL7HIDqm5hq25ThndHnTqYVc2owhB9wEeYgzDH35XoTJC5DHqv4gu8uyqr7kUOtsZtt/H09bfvXsU1XE8baJw/xyNIgI59u8QSbo6tQRNu0LVUzU0iUf4b3jso5/iBpCcUuyioHHylIM+lyhRB+rTCV9GMPEUykS1IyZdDPdZZDpUSKAznl0OYBjVxDggFvb3LT1pVW1na6WXs5/aCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=4RO7bJrGl/xzVJ91LxFCZoXeosBbl6GjncH/e8ncEf0=; b=EJ8MsNhO5V9olARYsLIulZzRwTAOon58we2RadTCBu1Svn81InEBJLQdkVX4vvcMK6t3B43FiAlkIciWXwXT65xgmpn/V/Ds1pfXi+vRFzapxI3wUVZKcNZJUxCZCeojm7KhNDY/V6juPTyKLCT6bgCNRqxQSy3p67nc7lrCXKUTz26rqlJXqBBMyHaP0X5ZlywsIisIL+5EJXTG2kTQMoCQDpzkbAT56ndGu1eSqs/49+TVhXxiuE4fWysxow7rFQK2ffyz60eee3zdpkvS+A3RpqDseo+Jix4dgdvCVtRadwCCqyeM1X3CWg6SNyJYdlGkpvYwcLhiigtbwEJ/fw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=davemloft.net smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4RO7bJrGl/xzVJ91LxFCZoXeosBbl6GjncH/e8ncEf0=; b=s1vGey0xVe6/2NeJo6QZi7Glv+BByPQvOAGE60qoW193Y3LhkPYJe3ADsbFJseNpkxHfRW3LgqAHeucTqxp8gilxqJI7y3lVDFz68VKC7dpiuUXZOyUU0C2ahdQ+uCNu6Y90QdqI+lo+jIYM8GbLcrT3TzoOuc7vRa626Iz4JoQ= Received: from CH0PR03CA0315.namprd03.prod.outlook.com (2603:10b6:610:118::15) by CYYPR12MB8656.namprd12.prod.outlook.com (2603:10b6:930:c3::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.28; Wed, 31 Jul 2024 09:16:25 +0000 Received: from CH1PEPF0000A34B.namprd04.prod.outlook.com (2603:10b6:610:118:cafe::7f) by CH0PR03CA0315.outlook.office365.com (2603:10b6:610:118::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.34 via Frontend Transport; Wed, 31 Jul 2024 09:16:25 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CH1PEPF0000A34B.mail.protection.outlook.com (10.167.244.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7828.19 via Frontend Transport; Wed, 31 Jul 2024 09:16:24 +0000 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 31 Jul 2024 04:16:24 -0500 Received: from xhdradheys41.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Wed, 31 Jul 2024 04:16:20 -0500 From: Radhey Shyam Pandey To: , , , , , CC: , , , , Appana Durga Kedareswara Rao , Radhey Shyam Pandey Subject: [PATCH net-next v2 1/4] net: axienet: Replace the occurrences of (1< X-Mailer: git-send-email 2.1.1 In-Reply-To: <1722417367-4113948-1-git-send-email-radhey.shyam.pandey@amd.com> References: <1722417367-4113948-1-git-send-email-radhey.shyam.pandey@amd.com> MIME-Version: 1.0 Received-SPF: None (SATLEXMB04.amd.com: radhey.shyam.pandey@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH1PEPF0000A34B:EE_|CYYPR12MB8656:EE_ X-MS-Office365-Filtering-Correlation-Id: 26608056-86b2-4834-7468-08dcb141739f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|82310400026|36860700013; X-Microsoft-Antispam-Message-Info: 5kq7QNHWbmspGz+WyltEusd34y3WVv96AMJW0+Qt90nVQFthUMcW0A4lQs3F5/iMYOM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Akl8KE/3tglMUR3IdxM4cc7EZeavDN4uiiRKpgSEeA5ov3D/uRBD8AoxReaceKM8kX2cnmDfvmXVnEY6+jJ+aox0RQzOTEAkeLrGpr3EaTxGVD4WyAiHRzSsULnIi5vMJZMw7Nlvacf848ZYSiCwdW1l4KV62CTsunVqgEc/AEfe/S5AmZuP3DxoYa7kVFpvvUlZB5XiqqsT78jgt+SX7IMjkv2TvJibnVi0IC1H48QnXHWcG+5XpiTo6i4LL7IWtgClfv/rOF/hlFh1kCF3WQEQwpe7f6v7Bx6/QFwdg4nTDCh+CDhi8 X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(1800799024)(376014)(82310400026)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jul 2024 09:16:24.9807 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 26608056-86b2-4834-7468-08dcb141739f X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CH1PEPF0000A34B.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYYPR12MB8656 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240731_021633_472931_EED29EB7 X-CRM114-Status: GOOD ( 14.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Appana Durga Kedareswara Rao Replace all occurences of (1< Signed-off-by: Radhey Shyam Pandey Reviewed-by: Andrew Lunn --- Changes for v2: - Split coding style change into separate patch. --- drivers/net/ethernet/xilinx/xilinx_axienet.h | 28 ++++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet.h b/drivers/net/ethernet/xilinx/xilinx_axienet.h index fa5500decc96..0d5b300107e0 100644 --- a/drivers/net/ethernet/xilinx/xilinx_axienet.h +++ b/drivers/net/ethernet/xilinx/xilinx_axienet.h @@ -29,26 +29,26 @@ /* Configuration options */ /* Accept all incoming packets. Default: disabled (cleared) */ -#define XAE_OPTION_PROMISC (1 << 0) +#define XAE_OPTION_PROMISC BIT(0) /* Jumbo frame support for Tx & Rx. Default: disabled (cleared) */ -#define XAE_OPTION_JUMBO (1 << 1) +#define XAE_OPTION_JUMBO BIT(1) /* VLAN Rx & Tx frame support. Default: disabled (cleared) */ -#define XAE_OPTION_VLAN (1 << 2) +#define XAE_OPTION_VLAN BIT(2) /* Enable recognition of flow control frames on Rx. Default: enabled (set) */ -#define XAE_OPTION_FLOW_CONTROL (1 << 4) +#define XAE_OPTION_FLOW_CONTROL BIT(4) /* Strip FCS and PAD from incoming frames. Note: PAD from VLAN frames is not * stripped. Default: disabled (set) */ -#define XAE_OPTION_FCS_STRIP (1 << 5) +#define XAE_OPTION_FCS_STRIP BIT(5) /* Generate FCS field and add PAD automatically for outgoing frames. * Default: enabled (set) */ -#define XAE_OPTION_FCS_INSERT (1 << 6) +#define XAE_OPTION_FCS_INSERT BIT(6) /* Enable Length/Type error checking for incoming frames. When this option is * set, the MAC will filter frames that have a mismatched type/length field @@ -56,13 +56,13 @@ * types of frames are encountered. When this option is cleared, the MAC will * allow these types of frames to be received. Default: enabled (set) */ -#define XAE_OPTION_LENTYPE_ERR (1 << 7) +#define XAE_OPTION_LENTYPE_ERR BIT(7) /* Enable the transmitter. Default: enabled (set) */ -#define XAE_OPTION_TXEN (1 << 11) +#define XAE_OPTION_TXEN BIT(11) /* Enable the receiver. Default: enabled (set) */ -#define XAE_OPTION_RXEN (1 << 12) +#define XAE_OPTION_RXEN BIT(12) /* Default options set when device is initialized or reset */ #define XAE_OPTION_DEFAULTS \ @@ -326,11 +326,11 @@ #define XAE_MULTICAST_CAM_TABLE_NUM 4 /* Axi Ethernet Synthesis features */ -#define XAE_FEATURE_PARTIAL_RX_CSUM (1 << 0) -#define XAE_FEATURE_PARTIAL_TX_CSUM (1 << 1) -#define XAE_FEATURE_FULL_RX_CSUM (1 << 2) -#define XAE_FEATURE_FULL_TX_CSUM (1 << 3) -#define XAE_FEATURE_DMA_64BIT (1 << 4) +#define XAE_FEATURE_PARTIAL_RX_CSUM BIT(0) +#define XAE_FEATURE_PARTIAL_TX_CSUM BIT(1) +#define XAE_FEATURE_FULL_RX_CSUM BIT(2) +#define XAE_FEATURE_FULL_TX_CSUM BIT(3) +#define XAE_FEATURE_DMA_64BIT BIT(4) #define XAE_NO_CSUM_OFFLOAD 0