RDMA/mlx5: Enable sniffer when device is in switchdev mode
authorMaor Gottlieb <maorg@mellanox.com>
Mon, 3 Aug 2020 06:02:14 +0000 (09:02 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 18 Aug 2020 18:03:32 +0000 (15:03 -0300)
commite6ac9f60066414b30c3086219fd66c2d5b087781
treed17baf8a317a180e8eab6c358fba50d7258a8f9f
parentc531024bb166f5bb6a5bd951e07a33294b895884
RDMA/mlx5: Enable sniffer when device is in switchdev mode

In order to allow sniffer when the RDMA device is in switchdev mode, we
don't need to set the source port when creating the sniffer rule.

Link: https://lore.kernel.org/r/20200803060214.15328-1-leon@kernel.org
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/fs.c