aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/switchdev.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/switchdev.h')
-rw-r--r--include/net/switchdev.h23
1 files changed, 7 insertions, 16 deletions
diff --git a/include/net/switchdev.h b/include/net/switchdev.h
index e5de53f92482..d2e69ee3019a 100644
--- a/include/net/switchdev.h
+++ b/include/net/switchdev.h
@@ -19,25 +19,16 @@ struct fib_info;
19/** 19/**
20 * struct switchdev_ops - switchdev operations 20 * struct switchdev_ops - switchdev operations
21 * 21 *
22 * int (*swdev_parent_id_get)(struct net_device *dev, 22 * @swdev_parent_id_get: Called to get an ID of the switch chip this port
23 * struct netdev_phys_item_id *psid); 23 * is part of. If driver implements this, it indicates that it
24 * Called to get an ID of the switch chip this port is part of. 24 * represents a port of a switch chip.
25 * If driver implements this, it indicates that it represents a port
26 * of a switch chip.
27 * 25 *
28 * int (*swdev_port_stp_update)(struct net_device *dev, u8 state); 26 * @swdev_port_stp_update: Called to notify switch device port of bridge
29 * Called to notify switch device port of bridge port STP 27 * port STP state change.
30 * state change.
31 * 28 *
32 * int (*swdev_fib_ipv4_add)(struct net_device *dev, __be32 dst, 29 * @swdev_fib_ipv4_add: Called to add/modify IPv4 route to switch device.
33 * int dst_len, struct fib_info *fi,
34 * u8 tos, u8 type, u32 nlflags, u32 tb_id);
35 * Called to add/modify IPv4 route to switch device.
36 * 30 *
37 * int (*swdev_fib_ipv4_del)(struct net_device *dev, __be32 dst, 31 * @swdev_fib_ipv4_del: Called to delete IPv4 route from switch device.
38 * int dst_len, struct fib_info *fi,
39 * u8 tos, u8 type, u32 tb_id);
40 * Called to delete IPv4 route from switch device.
41 */ 32 */
42struct swdev_ops { 33struct swdev_ops {
43 int (*swdev_parent_id_get)(struct net_device *dev, 34 int (*swdev_parent_id_get)(struct net_device *dev,