Skip to contentSkip to conversation

net/enic: add PCI ID for new virtual function

PATCH In review John Daley 2 participants 3 messages Sep 5, 2019 – Oct 2, 2019 Network drivers

lore
Share & tools
lore

John Daley

author
#0 lore raw

PATCH 1/2 net/enic: add PCI ID for new virtual function

Probe for the PCI ID of a new mode of VF which will be added to VIC adapter firmware. When fully implemented, the new mode will operate independent of the Cisco Virtual Machine Fabric Extender (VM-FEX) and will not need to be provisioned through libvirt. The new mode is dubbed "Standalone vNic" mode or "SN" mode.

Also, minor formatting changes.

---
 drivers/net/enic/enic.h        | 2 ++
 drivers/net/enic/enic_ethdev.c | 5 +++--
 2 files changed, 5 insertions(+), 2 deletions(-)
drivers/net/enic/enic.h +2 -0
index 5a92508f0..ff4de8898 100644
@@ -42,6 +42,8 @@
 
 #define PCI_DEVICE_ID_CISCO_VIC_ENET         0x0043  /* ethernet vnic */
 #define PCI_DEVICE_ID_CISCO_VIC_ENET_VF      0x0071  /* enet SRIOV VF */
+/* enet SRIOV Standalone vNic VF */
+#define PCI_DEVICE_ID_CISCO_VIC_ENET_SN      0x02B7
 
 /* Special Filter id for non-specific packet flagging. Don't change value */
 #define ENIC_MAGIC_FILTER_ID 0xffff
drivers/net/enic/enic_ethdev.c +3 -2
index 06dc67122..5560af151 100644
@@ -28,8 +28,9 @@ int enic_pmd_logtype;
  */
 #define CISCO_PCI_VENDOR_ID 0x1137
 static const struct rte_pci_id pci_id_enic_map[] = {
-	{ RTE_PCI_DEVICE(CISCO_PCI_VENDOR_ID, PCI_DEVICE_ID_CISCO_VIC_ENET) },
-	{ RTE_PCI_DEVICE(CISCO_PCI_VENDOR_ID, PCI_DEVICE_ID_CISCO_VIC_ENET_VF) },
+	{RTE_PCI_DEVICE(CISCO_PCI_VENDOR_ID, PCI_DEVICE_ID_CISCO_VIC_ENET)},
+	{RTE_PCI_DEVICE(CISCO_PCI_VENDOR_ID, PCI_DEVICE_ID_CISCO_VIC_ENET_VF)},
+	{RTE_PCI_DEVICE(CISCO_PCI_VENDOR_ID, PCI_DEVICE_ID_CISCO_VIC_ENET_SN)},
 	{.vendor_id = 0, /* sentinel */},
 };
 
Signature · 1 line
2.22.0
author
#1 lore raw

PATCH 2/2 doc: remove comments about deprecated fdir in enic guide

The legacy filter API "flow director" has been superseded by rte_flow since 2017. Remove comments in the enic guide regarding the deprecated feature.

---
 doc/guides/nics/enic.rst | 33 +++++++--------------------------
 1 file changed, 7 insertions(+), 26 deletions(-)
doc/guides/nics/enic.rst +7 -26
index 5681bdb54..5e80398bf 100644
@@ -107,24 +107,6 @@ Configuration information
     TCP, IPv4, TCP-IPv4, IPv6, TCP-IPv6, IPv6 Extension, TCP-IPv6 Extension.
 
 
-.. _enic-flow-director:
-
-Flow director support
----------------------
-
-Advanced filtering support was added to 1300 series VIC firmware starting
-with version 2.0.13 for C-series UCS servers and version 3.1.2 for UCSM
-managed blade servers. In order to enable advanced filtering the 'Advanced
-filter' radio button should be enabled via CIMC or UCSM followed by a reboot
-of the server.
-
-With advanced filters, perfect matching of all fields of IPv4, IPv6 headers
-as well as TCP, UDP and SCTP L4 headers is available through flow director.
-Masking of these fields for partial match is also supported.
-
-Without advanced filter support, the flow director is limited to IPv4
-perfect filtering of the 5-tuple with no masking of fields supported.
-
 SR-IOV mode utilization
 -----------------------
 
@@ -229,7 +211,13 @@ the use of SR-IOV.
 Generic Flow API support
 ------------------------
 
-Generic Flow API is supported. The baseline support is:
+Generic Flow API (also called "rte_flow" API) is supported. More advanced
+capabilities are available when "Advanced Filtering" is enabled on the adapter.
+Advanced filtering was added to 1300 series VIC firmware starting with version
+2.0.13 for C-series UCS servers and version 3.1.2 for UCSM managed blade
+servers. Advanced filtering is available on 1400 series adapters and beyond.
+To enable advanced filtering, the 'Advanced filter' radio button should be
+selected via CIMC or UCSM followed by a reboot of the server.
 
 - **1200 series VICs**
 
@@ -420,12 +408,6 @@ PKT_RX_VLAN_STRIPPED mbuf flags would not be set. This mode is enabled with the
 
     -w 12:00.0,ig-vlan-rewrite=untag
 
-- Limited flow director support on 1200 series and 1300 series Cisco VIC
-  adapters with old firmware. Please see :ref:`enic-flow-director`.
-
-- Flow director features are not supported on generation 1 Cisco VIC adapters
-  (M81KR and P81E)
-
 - **SR-IOV**
 
   - KVM hypervisor support only. VMware has not been tested.
@@ -512,7 +494,6 @@ Supported features
 - IP checksum offload
 - Receive side VLAN stripping
 - Multiple receive and transmit queues
-- Flow Director ADD, UPDATE, DELETE, STATS operation support IPv4 and IPv6
 - Promiscuous mode
 - Setting RX VLAN (supported via UCSM/CIMC only)
 - VLAN filtering (supported via UCSM/CIMC only)
Signature · 1 line
2.22.0
#2 lore raw
In reply to John Daley
Quoted 10 lines · John Daley

Probe for the PCI ID of a new mode of VF which will be added to VIC adapter firmware. When fully implemented, the new mode will operate independent of the Cisco Virtual Machine Fabric Extender (VM-FEX) and will not need to be provisioned through libvirt. The new mode is dubbed "Standalone vNic" mode or "SN" mode.

Also, minor formatting changes.

Series applied to dpdk-next-net/master, thanks.