iavf update base code
v2 cover iavf update base code
main change:
Add support for VFs with > 16 queues pairs
v2:
- add more commit in PATCH 1/2.
- squash PATCH 3/3 with PATCH 2/3.
Qi Zhang (2):
common/iavf: replace macro for MAC address length common/iavf: add support for VFs with >16 queue pairs
drivers/common/iavf/README | 2 +- drivers/common/iavf/virtchnl.h | 235 +++++++++++++++++++++++++++++---- 2 files changed, 207 insertions(+), 30 deletions(-)
Signature · 1 line
2.25.4
PATCH v2 1/2 common/iavf: replace macro for MAC address length
Replace ETH_ALEN with VIRTCHNL_ETH_LENGTH_OF_ADDRESS to keep consistent.
--- drivers/common/iavf/virtchnl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/common/iavf/virtchnl.h +2 -2
@@ -624,8 +624,8 @@ VIRTCHNL_CHECK_STRUCT_LEN(24, virtchnl_tc_info);*/ struct virtchnl_l4_spec { -u8 src_mac[ETH_ALEN ]; -u8 dst_mac[ETH_ALEN ]; +u8 src_mac[VIRTCHNL_ETH_LENGTH_OF_ADDRESS ]; +u8 dst_mac[VIRTCHNL_ETH_LENGTH_OF_ADDRESS ];/* vlan_prio is part of this 16 bit field even from OS perspective * vlan_id:12 is actual vlan_id, then vlanid:bit14..12 is vlan_prio * in future, when decided to offload vlan_prio, pass that information
Signature · 1 line
2.25.4
PATCH v2 2/2 common/iavf: add support for VFs with >16 queue pairs
In reply to Qi ZhangCurrently there are limitations in the virthcnl.h interface that only allow a maximum of 16 queues to be used by a VF driver. Add support in virtchnl.h to allow a VF driver to request >16 queues. Also, the RSS qregion size is currently assumed to be the max number of queues a VF can request and/or is given on initialization. With larger VFs this assumption can no longer be made, so add a new op to support querying the max RSS qregion size.
In order to request more queues than the initially given queues the VF driver needs to use the VIRTCHNL_OP_REQUEST_QUEUES opcode.
The VF is given more >16 queues it should use the new VIRTCHNL_OP_GET_MAX_RSS_QREGION to determine its max qregion size. This is needed to correctly configure the RSS LUT and/or configure filters based on queue base/offset and queue region size.
If the VF is configuring >16 queues it should use the following opcodes to configure the qeueus and interrupts after successfully requesting them.
VIRTCHNL_OP_MAP_QUEUE_VECTORVIRTCHNL_OP_ENABLE_QUEUES_V2VIRTCHNL_OP_DISABLE_QUEUES_V2
Also, add support in virtchnl_vc_validate_vf_msg() to validate the above messages. As a part of this move the virtchnl_vector_limits enumeration directly above the function it's used.
The patch also update base code release version in readme.
--- drivers/common/iavf/README | 2 +- drivers/common/iavf/virtchnl.h | 231 +++++++++++++++++++++++++++++---- 2 files changed, 205 insertions(+), 28 deletions(-)
drivers/common/iavf/README +1 -1
@@ -6,7 +6,7 @@ Intel® IAVF driver ================= This directory contains source code of FreeBSD IAVF driver of version -cid-avf.2020.04.09.tar.gz released by the team which develops +cid-avf.2020.10.14.tar.gz released by the team which develops basic drivers for any IAVF NIC. The directory of base/ contains the original source package.
drivers/common/iavf/virtchnl.h +204 -27
273 lines not on this page · raw message
Signature · 1 line
2.25.4
Zhang, Qi Z
AppliedQuoted 21 lines
-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Friday, October 16, 2020 6:41 PM
To: Yigit, Ferruh <[email protected]>
Cc: [email protected]; Xing, Beilei <[email protected]>; Zhang, Qi Z <[email protected]>
Subject: [PATCH v2 0/2] iavf update base codemain change:
Add support for VFs with > 16 queues pairsv2:
- add more commit in PATCH 1/2.
- squash PATCH 3/3 with PATCH 2/3.Qi Zhang (2):
common/iavf: replace macro for MAC address length common/iavf: add support for VFs with >16 queue pairs
Quoted 7 lines
drivers/common/iavf/README | 2 +- drivers/common/iavf/virtchnl.h | 235 +++++++++++++++++++++++++++++---- 2 files changed, 207 insertions(+), 30 deletions(-)--
2.25.4
Applied to dpdk-next-net-intel.
Thanks
Qi