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 1A435A0508; Thu, 7 Apr 2022 04:59:26 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CBEBC4288E; Thu, 7 Apr 2022 04:58:53 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 476DC42889 for ; Thu, 7 Apr 2022 04:58:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649300332; x=1680836332; 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=Qi324CTWSggJ+qQgU0Mku4HiJmHgR3nXVgV377phNsjap0sKMUxFw5kL gLlRb4duELBaejrqq7g+fbwMqgHwCGXzVgajOy0M6VidlMUgkhikRNXig MXxVfyE9uD9zKha4kD1t2QIkEfqnBcktr697zCyXcJDK7FqlL4JZ/Mhc7 jBWv2uda4GgVOwwGwDFwdwddp5IKjnvAcquSUOREYYOjsKxmWVN9CxkXU GhKt5ctGr+eN7zzkjCJPxHn4O/BZt9EUPwszsgR7OwPFFOirjPnCYYlA4 h+qn+nO+HTMFYC3rWEEbf+ZJ0rSdRr1C9YjMh4VY1n5/kGrs8IQ4gtTGI w==; X-IronPort-AV: E=McAfee;i="6200,9189,10309"; a="248738364" X-IronPort-AV: E=Sophos;i="5.90,241,1643702400"; d="scan'208";a="248738364" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2022 19:58:51 -0700 X-IronPort-AV: E=Sophos;i="5.90,241,1643702400"; d="scan'208";a="570850578" Received: from intel-cd-odc-kevin.cd.intel.com ([10.240.178.195]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2022 19:58:49 -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 13/39] common/iavf: support flushing rules and reporting DCF id Date: Thu, 7 Apr 2022 10:56:40 +0000 Message-Id: <20220407105706.18889-14-kevinx.liu@intel.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220407105706.18889-1-kevinx.liu@intel.com> References: <20220407105706.18889-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