diff options
author | Alexis Bauvin <abauvin@scaleway.com> | 2018-12-03 10:54:39 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-12-03 14:15:26 -0800 |
commit | 6a6d6681ac1add9655b7ab5dd0b46b54aeb1b44f (patch) | |
tree | f35b58db6fd9aee9d5801b9891869f1335a322cb /net/sched/cls_fw.c | |
parent | da5095d052860baa7fe2932fb1209628dd3e3813 (diff) |
l3mdev: add function to retreive upper master
Existing functions to retreive the l3mdev of a device did not walk the
master chain to find the upper master. This patch adds a function to
find the l3mdev, even indirect through e.g. a bridge:
+----------+
| |
| vrf-blue |
| |
+----+-----+
|
|
+----+-----+
| |
| br-blue |
| |
+----+-----+
|
|
+----+-----+
| |
| eth0 |
| |
+----------+
This will properly resolve the l3mdev of eth0 to vrf-blue.
Signed-off-by: Alexis Bauvin <abauvin@scaleway.com>
Reviewed-by: Amine Kherbouche <akherbouche@scaleway.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Tested-by: Amine Kherbouche <akherbouche@scaleway.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/cls_fw.c')
0 files changed, 0 insertions, 0 deletions