net: Allow a rule to track originating protocol
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 20 Feb 2018 13:55:58 +0000 (08:55 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Feb 2018 22:49:24 +0000 (17:49 -0500)
commitcac56209a66ea3b0be67aa2966b2c628b944da1e
tree1f100b5a7ef31579afc6f9242c159cd6c131d780
parentaf9090c2375e6a4a7b3059c9a3d36cb363c35d42
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>
drivers/net/vrf.c
include/net/fib_rules.h
include/uapi/linux/fib_rules.h
net/core/fib_rules.c