Skip to contentSkip to conversation

net/i40e: fix Virtchnl Offload Caps missing

PATCH Applied Robin Zhang 3 participants 3 messages Mar 12, 2021 – Mar 25, 2021 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/i40e: fix Virtchnl Offload Caps missing

A new feature requesting additional queues from PF is added in iavf, before sending VIRTCHNL_OP_REQUEST_QUEUES op code, the offload capability flag VIRTCHNL_VF_OFFLOAD_REQ_QUEUES will be checked. And due to DPDK PF is still used by some cases, so add this offload capability flag in i40e pf.

Fixes cbdbd360f77f ("net/i40e: support AVF basic interface")
---
 drivers/net/i40e/i40e_pf.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/i40e/i40e_pf.c +4 -0
index f3d6d899f6..9804ed4253 100644
@@ -333,6 +333,10 @@ i40e_pf_host_process_cmd_get_vf_resource(struct i40e_pf_vf *vf, uint8_t *msg,
 
 	vf_res->vf_cap_flags = vf->request_caps &
 				   I40E_VIRTCHNL_OFFLOAD_CAPS;
+
+	if (vf->request_caps & VIRTCHNL_VF_OFFLOAD_REQ_QUEUES)
+		vf_res->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_REQ_QUEUES;
+
 	/* For X722, it supports write back on ITR
 	 * without binding queue to interrupt vector.
 	 */
Signature · 1 line
2.25.1
Acked-by on v1 1/1
#1 lore raw
Quoted 40 lines

-----Original Message-----
From: Zhang, RobinX <[email protected]>
Sent: Friday, March 12, 2021 4:52 PM
To: [email protected]
Cc: Xing, Beilei <[email protected]>; Guo, Jia <[email protected]>; Zhang, RobinX <[email protected]>
Subject: [PATCH] net/i40e: fix Virtchnl Offload Caps missing

A new feature requesting additional queues from PF is added in iavf, before sending VIRTCHNL_OP_REQUEST_QUEUES op code, the offload capability flag VIRTCHNL_VF_OFFLOAD_REQ_QUEUES will be checked. And due to DPDK PF is still used by some cases, so add this offload capability flag in i40e pf.

Fixes cbdbd360f77f ("net/i40e: support AVF basic interface")
---
 drivers/net/i40e/i40e_pf.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/i40e/i40e_pf.c index renamed from drivers/net/i40e/i40e_pf.c +0 -0

f3d6d899f6..9804ed4253 100644

drivers/net/i40e/i40e_pf.c +4 -0
@@ -333,6 +333,10 @@ i40e_pf_host_process_cmd_get_vf_resource(struct
 i40e_pf_vf *vf, uint8_t *msg,
 
 	vf_res->vf_cap_flags = vf->request_caps &
 				   I40E_VIRTCHNL_OFFLOAD_CAPS;
+
+	if (vf->request_caps & VIRTCHNL_VF_OFFLOAD_REQ_QUEUES)
+		vf_res->vf_cap_flags |=
 VIRTCHNL_VF_OFFLOAD_REQ_QUEUES;
+
 	/* For X722, it supports write back on ITR
drivers/net/i40e/i40e_pf.c +0 -1
 	 * without binding queue to interrupt vector.
 	 */
--

2.25.1

Applied
#2 lore raw
Quoted 29 lines

-----Original Message-----
From: dev <[email protected]> On Behalf Of Guo, Jia
Sent: Friday, March 12, 2021 5:29 PM
To: Zhang, RobinX <[email protected]>; [email protected]
Cc: Xing, Beilei <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] net/i40e: fix Virtchnl Offload Caps missing

Quoted 18 lines

-----Original Message-----
From: Zhang, RobinX <[email protected]>
Sent: Friday, March 12, 2021 4:52 PM
To: [email protected]
Cc: Xing, Beilei <[email protected]>; Guo, Jia <[email protected]>; Zhang, RobinX <[email protected]>
Subject: [PATCH] net/i40e: fix Virtchnl Offload Caps missing

A new feature requesting additional queues from PF is added in iavf, before sending VIRTCHNL_OP_REQUEST_QUEUES op code, the offload capability flag VIRTCHNL_VF_OFFLOAD_REQ_QUEUES will be checked. And due to DPDK PF is still used by some cases, so add this offload capability flag in i40e pf.

Fixes cbdbd360f77f ("net/i40e: support AVF basic interface")

---

Applied to dpdk-next-net-intel.

Thanks
Qi