From mboxrd@z Thu Jan 1 00:00:00 1970 From: Donald Sharp Subject: [PATCH 2/2] drivers: Modify vrf device to specify it's rule as RTPROT_KERNEL Date: Sat, 17 Feb 2018 07:31:48 -0500 Message-ID: <20180217123148.26733-3-sharpd@cumulusnetworks.com> To: netdev@vger.kernel.org Return-path: Received: from mail-qt0-f194.google.com ([209.85.216.194]:38129 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751114AbeBQMcE (ORCPT ); Sat, 17 Feb 2018 07:32:04 -0500 Received: by mail-qt0-f194.google.com with SMTP id k13so7025299qtg.5 for ; Sat, 17 Feb 2018 04:32:03 -0800 (PST) Received: from robot.nc.rr.com (cpe-2606-A000-111D-803E-CF1-EE96-732C-4D5.dyn6.twc.com. [2606:a000:111d:803e:cf1:ee96:732c:4d5]) by smtp.googlemail.com with ESMTPSA id m13sm15319849qtf.11.2018.02.17.04.32.01 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 17 Feb 2018 04:32:02 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: Allow the vrf device to specify that the kernel is the originator of the rule created for this device. Signed-off-by: Donald Sharp --- drivers/net/vrf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/vrf.c b/drivers/net/vrf.c index 139c61c8244a..ec6d2d623b60 100644 --- a/drivers/net/vrf.c +++ b/drivers/net/vrf.c @@ -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; -- 2.14.3