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: 13748309 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2065.outbound.protection.outlook.com [40.107.220.65]) (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 81BB21AB501; Wed, 31 Jul 2024 09:16:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.220.65 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722417391; cv=fail; b=ADm+MQUfguePa/leDR00m7fQHROx8K2OSwY9a3WZVCvoP9Bl15tsdRIbGoEIIZTVCRYGMGZ5wLXpc0I5h6VY7GSoiT8wzPIgBbAJu+zi+tGgC90c4QSGAgXEtor3pHa8yHxapU+ZdcGFsucW5Pm9PqwMeFigRCumqLSxhux/zqg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722417391; c=relaxed/simple; bh=bJ9N//TmP7s94AOZq+isXyeLdnlF0+4l1rjhwXMrMWU=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=RDgUjWW3wAYwr3xeiNfsuDVdUWNncU+9irMXGWVcczpH62p2YIE2CBQtEEHGyQAKDWHzBK7mC3D72j1fg1iPtyplf5Qeoehqz5aCTU0rZUvKVmtQ+0aDZFRyhgVp/gav/8nyJho9o8DmJNLU2rYTy9/p4FpZOakYWF+dAOQNB1o= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=s1vGey0x; arc=fail smtp.client-ip=40.107.220.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="s1vGey0x" 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> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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/iM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/YiAkl8KE/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-Patchwork-Delegate: kuba@kernel.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