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 7AD14A0508; Wed, 13 Apr 2022 10:13:10 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0528C42847; Wed, 13 Apr 2022 10:11:41 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 0A2E042802 for ; Wed, 13 Apr 2022 10:11:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649837498; x=1681373498; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Eg+W1/VI+8uwinFV5UxZmP882/27WuMKR2L8a+fQOsw=; b=howE8CZbiEUsE5qOedsbySnEzTT1Gcfwb+dbH5EWpG67Icrc+JEv2Ra6 jlSeWOnnpemqadhJjqElqcOIuj6yp/ec4CdMk0OQpU5YUh6Svkf4jVNbl hJGlU00seMJXvRefbqK4egA2QWFE4r309tgZrfx3eFqf/D9D0a2Yx1yN7 l3i0kYkaLwDVD7a6LeDNHErrJwTW627dz/pUeqKt+417rXcL3mPvv4ZqM jcTPbH/MCZSI5BEVf/qFFJSyY1EZABx5iMBg7kexdw0pilkhq76awboCR cI9sbkuOE7D8EJBhKE7TAKTwoInvdKKByYWkYjnTH5URMnRLTliipRfWp w==; X-IronPort-AV: E=McAfee;i="6400,9594,10315"; a="243189138" X-IronPort-AV: E=Sophos;i="5.90,256,1643702400"; d="scan'208";a="243189138" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2022 01:11:15 -0700 X-IronPort-AV: E=Sophos;i="5.90,256,1643702400"; d="scan'208";a="526847649" Received: from intel-cd-odc-kevin.cd.intel.com ([10.240.178.195]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2022 01:11:12 -0700 From: Kevin Liu To: dev@dpdk.org Cc: qiming.yang@intel.com, qi.z.zhang@intel.com, stevex.yang@intel.com, Alvin Zhang , Steven Zou , Kevin Liu Subject: [PATCH v2 13/33] common/iavf: support flushing rules and reporting DCF id Date: Wed, 13 Apr 2022 16:09:12 +0000 Message-Id: <20220413160932.2074781-14-kevinx.liu@intel.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220413160932.2074781-1-kevinx.liu@intel.com> References: <20220407105706.18889-1-kevinx.liu@intel.com> <20220413160932.2074781-1-kevinx.liu@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 From: Alvin Zhang Add virtual channel opcode for DCF flushing rules. Add virtual channel event for PF reporting DCF id. Signed-off-by: Steven Zou Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/common/iavf/virtchnl.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/common/iavf/virtchnl.h b/drivers/common/iavf/virtchnl.h index 3e44eca7d8..6e2a24b281 100644 --- a/drivers/common/iavf/virtchnl.h +++ b/drivers/common/iavf/virtchnl.h @@ -164,6 +164,12 @@ enum virtchnl_ops { VIRTCHNL_OP_ENABLE_QUEUES_V2 = 107, VIRTCHNL_OP_DISABLE_QUEUES_V2 = 108, VIRTCHNL_OP_MAP_QUEUE_VECTOR = 111, + + /** + * To reduce the risk for future combability issue, + * set VIRTCHNL_OP_DCF_RULE_FLUSH carefully by using a special value. + */ + VIRTCHNL_OP_DCF_RULE_FLUSH = 6000, VIRTCHNL_OP_MAX, }; @@ -1424,6 +1430,12 @@ enum virtchnl_event_codes { VIRTCHNL_EVENT_RESET_IMPENDING, VIRTCHNL_EVENT_PF_DRIVER_CLOSE, VIRTCHNL_EVENT_DCF_VSI_MAP_UPDATE, + + /** + * To reduce the risk for future combability issue, + * set VIRTCHNL_EVENT_DCF_VSI_INFO carefully by using a special value. + */ + VIRTCHNL_EVENT_DCF_VSI_INFO = 1000, }; #define PF_EVENT_SEVERITY_INFO 0 @@ -2200,6 +2212,7 @@ virtchnl_vc_validate_vf_msg(struct virtchnl_version_info *ver, u32 v_opcode, */ valid_len = msglen; break; + case VIRTCHNL_OP_DCF_RULE_FLUSH: case VIRTCHNL_OP_DCF_DISABLE: case VIRTCHNL_OP_DCF_GET_VSI_MAP: case VIRTCHNL_OP_DCF_GET_PKG_INFO: -- 2.33.1