diff options
author | David Ahern <dsa@cumulusnetworks.com> | 2016-09-10 21:09:52 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-11 08:12:51 +0200 |
commit | 9ee0034b8f49aaaa7e7c2da8db1038915db99c19 (patch) | |
tree | 897ea4c59abca970385ab76daff0add716b32992 /net/ipv6/fib6_rules.c | |
parent | ATM-ZeitNet: Fix indentation for one DPRINTK() call in start_rx() (diff) | |
download | linux-9ee0034b8f49aaaa7e7c2da8db1038915db99c19.tar.xz linux-9ee0034b8f49aaaa7e7c2da8db1038915db99c19.zip |
net: flow: Add l3mdev flow update
Add l3mdev hook to set FLOWI_FLAG_SKIP_NH_OIF flag and update oif/iif
in flow struct if its oif or iif points to a device enslaved to an L3
Master device. Only 1 needs to be converted to match the l3mdev FIB
rule. This moves the flow adjustment for l3mdev to a single point
catching all lookups. It is redundant for existing hooks (those are
removed in later patches) but is needed for missed lookups such as
PMTU updates.
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/fib6_rules.c')
-rw-r--r-- | net/ipv6/fib6_rules.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv6/fib6_rules.c b/net/ipv6/fib6_rules.c index 5857c1fc8b67..eea23b57c6a5 100644 --- a/net/ipv6/fib6_rules.c +++ b/net/ipv6/fib6_rules.c @@ -38,6 +38,9 @@ struct dst_entry *fib6_rule_lookup(struct net *net, struct flowi6 *fl6, .flags = FIB_LOOKUP_NOREF, }; + /* update flow if oif or iif point to device enslaved to l3mdev */ + l3mdev_update_flow(net, flowi6_to_flowi(fl6)); + fib_rules_lookup(net->ipv6.fib6_rules_ops, flowi6_to_flowi(fl6), flags, &arg); |