aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorScott Feldman <sfeldma@gmail.com>2015-03-09 16:59:09 -0400
committerDavid S. Miller <davem@davemloft.net>2015-03-09 23:56:52 -0400
commitf8f2147150de303e814c0452075d467734d3544b (patch)
tree96d28922f4b9d1643da9c50d0532652c3dc14167 /include/linux/netdevice.h
parentbf0b211256be342e92d3ee5c5a1fb8d42f3928bb (diff)
switchdev: add netlink flags to IPv4 FIB add op
Pass in the netlink flags (NLM_F_*) into switchdev driver for IPv4 FIB add op to allow driver to 1) optimize hardware updates, 2) handle ip route prepend and append commands correctly. Suggested-by: Jamal Hadi Salim <jhs@mojatatu.com> Suggested-by: Roopa Prabhu <roopa@cumulusnetworks.com> Signed-off-by: Scott Feldman <sfeldma@gmail.com> Reviewed-by: Simon Horman <simon.horman@netronome.com> Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 45413784a3b1..1354ae83efc8 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1035,7 +1035,7 @@ struct fib_info;
1035 * state change. 1035 * state change.
1036 * int (*ndo_sw_parent_fib_ipv4_add)(struct net_device *dev, __be32 dst, 1036 * int (*ndo_sw_parent_fib_ipv4_add)(struct net_device *dev, __be32 dst,
1037 * int dst_len, struct fib_info *fi, 1037 * int dst_len, struct fib_info *fi,
1038 * u8 tos, u8 type, u32 tb_id); 1038 * u8 tos, u8 type, u32 nlflags, u32 tb_id);
1039 * Called to add/modify IPv4 route to switch device. 1039 * Called to add/modify IPv4 route to switch device.
1040 * int (*ndo_sw_parent_fib_ipv4_del)(struct net_device *dev, __be32 dst, 1040 * int (*ndo_sw_parent_fib_ipv4_del)(struct net_device *dev, __be32 dst,
1041 * int dst_len, struct fib_info *fi, 1041 * int dst_len, struct fib_info *fi,
@@ -1207,6 +1207,7 @@ struct net_device_ops {
1207 int dst_len, 1207 int dst_len,
1208 struct fib_info *fi, 1208 struct fib_info *fi,
1209 u8 tos, u8 type, 1209 u8 tos, u8 type,
1210 u32 nlflags,
1210 u32 tb_id); 1211 u32 tb_id);
1211 int (*ndo_switch_fib_ipv4_del)(struct net_device *dev, 1212 int (*ndo_switch_fib_ipv4_del)(struct net_device *dev,
1212 __be32 dst, 1213 __be32 dst,