| /linux/net/switchdev/ |
| H A D | switchdev.c | 639 struct net_device *br, *lower_dev, *switchdev; in __switchdev_handle_fdb_event_to_device() local 677 switchdev = switchdev_lower_dev_find_rcu(br, check_cb, foreign_dev_check_cb); in __switchdev_handle_fdb_event_to_device() 678 if (!switchdev) in __switchdev_handle_fdb_event_to_device() 681 if (!foreign_dev_check_cb(switchdev, dev)) in __switchdev_handle_fdb_event_to_device() 720 struct net_device *br, *lower_dev, *switchdev; in __switchdev_handle_port_obj_add() local 770 switchdev = switchdev_lower_dev_find(br, check_cb, foreign_dev_check_cb); in __switchdev_handle_port_obj_add() 771 if (!switchdev) in __switchdev_handle_port_obj_add() 774 if (!foreign_dev_check_cb(switchdev, dev)) in __switchdev_handle_port_obj_add() 834 struct net_device *br, *lower_dev, *switchdev; in __switchdev_handle_port_obj_del() local 881 switchdev = switchdev_lower_dev_find(br, check_cb, foreign_dev_check_cb); in __switchdev_handle_port_obj_del() [all …]
|
| H A D | Makefile | 6 obj-y += switchdev.o
|
| /linux/Documentation/networking/ |
| H A D | switchdev.rst | 6 Ethernet switch device driver model (switchdev) 14 The Ethernet switch device driver model (switchdev) is an in-kernel driver 18 Figure 1 is a block diagram showing the components of the switchdev model for 72 #include <net/switchdev.h> 78 Use "depends NET_SWITCHDEV" in driver's Kconfig to ensure switchdev model 85 On switchdev driver initialization, the driver will allocate and register a 96 port netdevs. All of the switchdev driver ops are netdev ops or switchdev ops. 98 A switch management port is outside the scope of the switchdev driver model. 106 The switchdev driver must implement the net_device operation 142 If the switchdev driver (and device) only supports offloading of the default [all …]
|
| H A D | representors.rst | 11 :ref:`Documentation/networking/switchdev.rst <switchdev>`. 44 This document uses the term "switchdev function" to refer to the PCIe function 48 Depending on NIC design, a multi-port NIC might have a single switchdev function 50 switchdev function, for each physical network port. 51 If the NIC supports nested switching, there might be separate switchdev 52 functions for each nested switch, in which case each switchdev function should 99 - VFs belonging to the switchdev function. 147 The driver instance attached to the switchdev function should, for each virtual 149 in-kernel reference to the switchdev function's own netdevice or driver private 155 through the switchdev function. For example, ``ndo_start_xmit()`` might send [all …]
|
| H A D | sriov.rst | 7 Modern NICs are strongly encouraged to focus on implementing the ``switchdev`` 8 model (see :ref:`switchdev`) to configure forwarding and security of SR-IOV
|
| H A D | bridge.rst | 241 hardware switches that support switchdev. With Linux Bridge Switchdev, certain 248 switchdev interface. This means that the switch hardware needs to have the 252 Please see the :ref:`switchdev` document for more details.
|
| /linux/Documentation/networking/device_drivers/ethernet/mellanox/mlx5/ |
| H A D | switchdev.rst | 15 The mlx5 driver implements support for offloading bridge rules when in switchdev 16 mode. Linux bridge FDBs are automatically offloaded when mlx5 switchdev 19 - Change device to switchdev mode:: 21 $ devlink dev eswitch set pci/0000:06:00.0 mode switchdev 23 - Attach mlx5 switchdev representor 'enp8s0f0' to bridge netdev 'bridge1':: 135 - Change device to switchdev mode:: 137 $ devlink dev eswitch set pci/0000:06:00.0 mode switchdev 163 This is supported only when the eswitch mode is set to switchdev. Port function
|
| H A D | kconfig.rst | 91 | 2) :ref:`Switchdev mode (eswitch offloads) <switchdev>`.
|
| /linux/drivers/net/ethernet/mscc/ |
| H A D | Kconfig | 24 used by switchdev as well as by DSA drivers.
|
| /linux/Documentation/translations/zh_CN/networking/ |
| H A D | index.rst | 134 * switchdev
|
| /linux/Documentation/networking/devlink/ |
| H A D | ice.rst | 394 This feature is also dependent on switchdev being enabled in the system. 396 present, and those objects are only created in switchdev mode. 398 If the driver is set to the switchdev mode, it will export internal 439 # enable switchdev 440 $ devlink dev eswitch set pci/0000:4b:00.0 mode switchdev
|
| /linux/drivers/net/ethernet/ti/ |
| H A D | Kconfig | 66 tristate "TI CPSW Switch Support with switchdev" 121 This enables switchdev support for TI K3 CPSWxG Ethernet
|
| /linux/Documentation/networking/device_drivers/ethernet/marvell/ |
| H A D | octeontx2.rst | 351 the switchdev mode. 370 - Change device to switchdev mode:: 372 # devlink dev eswitch set pci/0002:1c:00.0 mode switchdev
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_tc_lib.c | 1724 bool switchdev = in ice_parse_cls_flower() local 1727 if (switchdev != (n_proto_key == ETH_P_LLDP)) { in ice_parse_cls_flower() 1730 switchdev ? "Non-" : "", in ice_parse_cls_flower() 1731 switchdev ? "switchdev" : in ice_parse_cls_flower()
|
| /linux/drivers/net/ethernet/broadcom/ |
| H A D | Kconfig | 236 offload for eswitch. This option enables SR-IOV switchdev eswitch
|
| /linux/tools/testing/selftests/drivers/net/netdevsim/ |
| H A D | devlink.sh | 776 devlink dev eswitch set $DL_HANDLE mode switchdev
|
| /linux/drivers/net/ethernet/intel/ |
| H A D | Kconfig | 339 #devlink dev eswitch set pci/0000:XX:XX.X mode switchdev
|
| /linux/Documentation/networking/device_drivers/ethernet/intel/ |
| H A D | ice.rst | 131 In switchdev mode you can reset a VF using port representor:
|
| /linux/ |
| H A D | MAINTAINERS | 15489 W: https://github.com/Marvell-switching/switchdev-prestera 25517 F: include/net/switchdev.h 25518 F: net/switchdev/
|