Skip to contentSkip to conversation

doc: add deprecation notice for iavf devarg auto reconfig

PATCH Superseded Ciara Loftus 5 participants 6 messages Jul 15 – Jul 22

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: add deprecation notice for iavf devarg auto reconfig

The auto_reconfig devarg in the iavf driver is enabled by default and the case for ever disabling it is weak. When disabled, it means the user is requesting the driver not to restore settings (unicast/multicast promiscuous modes) when recovering from a reset. The use case where this might be desired is during a VF initiated reset where the user initiates the reset and wants the VF brought back up in an untouched state. That scenario can be facilitated by extending the rte_pmd_iavf_reinit API rather than relying on this devarg, so it should be safe to remove the devarg.

---
 doc/guides/rel_notes/deprecation.rst | 9 +++++++++
 1 file changed, 9 insertions(+)
doc/guides/rel_notes/deprecation.rst +9 -0
index f5c12cc747..b88774a3ae 100644
@@ -159,3 +159,12 @@ Deprecation Notices
 * net/iavf: The dynamic mbuf field used to detect LLDP packets on the
   transmit path in the iavf PMD will be removed in a future release.
   After removal, only packet type-based detection will be supported.
+
+* net/iavf: The ``auto_reconfig`` devarg is deprecated and will be removed
+  in a future release. It allows disabling the automatic restoration of
+  device settings after a VF reset, but this is of questionable value
+  since most applications expect their settings to be preserved
+  transparently across a reset. The only use case for this devarg is
+  arguably a VF initiated reset; however this functionality could be
+  supported by extending the ``rte_pmd_iavf_reinit`` API instead of
+  relying on a devarg.
Signature · 1 line
2.43.0
Acked-by on v1 1/1
#1 lore raw
Quoted 23 lines · Ciara Loftus

The auto_reconfig devarg in the iavf driver is enabled by default and the case for ever disabling it is weak. When disabled, it means the user is requesting the driver not to restore settings (unicast/multicast promiscuous modes) when recovering from a reset. The use case where this might be desired is during a VF initiated reset where the user initiates the reset and wants the VF brought back up in an untouched state. That scenario can be facilitated by extending the rte_pmd_iavf_reinit API rather than relying on this devarg, so it should be safe to remove the devarg.

---
 doc/guides/rel_notes/deprecation.rst | 9 +++++++++
 1 file changed, 9 insertions(+)
doc/guides/rel_notes/deprecation.rst +0 -0
index f5c12cc747..b88774a3ae 100644
@@ -159,3 +159,12 @@ Deprecation Notices
 * net/iavf: The dynamic mbuf field used to detect LLDP packets on the
   transmit path in the iavf PMD will be removed in a future release.

doc/guides/rel_notes/deprecation.rst Deprecation Notices · line 170

Quoted 10 lines
doc/guides/rel_notes/deprecation.rst +9 -0
   After removal, only packet type-based detection will be supported.
+
+* net/iavf: The ``auto_reconfig`` devarg is deprecated and will be removed
+  in a future release. It allows disabling the automatic restoration of
+  device settings after a VF reset, but this is of questionable value
+  since most applications expect their settings to be preserved
+  transparently across a reset. The only use case for this devarg is
+  arguably a VF initiated reset; however this functionality could be
+  supported by extending the ``rte_pmd_iavf_reinit`` API instead of
+  relying on a devarg.

I think the text might be slightly too long for a deprecation notice, so I'd tend toward removing the description of the possible API change, since you only talk about how it "could" be done, rather than how it "will" be done. The first two sentences should be enough on their own.

#2 lore raw

PATCH v2 1/1 doc: add deprecation notice for iavf devarg auto reconfig

In reply to Ciara Loftus

The auto_reconfig devarg in the iavf driver is enabled by default and the case for ever disabling it is weak. When disabled, it means the user is requesting the driver not to restore settings (unicast/multicast promiscuous modes) when recovering from a reset. The use case where this might be desired is during a VF initiated reset where the user initiates the reset and wants the VF brought back up in an untouched state. That scenario can be facilitated by extending the rte_pmd_iavf_reinit API rather than relying on this devarg, so it should be safe to remove the devarg.

---
v2:
* Shortened deprecation note

---
 doc/guides/rel_notes/deprecation.rst | 6 ++++++
 1 file changed, 6 insertions(+)
doc/guides/rel_notes/deprecation.rst +6 -0
index f5c12cc747..910feb7cf2 100644
@@ -159,3 +159,9 @@ Deprecation Notices
 * net/iavf: The dynamic mbuf field used to detect LLDP packets on the
   transmit path in the iavf PMD will be removed in a future release.
   After removal, only packet type-based detection will be supported.
+
+* net/iavf: The ``auto_reconfig`` devarg is deprecated and will be removed
+  in a future release. It allows disabling the automatic restoration of
+  device settings after a VF reset, but this is of questionable value
+  since most applications expect their settings to be preserved
+  transparently across a reset.
Signature · 1 line
2.43.0
Acked-by on v2 1/1
#3 lore raw
Quoted 33 lines · Ciara Loftus

The auto_reconfig devarg in the iavf driver is enabled by default and the case for ever disabling it is weak. When disabled, it means the user is requesting the driver not to restore settings (unicast/multicast promiscuous modes) when recovering from a reset. The use case where this might be desired is during a VF initiated reset where the user initiates the reset and wants the VF brought back up in an untouched state. That scenario can be facilitated by extending the rte_pmd_iavf_reinit API rather than relying on this devarg, so it should be safe to remove the devarg.

---
v2:
* Shortened deprecation note

---
  doc/guides/rel_notes/deprecation.rst | 6 ++++++
  1 file changed, 6 insertions(+)
doc/guides/rel_notes/deprecation.rst +6 -0
index f5c12cc747..910feb7cf2 100644
@@ -159,3 +159,9 @@ Deprecation Notices
  * net/iavf: The dynamic mbuf field used to detect LLDP packets on the
    transmit path in the iavf PMD will be removed in a future release.
    After removal, only packet type-based detection will be supported.
+
+* net/iavf: The ``auto_reconfig`` devarg is deprecated and will be removed
+  in a future release. It allows disabling the automatic restoration of
+  device settings after a VF reset, but this is of questionable value
+  since most applications expect their settings to be preserved
+  transparently across a reset.
Signature · 2 lines
Regards,
Vladimir
Acked-by David Marchand Applied
#4 lore raw
Quoted 10 lines
Quoted 10 lines

The auto_reconfig devarg in the iavf driver is enabled by default and the case for ever disabling it is weak. When disabled, it means the user is requesting the driver not to restore settings (unicast/multicast promiscuous modes) when recovering from a reset. The use case where this might be desired is during a VF initiated reset where the user initiates the reset and wants the VF brought back up in an untouched state. That scenario can be facilitated by extending the rte_pmd_iavf_reinit API rather than relying on this devarg, so it should be safe to remove the devarg.

Quoted 3 lines
Quoted 2 lines

Applied, thanks.

Acked-by on v2 1/1
#5 lore raw
In reply to Ciara Loftus
Quoted 11 lines · Ciara Loftus

The auto_reconfig devarg in the iavf driver is enabled by default and the case for ever disabling it is weak. When disabled, it means the user is requesting the driver not to restore settings (unicast/multicast promiscuous modes) when recovering from a reset. The use case where this might be desired is during a VF initiated reset where the user initiates the reset and wants the VF brought back up in an untouched state. That scenario can be facilitated by extending the rte_pmd_iavf_reinit API rather than relying on this devarg, so it should be safe to remove the devarg.

Quoted 2 lines
Signature · 1 line
David Marchand