mbox series

[RFC,0/2] Flow entities behavior across port restart

Message ID 20210901085516.3647814-1-dkozlyuk@nvidia.com (mailing list archive)
Headers
Series Flow entities behavior across port restart |

Message

Dmitry Kozlyuk Sept. 1, 2021, 8:55 a.m. UTC
  It is currently unspecified if flow rules and indirect actions persist
across port restart and reconfiguration. Actual behavior differs between
PMDs, for example, i40e and mlx5. There are patches that try to fix
particular behavior [1] or at least document it for specific PMDs [2].
We propose to codify the least demanding behavior, i.e. no persistence,
and to add device capabilities for persistence of rules and actions.
This continues the discussion thread [3].

[1]: http://patchwork.dpdk.org/project/dpdk/list/?series=18065
[2]: http://patchwork.dpdk.org/project/dpdk/list/?series=17939
[3]: http://inbox.dpdk.org/dev/20210727073121.895620-5-dkozlyuk@nvidia.com/

Dmitry Kozlyuk (2):
  ethdev: add capability to keep flow rules on restart
  ethdev: add capability to keep indirect actions on restart

 doc/guides/prog_guide/rte_flow.rst | 21 +++++++++++++++++++++
 lib/ethdev/rte_ethdev.h            |  7 +++++++
 2 files changed, 28 insertions(+)
  

Comments

Thomas Monjalon Oct. 5, 2021, 5:23 p.m. UTC | #1
> Dmitry Kozlyuk (2):
>   ethdev: add capability to keep flow rules on restart
>   ethdev: add capability to keep indirect actions on restart
> 
>  doc/guides/prog_guide/rte_flow.rst | 21 +++++++++++++++++++++
>  lib/ethdev/rte_ethdev.h            |  7 +++++++
>  2 files changed, 28 insertions(+)

We should update this:

 * Please note that some configuration is not stored between calls to
 * rte_eth_dev_stop()/rte_eth_dev_start(). The following configuration will
 * be retained:
 *
 *     - MTU
 *     - flow control settings
 *     - receive mode configuration (promiscuous mode, all-multicast mode,
 *       hardware checksum mode, RSS/VMDQ settings etc.)
 *     - VLAN filtering configuration
 *     - default MAC address
 *     - MAC addresses supplied to MAC address array
 *     - flow director filtering mode (but not filtering rules)
 *     - NIC queue statistics mappings