From: Qi Zhang Date: Tue, 10 Mar 2020 00:37:10 +0000 (+0800) Subject: common/iavf: support DCF capability negotiation X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ddfd1f9b70932707fc61b0a3486a09fdeb64ba23;p=dpdk.git common/iavf: support DCF capability negotiation Add DCF capability flag for VF. Add an opcode for disabling DCF capability. Add an virtchnl event code for AVF resetting completion. Signed-off-by: Xiaoyun Li Signed-off-by: Paul M Stillwell Jr Signed-off-by: Qi Zhang Acked-by: Beilei Xing --- diff --git a/drivers/common/iavf/virtchnl.h b/drivers/common/iavf/virtchnl.h index 3e544b95a4..f6af14ae3f 100644 --- a/drivers/common/iavf/virtchnl.h +++ b/drivers/common/iavf/virtchnl.h @@ -131,6 +131,7 @@ enum virtchnl_ops { /* opcodes 34, 35, 36, 37 and 38 are reserved */ VIRTCHNL_OP_DCF_CMD_DESC = 39, VIRTCHNL_OP_DCF_CMD_BUFF = 40, + VIRTCHNL_OP_DCF_DISABLE = 41, }; /* These macros are used to generate compilation errors if a structure/union @@ -245,6 +246,7 @@ VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_vsi_resource); #define VIRTCHNL_VF_OFFLOAD_ADQ 0X00800000 #define VIRTCHNL_VF_OFFLOAD_ADQ_V2 0X01000000 #define VIRTCHNL_VF_OFFLOAD_USO 0X02000000 +#define VIRTCHNL_VF_CAP_DCF 0X40000000 /* 0X80000000 is reserved */ /* Define below the capability flags that are not offloads */ @@ -887,6 +889,8 @@ virtchnl_vc_validate_vf_msg(struct virtchnl_version_info *ver, u32 v_opcode, * so the validation needs to be done in PF's context. */ return 0; + case VIRTCHNL_OP_DCF_DISABLE: + break; /* These are always errors coming from the VF. */ case VIRTCHNL_OP_EVENT: case VIRTCHNL_OP_UNKNOWN: