mlxsw: spectrum: router: Add support for address validator notifier
authorDavid Ahern <dsahern@gmail.com>
Wed, 18 Oct 2017 16:56:55 +0000 (09:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Oct 2017 12:15:07 +0000 (13:15 +0100)
commit89d5dd2efdb26c78ab83be59390386cc21f8dd71
tree1c00b2de3e994faf9ce3f9b365bb94e08030537f
parentde95e04791a03de5cb681980a3880db6919e3b4a
mlxsw: spectrum: router: Add support for address validator notifier

Add support for inetaddr_validator and inet6addr_validator. The
notifiers provide a means for validating ipv4 and ipv6 addresses
before the addresses are installed and on failure the error
is propagated back to the user.

Signed-off-by: David Ahern <dsahern@gmail.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c