Skip to contentSkip to conversation

drivers: Modify vrf device to specify it's rule as RTPROT_KERNEL

PATCH Superseded Donald Sharp 1 participant 1 message Feb 17, 2018

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 drivers: Modify vrf device to specify it's rule as RTPROT_KERNEL

Allow the vrf device to specify that the kernel is the originator of the rule created for this device.

---
 drivers/net/vrf.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/vrf.c +1 -0
index 139c61c8244a..ec6d2d623b60 100644
@@ -1175,6 +1175,7 @@ static int vrf_fib_rule(const struct net_device *dev, __u8 family, bool add_it)
 	memset(frh, 0, sizeof(*frh));
 	frh->family = family;
 	frh->action = FR_ACT_TO_TBL;
+	frh->proto = RTPROT_KERNEL;
 
 	if (nla_put_u8(skb, FRA_L3MDEV, 1))
 		goto nla_put_failure;
Signature · 1 line
2.14.3