summaryrefslogtreecommitdiffstats
path: root/include/net/fib_rules.h
diff options
context:
space:
mode:
authorDonald Sharp2018-02-20 14:55:58 +0100
committerDavid S. Miller2018-02-21 23:49:24 +0100
commitcac56209a66ea3b0be67aa2966b2c628b944da1e (patch)
tree1f100b5a7ef31579afc6f9242c159cd6c131d780 /include/net/fib_rules.h
parentibmvnic: Correct goto target for tx irq initialization failure (diff)
downloadkernel-qcow2-linux-cac56209a66ea3b0be67aa2966b2c628b944da1e.tar.gz
kernel-qcow2-linux-cac56209a66ea3b0be67aa2966b2c628b944da1e.tar.xz
kernel-qcow2-linux-cac56209a66ea3b0be67aa2966b2c628b944da1e.zip
net: Allow a rule to track originating protocol
Allow a rule that is being added/deleted/modified or dumped to contain the originating protocol's id. The protocol is handled just like a routes originating protocol is. This is especially useful because there is starting to be a plethora of different user space programs adding rules. Allow the vrf device to specify that the kernel is the originator of the rule created for this device. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/fib_rules.h')
-rw-r--r--include/net/fib_rules.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/fib_rules.h b/include/net/fib_rules.h
index 648caf90ec07..b166ef07e6d4 100644
--- a/include/net/fib_rules.h
+++ b/include/net/fib_rules.h
@@ -26,7 +26,8 @@ struct fib_rule {
u32 table;
u8 action;
u8 l3mdev;
- /* 2 bytes hole, try to use */
+ u8 proto;
+ /* 1 byte hole, try to use */
u32 target;
__be64 tun_id;
struct fib_rule __rcu *ctarget;