mlxsw: spectrum_router: Add extack message for RIF and VRF overflow
authorDavid Ahern <dsahern@gmail.com>
Wed, 18 Oct 2017 16:56:56 +0000 (09:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Oct 2017 12:15:07 +0000 (13:15 +0100)
commitf8fa9b4e6da77311791c7150a6ecc9368396df3b
tree7c80b14c401727fd76a0cd1b4739c1ddb6d30756
parent89d5dd2efdb26c78ab83be59390386cc21f8dd71
mlxsw: spectrum_router: Add extack message for RIF and VRF overflow

Add extack argument down to mlxsw_sp_rif_create and mlxsw_sp_vr_create
to set an error message on RIF or VR overflow. Now on overflow of
either resource the user gets an informative message as opposed to
failing with EBUSY.

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_router.c