From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6E7284548C; Tue, 18 Jun 2024 13:42:38 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3CCE340EE7; Tue, 18 Jun 2024 13:42:15 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) by mails.dpdk.org (Postfix) with ESMTP id 358FE40E4B for ; Tue, 18 Jun 2024 13:42:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718710931; x=1750246931; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ttCxDLWPbWHNcJogh4qhZvgO9OsUiY29/Zeu8+znvM4=; b=npLowsJ4+5i77AiB82A50LZOqn6H9ofRC0SImOVzoBO55oc/wE7CY/D+ mcGfWsPkPoAD0cDDyQL+d3Z4Cg8AmbwcNDTyJBviP+3OlA0YgFDvuQvuJ unh4jRI8qm0AsDQaG/zeWNOMtyRnw8Gq3752B6WdjoItK9JY9d/G2nWdB +t4TUIUjovga6o7zv1myAzE0Ob01223adeUvgZ9Me9ninZVlGlugSBKnK 6F2xOCvyNvXECSAHl1/3TgH2+LiBFYeGsf3RZ4qHNxG1aJSwsE/2GLfz6 YlTdTnKas+bnzDNRJ20GIy1kHO+lYfsCSUPoVD1Ww3gu3Oik/maHiz5lF g==; X-CSE-ConnectionGUID: eE+PhOC/ScW9MnkQtsGkKQ== X-CSE-MsgGUID: brtumZa+SDCBw5cXu4yf5g== X-IronPort-AV: E=McAfee;i="6700,10204,11106"; a="19443305" X-IronPort-AV: E=Sophos;i="6.08,247,1712646000"; d="scan'208";a="19443305" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jun 2024 04:42:10 -0700 X-CSE-ConnectionGUID: R5ndIeWOSaude/BQm00bdw== X-CSE-MsgGUID: g0OnFbjWTqeBr94WNaPbHQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,247,1712646000"; d="scan'208";a="41621101" Received: from unknown (HELO npf-hyd-clx-03..) ([10.145.170.182]) by fmviesa009.fm.intel.com with ESMTP; 18 Jun 2024 04:42:08 -0700 From: Soumyadeep Hore To: bruce.richardson@intel.com, anatoly.burakov@intel.com Cc: dev@dpdk.org Subject: [PATCH v4 05/21] common/idpf: use BIT ULL for large bitmaps Date: Tue, 18 Jun 2024 10:57:06 +0000 Message-ID: <20240618105722.2326987-6-soumyadeep.hore@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240618105722.2326987-1-soumyadeep.hore@intel.com> References: <20240612035257.2245824-11-soumyadeep.hore@intel.com> <20240618105722.2326987-1-soumyadeep.hore@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org For bitmaps greater than 32 bits, use BIT_ULL instead of BIT macro as reported by compiler. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2.h | 70 ++++++++++++++-------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/drivers/common/idpf/base/virtchnl2.h b/drivers/common/idpf/base/virtchnl2.h index 6eff0f1ea1..851c6629dd 100644 --- a/drivers/common/idpf/base/virtchnl2.h +++ b/drivers/common/idpf/base/virtchnl2.h @@ -175,20 +175,20 @@ /* VIRTCHNL2_RSS_FLOW_TYPE_CAPS * Receive Side Scaling Flow type capability flags */ -#define VIRTCHNL2_CAP_RSS_IPV4_TCP BIT(0) -#define VIRTCHNL2_CAP_RSS_IPV4_UDP BIT(1) -#define VIRTCHNL2_CAP_RSS_IPV4_SCTP BIT(2) -#define VIRTCHNL2_CAP_RSS_IPV4_OTHER BIT(3) -#define VIRTCHNL2_CAP_RSS_IPV6_TCP BIT(4) -#define VIRTCHNL2_CAP_RSS_IPV6_UDP BIT(5) -#define VIRTCHNL2_CAP_RSS_IPV6_SCTP BIT(6) -#define VIRTCHNL2_CAP_RSS_IPV6_OTHER BIT(7) -#define VIRTCHNL2_CAP_RSS_IPV4_AH BIT(8) -#define VIRTCHNL2_CAP_RSS_IPV4_ESP BIT(9) -#define VIRTCHNL2_CAP_RSS_IPV4_AH_ESP BIT(10) -#define VIRTCHNL2_CAP_RSS_IPV6_AH BIT(11) -#define VIRTCHNL2_CAP_RSS_IPV6_ESP BIT(12) -#define VIRTCHNL2_CAP_RSS_IPV6_AH_ESP BIT(13) +#define VIRTCHNL2_CAP_RSS_IPV4_TCP BIT_ULL(0) +#define VIRTCHNL2_CAP_RSS_IPV4_UDP BIT_ULL(1) +#define VIRTCHNL2_CAP_RSS_IPV4_SCTP BIT_ULL(2) +#define VIRTCHNL2_CAP_RSS_IPV4_OTHER BIT_ULL(3) +#define VIRTCHNL2_CAP_RSS_IPV6_TCP BIT_ULL(4) +#define VIRTCHNL2_CAP_RSS_IPV6_UDP BIT_ULL(5) +#define VIRTCHNL2_CAP_RSS_IPV6_SCTP BIT_ULL(6) +#define VIRTCHNL2_CAP_RSS_IPV6_OTHER BIT_ULL(7) +#define VIRTCHNL2_CAP_RSS_IPV4_AH BIT_ULL(8) +#define VIRTCHNL2_CAP_RSS_IPV4_ESP BIT_ULL(9) +#define VIRTCHNL2_CAP_RSS_IPV4_AH_ESP BIT_ULL(10) +#define VIRTCHNL2_CAP_RSS_IPV6_AH BIT_ULL(11) +#define VIRTCHNL2_CAP_RSS_IPV6_ESP BIT_ULL(12) +#define VIRTCHNL2_CAP_RSS_IPV6_AH_ESP BIT_ULL(13) /* VIRTCHNL2_HEADER_SPLIT_CAPS * Header split capability flags @@ -214,32 +214,32 @@ * TX_VLAN: VLAN tag insertion * RX_VLAN: VLAN tag stripping */ -#define VIRTCHNL2_CAP_RDMA BIT(0) -#define VIRTCHNL2_CAP_SRIOV BIT(1) -#define VIRTCHNL2_CAP_MACFILTER BIT(2) -#define VIRTCHNL2_CAP_FLOW_DIRECTOR BIT(3) -#define VIRTCHNL2_CAP_SPLITQ_QSCHED BIT(4) -#define VIRTCHNL2_CAP_CRC BIT(5) -#define VIRTCHNL2_CAP_INLINE_FLOW_STEER BIT(6) -#define VIRTCHNL2_CAP_WB_ON_ITR BIT(7) -#define VIRTCHNL2_CAP_PROMISC BIT(8) -#define VIRTCHNL2_CAP_LINK_SPEED BIT(9) -#define VIRTCHNL2_CAP_INLINE_IPSEC BIT(10) -#define VIRTCHNL2_CAP_LARGE_NUM_QUEUES BIT(11) +#define VIRTCHNL2_CAP_RDMA BIT_ULL(0) +#define VIRTCHNL2_CAP_SRIOV BIT_ULL(1) +#define VIRTCHNL2_CAP_MACFILTER BIT_ULL(2) +#define VIRTCHNL2_CAP_FLOW_DIRECTOR BIT_ULL(3) +#define VIRTCHNL2_CAP_SPLITQ_QSCHED BIT_ULL(4) +#define VIRTCHNL2_CAP_CRC BIT_ULL(5) +#define VIRTCHNL2_CAP_INLINE_FLOW_STEER BIT_ULL(6) +#define VIRTCHNL2_CAP_WB_ON_ITR BIT_ULL(7) +#define VIRTCHNL2_CAP_PROMISC BIT_ULL(8) +#define VIRTCHNL2_CAP_LINK_SPEED BIT_ULL(9) +#define VIRTCHNL2_CAP_INLINE_IPSEC BIT_ULL(10) +#define VIRTCHNL2_CAP_LARGE_NUM_QUEUES BIT_ULL(11) /* require additional info */ -#define VIRTCHNL2_CAP_VLAN BIT(12) -#define VIRTCHNL2_CAP_PTP BIT(13) -#define VIRTCHNL2_CAP_ADV_RSS BIT(15) -#define VIRTCHNL2_CAP_FDIR BIT(16) -#define VIRTCHNL2_CAP_RX_FLEX_DESC BIT(17) -#define VIRTCHNL2_CAP_PTYPE BIT(18) -#define VIRTCHNL2_CAP_LOOPBACK BIT(19) +#define VIRTCHNL2_CAP_VLAN BIT_ULL(12) +#define VIRTCHNL2_CAP_PTP BIT_ULL(13) +#define VIRTCHNL2_CAP_ADV_RSS BIT_ULL(15) +#define VIRTCHNL2_CAP_FDIR BIT_ULL(16) +#define VIRTCHNL2_CAP_RX_FLEX_DESC BIT_ULL(17) +#define VIRTCHNL2_CAP_PTYPE BIT_ULL(18) +#define VIRTCHNL2_CAP_LOOPBACK BIT_ULL(19) /* Enable miss completion types plus ability to detect a miss completion if a * reserved bit is set in a standared completion's tag. */ -#define VIRTCHNL2_CAP_MISS_COMPL_TAG BIT(20) +#define VIRTCHNL2_CAP_MISS_COMPL_TAG BIT_ULL(20) /* this must be the last capability */ -#define VIRTCHNL2_CAP_OEM BIT(63) +#define VIRTCHNL2_CAP_OEM BIT_ULL(63) /* VIRTCHNL2_TXQ_SCHED_MODE * Transmit Queue Scheduling Modes - Queue mode is the legacy mode i.e. inorder -- 2.43.0