net/mlx5: use Netlink to enable promisc/allmulti mode
authorNélio Laranjeiro <nelio.laranjeiro@6wind.com>
Thu, 5 Apr 2018 15:07:20 +0000 (17:07 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 13 Apr 2018 22:41:44 +0000 (00:41 +0200)
commitdd4bb90bc3cb4588299081b9ae5aad02792038f0
treeb6fbc238dc8b29d3402e8f975de8ee47598622b7
parentccdcba53a3f4d12583c4378e7d8b702ce91e0499
net/mlx5: use Netlink to enable promisc/allmulti mode

VF devices are not able to receive promisc or allmulti traffic unless it
fully requests it though Netlink.  This will cause the request to be
processed by the PF which will handle the request and enable it.

This requires the VF to be trusted by the PF.

Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_nl.c
drivers/net/mlx5/mlx5_rxmode.c