From patchwork Mon Sep 6 05:51:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wang, Haiyue" X-Patchwork-Id: 98031 X-Patchwork-Delegate: qi.z.zhang@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 93F70A0C4D; Mon, 6 Sep 2021 08:22:09 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DF661410FE; Mon, 6 Sep 2021 08:22:03 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 0B10740C35 for ; Mon, 6 Sep 2021 08:22:01 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10098"; a="280909332" X-IronPort-AV: E=Sophos;i="5.85,271,1624345200"; d="scan'208";a="280909332" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Sep 2021 23:22:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,271,1624345200"; d="scan'208";a="536503924" Received: from npg-dpdk-haiyue-2.sh.intel.com ([10.67.119.63]) by FMSMGA003.fm.intel.com with ESMTP; 05 Sep 2021 23:22:00 -0700 From: Haiyue Wang To: dev@dpdk.org Cc: Junfeng Guo , Haiyue Wang , Jingjing Wu , Beilei Xing Date: Mon, 6 Sep 2021 13:51:41 +0800 Message-Id: <20210906055144.46801-2-haiyue.wang@intel.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210906055144.46801-1-haiyue.wang@intel.com> References: <20210817071652.9939-1-haiyue.wang@intel.com> <20210906055144.46801-1-haiyue.wang@intel.com> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v2 1/4] common/iavf: add QFI fields for GTPU UL and DL 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 Sender: "dev" From: Junfeng Guo The QFI is 6-bit "QoS Flow Identifier" within the GTPU Extension Header. Add virtchnl fields QFI of GTPU UL/DL for supporting the AVF FDIR. Signed-off-by: Junfeng Guo Signed-off-by: Haiyue Wang --- drivers/common/iavf/virtchnl.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/common/iavf/virtchnl.h b/drivers/common/iavf/virtchnl.h index 1cf0866124..9fa5e3e891 100644 --- a/drivers/common/iavf/virtchnl.h +++ b/drivers/common/iavf/virtchnl.h @@ -1642,6 +1642,11 @@ enum virtchnl_proto_hdr_field { /* IPv6 Extension Fragment */ VIRTCHNL_PROTO_HDR_IPV6_EH_FRAG_PKID = PROTO_HDR_FIELD_START(VIRTCHNL_PROTO_HDR_IPV6_EH_FRAG), + /* GTPU_DWN/UP */ + VIRTCHNL_PROTO_HDR_GTPU_DWN_QFI = + PROTO_HDR_FIELD_START(VIRTCHNL_PROTO_HDR_GTPU_EH_PDU_DWN), + VIRTCHNL_PROTO_HDR_GTPU_UP_QFI = + PROTO_HDR_FIELD_START(VIRTCHNL_PROTO_HDR_GTPU_EH_PDU_UP), }; struct virtchnl_proto_hdr { From patchwork Mon Sep 6 05:51:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wang, Haiyue" X-Patchwork-Id: 98032 X-Patchwork-Delegate: qi.z.zhang@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id BE5ABA0C4D; Mon, 6 Sep 2021 08:22:14 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E85F741109; Mon, 6 Sep 2021 08:22:04 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 5C85041101 for ; Mon, 6 Sep 2021 08:22:03 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10098"; a="280909335" X-IronPort-AV: E=Sophos;i="5.85,271,1624345200"; d="scan'208";a="280909335" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Sep 2021 23:22:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,271,1624345200"; d="scan'208";a="536503959" Received: from npg-dpdk-haiyue-2.sh.intel.com ([10.67.119.63]) by FMSMGA003.fm.intel.com with ESMTP; 05 Sep 2021 23:22:01 -0700 From: Haiyue Wang To: dev@dpdk.org Cc: Alvin Zhang , Haiyue Wang , Jingjing Wu , Beilei Xing Date: Mon, 6 Sep 2021 13:51:42 +0800 Message-Id: <20210906055144.46801-3-haiyue.wang@intel.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210906055144.46801-1-haiyue.wang@intel.com> References: <20210817071652.9939-1-haiyue.wang@intel.com> <20210906055144.46801-1-haiyue.wang@intel.com> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v2 2/4] common/iavf: add proto hdr field support for L4 checksum 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 Sender: "dev" From: Alvin Zhang Add TCP/UDP/SCTP header checksum field selectors, they can be used in creating FDIR or RSS rules related to TCP/UDP/SCTP header checksum. Signed-off-by: Alvin Zhang Signed-off-by: Haiyue Wang --- drivers/common/iavf/virtchnl.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/common/iavf/virtchnl.h b/drivers/common/iavf/virtchnl.h index 9fa5e3e891..c56c668cff 100644 --- a/drivers/common/iavf/virtchnl.h +++ b/drivers/common/iavf/virtchnl.h @@ -1598,14 +1598,17 @@ enum virtchnl_proto_hdr_field { VIRTCHNL_PROTO_HDR_TCP_SRC_PORT = PROTO_HDR_FIELD_START(VIRTCHNL_PROTO_HDR_TCP), VIRTCHNL_PROTO_HDR_TCP_DST_PORT, + VIRTCHNL_PROTO_HDR_TCP_CHKSUM, /* UDP */ VIRTCHNL_PROTO_HDR_UDP_SRC_PORT = PROTO_HDR_FIELD_START(VIRTCHNL_PROTO_HDR_UDP), VIRTCHNL_PROTO_HDR_UDP_DST_PORT, + VIRTCHNL_PROTO_HDR_UDP_CHKSUM, /* SCTP */ VIRTCHNL_PROTO_HDR_SCTP_SRC_PORT = PROTO_HDR_FIELD_START(VIRTCHNL_PROTO_HDR_SCTP), VIRTCHNL_PROTO_HDR_SCTP_DST_PORT, + VIRTCHNL_PROTO_HDR_SCTP_CHKSUM, /* GTPU_IP */ VIRTCHNL_PROTO_HDR_GTPU_IP_TEID = PROTO_HDR_FIELD_START(VIRTCHNL_PROTO_HDR_GTPU_IP), From patchwork Mon Sep 6 05:51:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wang, Haiyue" X-Patchwork-Id: 98033 X-Patchwork-Delegate: qi.z.zhang@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A2E97A0C4D; Mon, 6 Sep 2021 08:22:19 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0BB0D4111C; Mon, 6 Sep 2021 08:22:07 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id E9C914111B for ; Mon, 6 Sep 2021 08:22:05 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10098"; a="280909339" X-IronPort-AV: E=Sophos;i="5.85,271,1624345200"; d="scan'208";a="280909339" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Sep 2021 23:22:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,271,1624345200"; d="scan'208";a="536503989" Received: from npg-dpdk-haiyue-2.sh.intel.com ([10.67.119.63]) by FMSMGA003.fm.intel.com with ESMTP; 05 Sep 2021 23:22:03 -0700 From: Haiyue Wang To: dev@dpdk.org Cc: Haiyue Wang , Qi Zhang , Jingjing Wu , Beilei Xing Date: Mon, 6 Sep 2021 13:51:43 +0800 Message-Id: <20210906055144.46801-4-haiyue.wang@intel.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210906055144.46801-1-haiyue.wang@intel.com> References: <20210817071652.9939-1-haiyue.wang@intel.com> <20210906055144.46801-1-haiyue.wang@intel.com> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v2 3/4] common/iavf: remove the FDIR query opcode 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 Sender: "dev" The VIRTCHNL_OP_QUERY_FDIR_FILTER opcode is not used, so remove it. Signed-off-by: Haiyue Wang Acked-by: Qi Zhang --- drivers/common/iavf/virtchnl.h | 38 ---------------------------------- 1 file changed, 38 deletions(-) diff --git a/drivers/common/iavf/virtchnl.h b/drivers/common/iavf/virtchnl.h index c56c668cff..83f51d889f 100644 --- a/drivers/common/iavf/virtchnl.h +++ b/drivers/common/iavf/virtchnl.h @@ -146,7 +146,6 @@ enum virtchnl_ops { VIRTCHNL_OP_DEL_RSS_CFG = 46, VIRTCHNL_OP_ADD_FDIR_FILTER = 47, VIRTCHNL_OP_DEL_FDIR_FILTER = 48, - VIRTCHNL_OP_QUERY_FDIR_FILTER = 49, VIRTCHNL_OP_GET_MAX_RSS_QREGION = 50, VIRTCHNL_OP_GET_OFFLOAD_VLAN_V2_CAPS = 51, VIRTCHNL_OP_ADD_VLAN_V2 = 52, @@ -244,8 +243,6 @@ static inline const char *virtchnl_op_str(enum virtchnl_ops v_opcode) return "VIRTCHNL_OP_ADD_FDIR_FILTER"; case VIRTCHNL_OP_DEL_FDIR_FILTER: return "VIRTCHNL_OP_DEL_FDIR_FILTER"; - case VIRTCHNL_OP_QUERY_FDIR_FILTER: - return "VIRTCHNL_OP_QUERY_FDIR_FILTER"; case VIRTCHNL_OP_GET_MAX_RSS_QREGION: return "VIRTCHNL_OP_GET_MAX_RSS_QREGION"; case VIRTCHNL_OP_ENABLE_QUEUES_V2: @@ -1733,20 +1730,6 @@ struct virtchnl_fdir_rule { VIRTCHNL_CHECK_STRUCT_LEN(2604, virtchnl_fdir_rule); -/* query information to retrieve fdir rule counters. - * PF will fill out this structure to reset counter. - */ -struct virtchnl_fdir_query_info { - u32 match_packets_valid:1; - u32 match_bytes_valid:1; - u32 reserved:30; /* Reserved, must be zero. */ - u32 pad; - u64 matched_packets; /* Number of packets for this rule. */ - u64 matched_bytes; /* Number of bytes through this rule. */ -}; - -VIRTCHNL_CHECK_STRUCT_LEN(24, virtchnl_fdir_query_info); - /* Status returned to VF after VF requests FDIR commands * VIRTCHNL_FDIR_SUCCESS * VF FDIR related request is successfully done by PF @@ -1879,24 +1862,6 @@ struct virtchnl_queue_tc_mapping { VIRTCHNL_CHECK_STRUCT_LEN(12, virtchnl_queue_tc_mapping); -/* VIRTCHNL_OP_QUERY_FDIR_FILTER - * VF sends this request to PF by filling out vsi_id, - * flow_id and reset_counter. PF will return query_info - * and query_status to VF. - */ -struct virtchnl_fdir_query { - u16 vsi_id; /* INPUT */ - u16 pad1[3]; - u32 flow_id; /* INPUT */ - u32 reset_counter:1; /* INPUT */ - struct virtchnl_fdir_query_info query_info; /* OUTPUT */ - - /* see enum virtchnl_fdir_prgm_status; OUTPUT */ - s32 status; - u32 pad2; -}; - -VIRTCHNL_CHECK_STRUCT_LEN(48, virtchnl_fdir_query); /* TX and RX queue types are valid in legacy as well as split queue models. * With Split Queue model, 2 additional types are introduced - TX_COMPLETION @@ -2254,9 +2219,6 @@ virtchnl_vc_validate_vf_msg(struct virtchnl_version_info *ver, u32 v_opcode, case VIRTCHNL_OP_DEL_FDIR_FILTER: valid_len = sizeof(struct virtchnl_fdir_del); break; - case VIRTCHNL_OP_QUERY_FDIR_FILTER: - valid_len = sizeof(struct virtchnl_fdir_query); - break; case VIRTCHNL_OP_GET_QOS_CAPS: break; case VIRTCHNL_OP_CONFIG_QUEUE_TC_MAP: From patchwork Mon Sep 6 05:51:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Wang, Haiyue" X-Patchwork-Id: 98034 X-Patchwork-Delegate: qi.z.zhang@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D2FBEA0C4D; Mon, 6 Sep 2021 08:22:24 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2B07741124; Mon, 6 Sep 2021 08:22:09 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 7C2194111F for ; Mon, 6 Sep 2021 08:22:07 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10098"; a="280909342" X-IronPort-AV: E=Sophos;i="5.85,271,1624345200"; d="scan'208";a="280909342" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Sep 2021 23:22:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,271,1624345200"; d="scan'208";a="536504002" Received: from npg-dpdk-haiyue-2.sh.intel.com ([10.67.119.63]) by FMSMGA003.fm.intel.com with ESMTP; 05 Sep 2021 23:22:05 -0700 From: Haiyue Wang To: dev@dpdk.org Cc: Haiyue Wang , Qi Zhang , Jingjing Wu , Beilei Xing Date: Mon, 6 Sep 2021 13:51:44 +0800 Message-Id: <20210906055144.46801-5-haiyue.wang@intel.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210906055144.46801-1-haiyue.wang@intel.com> References: <20210817071652.9939-1-haiyue.wang@intel.com> <20210906055144.46801-1-haiyue.wang@intel.com> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v2 4/4] common/iavf: update the driver version 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 Sender: "dev" Update the driver version to trace the change. Signed-off-by: Haiyue Wang Acked-by: Qi Zhang --- drivers/common/iavf/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/iavf/README b/drivers/common/iavf/README index 611fdcea94..89bdbc827e 100644 --- a/drivers/common/iavf/README +++ b/drivers/common/iavf/README @@ -6,7 +6,7 @@ IntelĀ® IAVF driver ================= This directory contains source code of FreeBSD IAVF driver of version -cid-avf.2021.04.29.tar.gz released by the team which develops +cid-avf.2021.08.16.tar.gz released by the team which develops basic drivers for any IAVF NIC. The directory of base/ contains the original source package.