Jiri Pirko | 007f790 | 2014-11-28 14:34:17 +0100 | [diff] [blame] | 1 | /* |
| 2 | * include/net/switchdev.h - Switch device API |
Jiri Pirko | 7ea6eb3 | 2015-09-24 10:02:41 +0200 | [diff] [blame] | 3 | * Copyright (c) 2014-2015 Jiri Pirko <jiri@resnulli.us> |
Scott Feldman | f8f2147 | 2015-03-09 13:59:09 -0700 | [diff] [blame] | 4 | * Copyright (c) 2014-2015 Scott Feldman <sfeldma@gmail.com> |
Jiri Pirko | 007f790 | 2014-11-28 14:34:17 +0100 | [diff] [blame] | 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; either version 2 of the License, or |
| 9 | * (at your option) any later version. |
| 10 | */ |
| 11 | #ifndef _LINUX_SWITCHDEV_H_ |
| 12 | #define _LINUX_SWITCHDEV_H_ |
| 13 | |
| 14 | #include <linux/netdevice.h> |
Jiri Pirko | 03bf0c2 | 2015-01-15 23:49:36 +0100 | [diff] [blame] | 15 | #include <linux/notifier.h> |
Jiri Pirko | 7ea6eb3 | 2015-09-24 10:02:41 +0200 | [diff] [blame] | 16 | #include <linux/list.h> |
Jiri Pirko | 03bf0c2 | 2015-01-15 23:49:36 +0100 | [diff] [blame] | 17 | |
Scott Feldman | 3094333 | 2015-05-10 09:47:48 -0700 | [diff] [blame] | 18 | #define SWITCHDEV_F_NO_RECURSE BIT(0) |
| 19 | |
Jiri Pirko | 69f5df4 | 2015-09-24 10:02:40 +0200 | [diff] [blame] | 20 | enum switchdev_trans_ph { |
Scott Feldman | 3094333 | 2015-05-10 09:47:48 -0700 | [diff] [blame] | 21 | SWITCHDEV_TRANS_PREPARE, |
Scott Feldman | 3094333 | 2015-05-10 09:47:48 -0700 | [diff] [blame] | 22 | SWITCHDEV_TRANS_COMMIT, |
| 23 | }; |
| 24 | |
Jiri Pirko | 7ea6eb3 | 2015-09-24 10:02:41 +0200 | [diff] [blame] | 25 | struct switchdev_trans_item { |
| 26 | struct list_head list; |
| 27 | void *data; |
| 28 | void (*destructor)(const void *data); |
| 29 | }; |
| 30 | |
| 31 | struct switchdev_trans { |
| 32 | struct list_head item_list; |
Jiri Pirko | f8db834 | 2015-09-24 10:02:42 +0200 | [diff] [blame] | 33 | enum switchdev_trans_ph ph; |
Jiri Pirko | 7ea6eb3 | 2015-09-24 10:02:41 +0200 | [diff] [blame] | 34 | }; |
| 35 | |
Jiri Pirko | 8bdb427 | 2015-09-24 10:02:43 +0200 | [diff] [blame] | 36 | static inline bool switchdev_trans_ph_prepare(struct switchdev_trans *trans) |
| 37 | { |
| 38 | return trans && trans->ph == SWITCHDEV_TRANS_PREPARE; |
| 39 | } |
| 40 | |
| 41 | static inline bool switchdev_trans_ph_commit(struct switchdev_trans *trans) |
| 42 | { |
| 43 | return trans && trans->ph == SWITCHDEV_TRANS_COMMIT; |
| 44 | } |
| 45 | |
Scott Feldman | 3094333 | 2015-05-10 09:47:48 -0700 | [diff] [blame] | 46 | enum switchdev_attr_id { |
| 47 | SWITCHDEV_ATTR_UNDEFINED, |
Scott Feldman | f8e20a9 | 2015-05-10 09:47:49 -0700 | [diff] [blame] | 48 | SWITCHDEV_ATTR_PORT_PARENT_ID, |
Scott Feldman | 3563606 | 2015-05-10 09:47:51 -0700 | [diff] [blame] | 49 | SWITCHDEV_ATTR_PORT_STP_STATE, |
Scott Feldman | 6004c86 | 2015-05-10 09:47:55 -0700 | [diff] [blame] | 50 | SWITCHDEV_ATTR_PORT_BRIDGE_FLAGS, |
Scott Feldman | 3094333 | 2015-05-10 09:47:48 -0700 | [diff] [blame] | 51 | }; |
| 52 | |
| 53 | struct switchdev_attr { |
| 54 | enum switchdev_attr_id id; |
Scott Feldman | 3094333 | 2015-05-10 09:47:48 -0700 | [diff] [blame] | 55 | u32 flags; |
Scott Feldman | f8e20a9 | 2015-05-10 09:47:49 -0700 | [diff] [blame] | 56 | union { |
| 57 | struct netdev_phys_item_id ppid; /* PORT_PARENT_ID */ |
Scott Feldman | 3563606 | 2015-05-10 09:47:51 -0700 | [diff] [blame] | 58 | u8 stp_state; /* PORT_STP_STATE */ |
Scott Feldman | 6004c86 | 2015-05-10 09:47:55 -0700 | [diff] [blame] | 59 | unsigned long brport_flags; /* PORT_BRIDGE_FLAGS */ |
Scott Feldman | 42275bd | 2015-05-13 11:16:50 -0700 | [diff] [blame] | 60 | } u; |
Scott Feldman | 3094333 | 2015-05-10 09:47:48 -0700 | [diff] [blame] | 61 | }; |
| 62 | |
Scott Feldman | 4170604 | 2015-03-15 21:07:14 -0700 | [diff] [blame] | 63 | struct fib_info; |
| 64 | |
Scott Feldman | 491d0f1 | 2015-05-10 09:47:52 -0700 | [diff] [blame] | 65 | enum switchdev_obj_id { |
| 66 | SWITCHDEV_OBJ_UNDEFINED, |
Scott Feldman | 6fc3016 | 2015-05-10 09:47:53 -0700 | [diff] [blame] | 67 | SWITCHDEV_OBJ_PORT_VLAN, |
Scott Feldman | 58c2cb1 | 2015-05-10 09:48:06 -0700 | [diff] [blame] | 68 | SWITCHDEV_OBJ_IPV4_FIB, |
Samudrala, Sridhar | 45d4122 | 2015-05-13 21:55:43 -0700 | [diff] [blame] | 69 | SWITCHDEV_OBJ_PORT_FDB, |
Scott Feldman | 491d0f1 | 2015-05-10 09:47:52 -0700 | [diff] [blame] | 70 | }; |
| 71 | |
| 72 | struct switchdev_obj { |
| 73 | enum switchdev_obj_id id; |
Samudrala, Sridhar | 45d4122 | 2015-05-13 21:55:43 -0700 | [diff] [blame] | 74 | int (*cb)(struct net_device *dev, struct switchdev_obj *obj); |
Scott Feldman | 6fc3016 | 2015-05-10 09:47:53 -0700 | [diff] [blame] | 75 | union { |
Scott Feldman | 5eb764e | 2015-05-12 23:03:53 -0700 | [diff] [blame] | 76 | struct switchdev_obj_vlan { /* PORT_VLAN */ |
Scott Feldman | 6fc3016 | 2015-05-10 09:47:53 -0700 | [diff] [blame] | 77 | u16 flags; |
Scott Feldman | 3e3a78b | 2015-06-22 00:27:16 -0700 | [diff] [blame] | 78 | u16 vid_begin; |
Scott Feldman | 6fc3016 | 2015-05-10 09:47:53 -0700 | [diff] [blame] | 79 | u16 vid_end; |
| 80 | } vlan; |
Scott Feldman | 58c2cb1 | 2015-05-10 09:48:06 -0700 | [diff] [blame] | 81 | struct switchdev_obj_ipv4_fib { /* IPV4_FIB */ |
| 82 | u32 dst; |
| 83 | int dst_len; |
| 84 | struct fib_info *fi; |
| 85 | u8 tos; |
| 86 | u8 type; |
| 87 | u32 nlflags; |
| 88 | u32 tb_id; |
| 89 | } ipv4_fib; |
Samudrala, Sridhar | 45d4122 | 2015-05-13 21:55:43 -0700 | [diff] [blame] | 90 | struct switchdev_obj_fdb { /* PORT_FDB */ |
David S. Miller | cdf0969 | 2015-08-11 12:00:37 -0700 | [diff] [blame] | 91 | const unsigned char *addr; |
Samudrala, Sridhar | 45d4122 | 2015-05-13 21:55:43 -0700 | [diff] [blame] | 92 | u16 vid; |
Vivien Didelot | ce80e7b | 2015-08-10 09:09:52 -0400 | [diff] [blame] | 93 | u16 ndm_state; |
Samudrala, Sridhar | 45d4122 | 2015-05-13 21:55:43 -0700 | [diff] [blame] | 94 | } fdb; |
Scott Feldman | 42275bd | 2015-05-13 11:16:50 -0700 | [diff] [blame] | 95 | } u; |
Scott Feldman | 491d0f1 | 2015-05-10 09:47:52 -0700 | [diff] [blame] | 96 | }; |
| 97 | |
Jiri Pirko | 7ea6eb3 | 2015-09-24 10:02:41 +0200 | [diff] [blame] | 98 | void switchdev_trans_item_enqueue(struct switchdev_trans *trans, |
| 99 | void *data, void (*destructor)(void const *), |
| 100 | struct switchdev_trans_item *tritem); |
| 101 | void *switchdev_trans_item_dequeue(struct switchdev_trans *trans); |
| 102 | |
Scott Feldman | 4170604 | 2015-03-15 21:07:14 -0700 | [diff] [blame] | 103 | /** |
| 104 | * struct switchdev_ops - switchdev operations |
| 105 | * |
Scott Feldman | 3094333 | 2015-05-10 09:47:48 -0700 | [diff] [blame] | 106 | * @switchdev_port_attr_get: Get a port attribute (see switchdev_attr). |
| 107 | * |
| 108 | * @switchdev_port_attr_set: Set a port attribute (see switchdev_attr). |
| 109 | * |
Scott Feldman | 491d0f1 | 2015-05-10 09:47:52 -0700 | [diff] [blame] | 110 | * @switchdev_port_obj_add: Add an object to port (see switchdev_obj). |
| 111 | * |
| 112 | * @switchdev_port_obj_del: Delete an object from port (see switchdev_obj). |
Samudrala, Sridhar | 45d4122 | 2015-05-13 21:55:43 -0700 | [diff] [blame] | 113 | * |
| 114 | * @switchdev_port_obj_dump: Dump port objects (see switchdev_obj). |
Scott Feldman | 4170604 | 2015-03-15 21:07:14 -0700 | [diff] [blame] | 115 | */ |
Jiri Pirko | 9d47c0a | 2015-05-10 09:47:47 -0700 | [diff] [blame] | 116 | struct switchdev_ops { |
Scott Feldman | 3094333 | 2015-05-10 09:47:48 -0700 | [diff] [blame] | 117 | int (*switchdev_port_attr_get)(struct net_device *dev, |
| 118 | struct switchdev_attr *attr); |
| 119 | int (*switchdev_port_attr_set)(struct net_device *dev, |
Jiri Pirko | 7ea6eb3 | 2015-09-24 10:02:41 +0200 | [diff] [blame] | 120 | struct switchdev_attr *attr, |
| 121 | struct switchdev_trans *trans); |
Scott Feldman | 491d0f1 | 2015-05-10 09:47:52 -0700 | [diff] [blame] | 122 | int (*switchdev_port_obj_add)(struct net_device *dev, |
Jiri Pirko | 7ea6eb3 | 2015-09-24 10:02:41 +0200 | [diff] [blame] | 123 | struct switchdev_obj *obj, |
| 124 | struct switchdev_trans *trans); |
Scott Feldman | 491d0f1 | 2015-05-10 09:47:52 -0700 | [diff] [blame] | 125 | int (*switchdev_port_obj_del)(struct net_device *dev, |
| 126 | struct switchdev_obj *obj); |
Samudrala, Sridhar | 45d4122 | 2015-05-13 21:55:43 -0700 | [diff] [blame] | 127 | int (*switchdev_port_obj_dump)(struct net_device *dev, |
| 128 | struct switchdev_obj *obj); |
Scott Feldman | 4170604 | 2015-03-15 21:07:14 -0700 | [diff] [blame] | 129 | }; |
| 130 | |
Jiri Pirko | ebb9a03 | 2015-05-10 09:47:46 -0700 | [diff] [blame] | 131 | enum switchdev_notifier_type { |
| 132 | SWITCHDEV_FDB_ADD = 1, |
| 133 | SWITCHDEV_FDB_DEL, |
Jiri Pirko | 3aeb661 | 2015-01-15 23:49:37 +0100 | [diff] [blame] | 134 | }; |
| 135 | |
Jiri Pirko | ebb9a03 | 2015-05-10 09:47:46 -0700 | [diff] [blame] | 136 | struct switchdev_notifier_info { |
Jiri Pirko | 03bf0c2 | 2015-01-15 23:49:36 +0100 | [diff] [blame] | 137 | struct net_device *dev; |
| 138 | }; |
| 139 | |
Jiri Pirko | ebb9a03 | 2015-05-10 09:47:46 -0700 | [diff] [blame] | 140 | struct switchdev_notifier_fdb_info { |
| 141 | struct switchdev_notifier_info info; /* must be first */ |
Jiri Pirko | 3aeb661 | 2015-01-15 23:49:37 +0100 | [diff] [blame] | 142 | const unsigned char *addr; |
| 143 | u16 vid; |
| 144 | }; |
| 145 | |
Jiri Pirko | 03bf0c2 | 2015-01-15 23:49:36 +0100 | [diff] [blame] | 146 | static inline struct net_device * |
Jiri Pirko | ebb9a03 | 2015-05-10 09:47:46 -0700 | [diff] [blame] | 147 | switchdev_notifier_info_to_dev(const struct switchdev_notifier_info *info) |
Jiri Pirko | 03bf0c2 | 2015-01-15 23:49:36 +0100 | [diff] [blame] | 148 | { |
| 149 | return info->dev; |
| 150 | } |
Jiri Pirko | 007f790 | 2014-11-28 14:34:17 +0100 | [diff] [blame] | 151 | |
| 152 | #ifdef CONFIG_NET_SWITCHDEV |
| 153 | |
Scott Feldman | 3094333 | 2015-05-10 09:47:48 -0700 | [diff] [blame] | 154 | int switchdev_port_attr_get(struct net_device *dev, |
| 155 | struct switchdev_attr *attr); |
| 156 | int switchdev_port_attr_set(struct net_device *dev, |
| 157 | struct switchdev_attr *attr); |
Scott Feldman | 491d0f1 | 2015-05-10 09:47:52 -0700 | [diff] [blame] | 158 | int switchdev_port_obj_add(struct net_device *dev, struct switchdev_obj *obj); |
| 159 | int switchdev_port_obj_del(struct net_device *dev, struct switchdev_obj *obj); |
Samudrala, Sridhar | 45d4122 | 2015-05-13 21:55:43 -0700 | [diff] [blame] | 160 | int switchdev_port_obj_dump(struct net_device *dev, struct switchdev_obj *obj); |
Jiri Pirko | ebb9a03 | 2015-05-10 09:47:46 -0700 | [diff] [blame] | 161 | int register_switchdev_notifier(struct notifier_block *nb); |
| 162 | int unregister_switchdev_notifier(struct notifier_block *nb); |
| 163 | int call_switchdev_notifiers(unsigned long val, struct net_device *dev, |
| 164 | struct switchdev_notifier_info *info); |
Scott Feldman | 8793d0a | 2015-05-10 09:48:04 -0700 | [diff] [blame] | 165 | int switchdev_port_bridge_getlink(struct sk_buff *skb, u32 pid, u32 seq, |
| 166 | struct net_device *dev, u32 filter_mask, |
| 167 | int nlflags); |
Jiri Pirko | ebb9a03 | 2015-05-10 09:47:46 -0700 | [diff] [blame] | 168 | int switchdev_port_bridge_setlink(struct net_device *dev, |
| 169 | struct nlmsghdr *nlh, u16 flags); |
| 170 | int switchdev_port_bridge_dellink(struct net_device *dev, |
| 171 | struct nlmsghdr *nlh, u16 flags); |
Jiri Pirko | ebb9a03 | 2015-05-10 09:47:46 -0700 | [diff] [blame] | 172 | int switchdev_fib_ipv4_add(u32 dst, int dst_len, struct fib_info *fi, |
| 173 | u8 tos, u8 type, u32 nlflags, u32 tb_id); |
| 174 | int switchdev_fib_ipv4_del(u32 dst, int dst_len, struct fib_info *fi, |
| 175 | u8 tos, u8 type, u32 tb_id); |
| 176 | void switchdev_fib_ipv4_abort(struct fib_info *fi); |
Samudrala, Sridhar | 45d4122 | 2015-05-13 21:55:43 -0700 | [diff] [blame] | 177 | int switchdev_port_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], |
| 178 | struct net_device *dev, const unsigned char *addr, |
| 179 | u16 vid, u16 nlm_flags); |
| 180 | int switchdev_port_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], |
| 181 | struct net_device *dev, const unsigned char *addr, |
| 182 | u16 vid); |
| 183 | int switchdev_port_fdb_dump(struct sk_buff *skb, struct netlink_callback *cb, |
| 184 | struct net_device *dev, |
| 185 | struct net_device *filter_dev, int idx); |
Scott Feldman | 1a3b2ec | 2015-07-18 18:24:50 -0700 | [diff] [blame] | 186 | void switchdev_port_fwd_mark_set(struct net_device *dev, |
| 187 | struct net_device *group_dev, |
| 188 | bool joining); |
Scott Feldman | 5e8d904 | 2015-03-05 21:21:15 -0800 | [diff] [blame] | 189 | |
Jiri Pirko | 007f790 | 2014-11-28 14:34:17 +0100 | [diff] [blame] | 190 | #else |
| 191 | |
Scott Feldman | 3094333 | 2015-05-10 09:47:48 -0700 | [diff] [blame] | 192 | static inline int switchdev_port_attr_get(struct net_device *dev, |
| 193 | struct switchdev_attr *attr) |
| 194 | { |
| 195 | return -EOPNOTSUPP; |
| 196 | } |
| 197 | |
| 198 | static inline int switchdev_port_attr_set(struct net_device *dev, |
| 199 | struct switchdev_attr *attr) |
| 200 | { |
| 201 | return -EOPNOTSUPP; |
| 202 | } |
| 203 | |
Scott Feldman | 491d0f1 | 2015-05-10 09:47:52 -0700 | [diff] [blame] | 204 | static inline int switchdev_port_obj_add(struct net_device *dev, |
| 205 | struct switchdev_obj *obj) |
| 206 | { |
| 207 | return -EOPNOTSUPP; |
| 208 | } |
| 209 | |
| 210 | static inline int switchdev_port_obj_del(struct net_device *dev, |
| 211 | struct switchdev_obj *obj) |
| 212 | { |
| 213 | return -EOPNOTSUPP; |
| 214 | } |
| 215 | |
Samudrala, Sridhar | 45d4122 | 2015-05-13 21:55:43 -0700 | [diff] [blame] | 216 | static inline int switchdev_port_obj_dump(struct net_device *dev, |
| 217 | struct switchdev_obj *obj) |
| 218 | { |
| 219 | return -EOPNOTSUPP; |
| 220 | } |
| 221 | |
Jiri Pirko | ebb9a03 | 2015-05-10 09:47:46 -0700 | [diff] [blame] | 222 | static inline int register_switchdev_notifier(struct notifier_block *nb) |
Jiri Pirko | 03bf0c2 | 2015-01-15 23:49:36 +0100 | [diff] [blame] | 223 | { |
| 224 | return 0; |
| 225 | } |
| 226 | |
Jiri Pirko | ebb9a03 | 2015-05-10 09:47:46 -0700 | [diff] [blame] | 227 | static inline int unregister_switchdev_notifier(struct notifier_block *nb) |
Jiri Pirko | 03bf0c2 | 2015-01-15 23:49:36 +0100 | [diff] [blame] | 228 | { |
| 229 | return 0; |
| 230 | } |
| 231 | |
Jiri Pirko | ebb9a03 | 2015-05-10 09:47:46 -0700 | [diff] [blame] | 232 | static inline int call_switchdev_notifiers(unsigned long val, |
| 233 | struct net_device *dev, |
| 234 | struct switchdev_notifier_info *info) |
Jiri Pirko | 03bf0c2 | 2015-01-15 23:49:36 +0100 | [diff] [blame] | 235 | { |
| 236 | return NOTIFY_DONE; |
| 237 | } |
| 238 | |
Scott Feldman | 8793d0a | 2015-05-10 09:48:04 -0700 | [diff] [blame] | 239 | static inline int switchdev_port_bridge_getlink(struct sk_buff *skb, u32 pid, |
| 240 | u32 seq, struct net_device *dev, |
| 241 | u32 filter_mask, int nlflags) |
| 242 | { |
| 243 | return -EOPNOTSUPP; |
| 244 | } |
| 245 | |
Jiri Pirko | ebb9a03 | 2015-05-10 09:47:46 -0700 | [diff] [blame] | 246 | static inline int switchdev_port_bridge_setlink(struct net_device *dev, |
| 247 | struct nlmsghdr *nlh, |
| 248 | u16 flags) |
Roopa Prabhu | 8a44dbb | 2015-01-29 22:40:13 -0800 | [diff] [blame] | 249 | { |
| 250 | return -EOPNOTSUPP; |
| 251 | } |
| 252 | |
Jiri Pirko | ebb9a03 | 2015-05-10 09:47:46 -0700 | [diff] [blame] | 253 | static inline int switchdev_port_bridge_dellink(struct net_device *dev, |
| 254 | struct nlmsghdr *nlh, |
| 255 | u16 flags) |
Roopa Prabhu | 8a44dbb | 2015-01-29 22:40:13 -0800 | [diff] [blame] | 256 | { |
| 257 | return -EOPNOTSUPP; |
| 258 | } |
| 259 | |
Jiri Pirko | ebb9a03 | 2015-05-10 09:47:46 -0700 | [diff] [blame] | 260 | static inline int switchdev_fib_ipv4_add(u32 dst, int dst_len, |
| 261 | struct fib_info *fi, |
| 262 | u8 tos, u8 type, |
| 263 | u32 nlflags, u32 tb_id) |
Scott Feldman | 5e8d904 | 2015-03-05 21:21:15 -0800 | [diff] [blame] | 264 | { |
| 265 | return 0; |
| 266 | } |
| 267 | |
Jiri Pirko | ebb9a03 | 2015-05-10 09:47:46 -0700 | [diff] [blame] | 268 | static inline int switchdev_fib_ipv4_del(u32 dst, int dst_len, |
| 269 | struct fib_info *fi, |
| 270 | u8 tos, u8 type, u32 tb_id) |
Scott Feldman | 5e8d904 | 2015-03-05 21:21:15 -0800 | [diff] [blame] | 271 | { |
| 272 | return 0; |
| 273 | } |
| 274 | |
Jiri Pirko | ebb9a03 | 2015-05-10 09:47:46 -0700 | [diff] [blame] | 275 | static inline void switchdev_fib_ipv4_abort(struct fib_info *fi) |
Scott Feldman | 8e05fd7 | 2015-03-05 21:21:19 -0800 | [diff] [blame] | 276 | { |
| 277 | } |
| 278 | |
Samudrala, Sridhar | 45d4122 | 2015-05-13 21:55:43 -0700 | [diff] [blame] | 279 | static inline int switchdev_port_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], |
| 280 | struct net_device *dev, |
| 281 | const unsigned char *addr, |
| 282 | u16 vid, u16 nlm_flags) |
| 283 | { |
| 284 | return -EOPNOTSUPP; |
| 285 | } |
| 286 | |
| 287 | static inline int switchdev_port_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], |
| 288 | struct net_device *dev, |
| 289 | const unsigned char *addr, u16 vid) |
| 290 | { |
| 291 | return -EOPNOTSUPP; |
| 292 | } |
| 293 | |
| 294 | static inline int switchdev_port_fdb_dump(struct sk_buff *skb, |
| 295 | struct netlink_callback *cb, |
| 296 | struct net_device *dev, |
| 297 | struct net_device *filter_dev, |
| 298 | int idx) |
| 299 | { |
| 300 | return -EOPNOTSUPP; |
| 301 | } |
| 302 | |
Scott Feldman | 1a3b2ec | 2015-07-18 18:24:50 -0700 | [diff] [blame] | 303 | static inline void switchdev_port_fwd_mark_set(struct net_device *dev, |
| 304 | struct net_device *group_dev, |
| 305 | bool joining) |
| 306 | { |
| 307 | } |
| 308 | |
Jiri Pirko | 007f790 | 2014-11-28 14:34:17 +0100 | [diff] [blame] | 309 | #endif |
| 310 | |
| 311 | #endif /* _LINUX_SWITCHDEV_H_ */ |