mlxsw: spectrum: Add extack messages to VXLAN FDB rejection
authorPetr Machata <petrm@mellanox.com>
Wed, 16 Jan 2019 23:06:58 +0000 (23:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jan 2019 23:18:47 +0000 (15:18 -0800)
commita40313d956d3d3124f44b63ba752383c948c8587
tree76164fd55c22ef4b11092f1f85386a8b9b05d38f
parent6685987c29582afc79b7fa3998dfbf36b4295791
mlxsw: spectrum: Add extack messages to VXLAN FDB rejection

Annotate the rejections in mlxsw_sp_switchdev_vxlan_work_prepare() with
textual reasons.

Because this code ends up being invoked for FDB replay as well, drop the
default message from there, so that the more accurate error message is
not overwritten.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c