]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: Remove access to nexthop group struct
authorDavid Ahern <dsahern@kernel.org>
Tue, 9 Jun 2020 23:27:28 +0000 (17:27 -0600)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Jun 2020 20:20:20 +0000 (13:20 -0700)
commit2a010bc45e6eb55a782a1cdd05c281bac8d4fbf3
tree66ec6fd0db288e9d3e98a48446eff9d893968f95
parent2bf960559bace8f2a88d6ab2c1f5a2fa5a467845
vxlan: Remove access to nexthop group struct

vxlan driver should be using helpers to access nexthop struct
internals. Remove open check if whether nexthop is multipath in
favor of the existing nexthop_is_multipath helper. Add a new
helper, nexthop_has_v4, to cover the need to check has_v4 in
a group.

Fixes: feeface2e67a ("vxlan: ecmp support for mac fdb entries")
Cc: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c
include/net/nexthop.h