rtnetlink: add RTNH_F_EXTERNAL flag for fib offload
authorScott Feldman <sfeldma@gmail.com>
Fri, 6 Mar 2015 05:21:13 +0000 (21:21 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Mar 2015 05:24:57 +0000 (00:24 -0500)
Add new RTNH_F_EXTERNAL flag to mark fib entries offloaded externally, for
example to a switchdev switch device.

Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/rtnetlink.h

index 06f75a407f74c236593ef1411624f3d97e9b4507..c3722b024e73afb6459ce3f1528bdef92cc18971 100644 (file)
@@ -334,6 +334,7 @@ struct rtnexthop {
 #define RTNH_F_DEAD            1       /* Nexthop is dead (used by multipath)  */
 #define RTNH_F_PERVASIVE       2       /* Do recursive gateway lookup  */
 #define RTNH_F_ONLINK          4       /* Gateway is forced on link    */
+#define RTNH_F_EXTERNAL                8       /* Route installed externally   */
 
 /* Macros to handle hexthops */