Skip to contentSkip to conversation

net/ice: remove unused devargs

PATCH Superseded Qi Zhang 1 participant 2 messages Jul 10, 2019 Network drivers

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Qi Zhang

author
#0 lore raw

PATCH v2 1/2 net/ice: remove unused devargs

Remove devarg "max_queue_pair_num" related code since it is not complete implemented.

Fixes f9cf4f864150 ("net/ice: support device initialization")
---
 doc/guides/nics/ice.rst      |  8 ------
 drivers/net/ice/ice_ethdev.c | 66 ++------------------------------------------
 2 files changed, 3 insertions(+), 71 deletions(-)
doc/guides/nics/ice.rst +0 -8
index 666b1b272..e9b3a48bc 100644
@@ -49,14 +49,6 @@ Please note that enabling debugging options may affect system performance.
 Runtime Config Options
 ~~~~~~~~~~~~~~~~~~~~~~
 
-- ``Maximum Number of Queue Pairs``
-
-  The maximum number of queue pairs is decided by HW. If not configured, APP
-  uses the number from HW. Users can check the number by calling the API
-  ``rte_eth_dev_info_get``.
-  If users want to limit the number of queues, they can set a smaller number
-  using EAL parameter like ``max_queue_pair_num=n``.
-
 
 Driver compilation and testing
 ------------------------------
drivers/net/ice/ice_ethdev.c +3 -63

90 lines not on this page · raw message

Signature · 1 line
2.13.6
author
#1 lore raw

PATCH v2 2/2 net/ice: add safe mode support devarg

Safe mode support is not necessary by default.
Driver be initialized without OS package silently may confuse users since most advanced feature are disabled.
Add devarg for safe mode enabling only for when user intend to do this.

---

-v2:
fix missing return value check from ice_parse_devargs. minor document update.

 doc/guides/nics/ice.rst      | 11 +++++++
 drivers/net/ice/ice_ethdev.c | 68 +++++++++++++++++++++++++++++++++++++++++++-
 drivers/net/ice/ice_ethdev.h |  8 ++++++
 3 files changed, 86 insertions(+), 1 deletion(-)
doc/guides/nics/ice.rst +11 -0
index e9b3a48bc..03819d29f 100644
@@ -49,6 +49,17 @@ Please note that enabling debugging options may affect system performance.
 Runtime Config Options
 ~~~~~~~~~~~~~~~~~~~~~~
 
+- ``Safe Mode Support`` (default ``0``)
+
+  If driver failed to load OS package, by default driver's initialization failed.
+  But if user intend to use the device without OS package, user can take ``devargs``
+  parameter ``safe-mode-support``, for example::
+
+    -w 80:00.0,safe-mode-support=1
+
+  Then the driver will be initialized successfully and the device will enter Safe Mode.
+  NOTE: In Safe mode, only very limited features are available, features like RSS,
+  checksum, fdir, tunneling ... are all disabled.
 
 Driver compilation and testing
 ------------------------------
drivers/net/ice/ice_ethdev.c +67 -1

99 lines not on this page · raw message

drivers/net/ice/ice_ethdev.h +8 -0
index 8a52239f5..f569da833 100644
@@ -274,6 +274,13 @@ struct ice_pf {
 };
 
 /**
+ * Cache devargs parse result.
+ */
+struct ice_devargs {
+	int safe_mode_support;
+};
+
+/**
  * Structure to store private data for each PF/VF instance.
  */
 struct ice_adapter {
@@ -286,6 +293,7 @@ struct ice_adapter {
 	/* ptype mapping table */
 	uint32_t ptype_tbl[ICE_MAX_PKT_TYPE] __rte_cache_min_aligned;
 	bool is_safe_mode;
+	struct ice_devargs devargs;
 };
 
 struct ice_vsi_vlan_pvid_info {
Signature · 1 line
2.13.6