|
@@ -51,6 +51,11 @@ int ndo_dflt_netdev_switch_port_bridge_dellink(struct net_device *dev,
|
|
struct nlmsghdr *nlh, u16 flags);
|
|
struct nlmsghdr *nlh, u16 flags);
|
|
int ndo_dflt_netdev_switch_port_bridge_setlink(struct net_device *dev,
|
|
int ndo_dflt_netdev_switch_port_bridge_setlink(struct net_device *dev,
|
|
struct nlmsghdr *nlh, u16 flags);
|
|
struct nlmsghdr *nlh, u16 flags);
|
|
|
|
+int netdev_switch_fib_ipv4_add(u32 dst, int dst_len, struct fib_info *fi,
|
|
|
|
+ u8 tos, u8 type, u32 tb_id);
|
|
|
|
+int netdev_switch_fib_ipv4_del(u32 dst, int dst_len, struct fib_info *fi,
|
|
|
|
+ u8 tos, u8 type, u32 tb_id);
|
|
|
|
+
|
|
#else
|
|
#else
|
|
|
|
|
|
static inline int netdev_switch_parent_id_get(struct net_device *dev,
|
|
static inline int netdev_switch_parent_id_get(struct net_device *dev,
|
|
@@ -109,6 +114,20 @@ static inline int ndo_dflt_netdev_switch_port_bridge_setlink(struct net_device *
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static inline int netdev_switch_fib_ipv4_add(u32 dst, int dst_len,
|
|
|
|
+ struct fib_info *fi,
|
|
|
|
+ u8 tos, u8 type, u32 tb_id)
|
|
|
|
+{
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+static inline int netdev_switch_fib_ipv4_del(u32 dst, int dst_len,
|
|
|
|
+ struct fib_info *fi,
|
|
|
|
+ u8 tos, u8 type, u32 tb_id)
|
|
|
|
+{
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+
|
|
#endif
|
|
#endif
|
|
|
|
|
|
#endif /* _LINUX_SWITCHDEV_H_ */
|
|
#endif /* _LINUX_SWITCHDEV_H_ */
|