mirror of https://github.com/torvalds/linux.git
Adds DEVLINK_ESWITCH_MODE_SWITCHDEV_INACTIVE attribute to UAPI and documentation. Before having traffic flow through an eswitch, a user may want to have the ability to block traffic towards the FDB until FDB is fully programmed and the user is ready to send traffic to it. For example: when two eswitches are present for vports in a multi-PF setup, one eswitch may take over the traffic from the other when the user chooses. Before this take over, a user may want to first program the inactive eswitch and then once ready redirect traffic to this new eswitch. switchdev modes transition semantics: legacy->switchdev_inactive: Create switchdev mode normally, traffic not allowed to flow yet. switchdev_inactive->switchdev: Enable traffic to flow. switchdev->switchdev_inactive: Block traffic on the FDB, FDB and representros state and content is preserved. When eswitch is configured to this mode, traffic is ignored/dropped on this eswitch FDB, while current configuration is kept, e.g FDB rules and netdev representros are kept available, FDB programming is allowed. Example: # start inactive switchdev devlink dev eswitch set pci/0000:08:00.1 mode switchdev_inactive # setup TC rules, representors etc .. # activate devlink dev eswitch set pci/0000:08:00.1 mode switchdev Signed-off-by: Saeed Mahameed <saeedm@nvidia.com> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Link: https://patch.msgid.link/20251108070404.1551708-2-saeed@kernel.org Signed-off-by: Paolo Abeni <pabeni@redhat.com> |
||
|---|---|---|
| .. | ||
| am65-nuss-cpsw-switch.rst | ||
| bnxt.rst | ||
| devlink-dpipe.rst | ||
| devlink-eswitch-attr.rst | ||
| devlink-flash.rst | ||
| devlink-health.rst | ||
| devlink-info.rst | ||
| devlink-linecard.rst | ||
| devlink-params.rst | ||
| devlink-port.rst | ||
| devlink-region.rst | ||
| devlink-reload.rst | ||
| devlink-resource.rst | ||
| devlink-selftests.rst | ||
| devlink-trap.rst | ||
| etas_es58x.rst | ||
| hns3.rst | ||
| i40e.rst | ||
| ice.rst | ||
| index.rst | ||
| ionic.rst | ||
| iosm.rst | ||
| ixgbe.rst | ||
| kvaser_pciefd.rst | ||
| kvaser_usb.rst | ||
| mlx4.rst | ||
| mlx5.rst | ||
| mlxsw.rst | ||
| mv88e6xxx.rst | ||
| netdevsim.rst | ||
| nfp.rst | ||
| octeontx2.rst | ||
| prestera.rst | ||
| qed.rst | ||
| sfc.rst | ||
| stmmac.rst | ||
| ti-cpsw-switch.rst | ||
| zl3073x.rst | ||