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>
This commit is contained in:

committed by
David S. Miller

parent
af9090c237
commit
cac56209a6
@@ -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;
|
||||
|
Reference in New Issue
Block a user