common/mlx5: support ROCE disable through Netlink
authorMatan Azrad <matan@mellanox.com>
Wed, 29 Jan 2020 12:38:50 +0000 (12:38 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 5 Feb 2020 08:51:20 +0000 (09:51 +0100)
commitfa69eaef5f49499b89aeac09606843ad7256149c
tree4fba17e1cdff4c3be871edae603cc91e60c421f0
parent654810b56828eb5138a86db395e5cafcef3d70dd
common/mlx5: support ROCE disable through Netlink

Add new 4 Netlink commands to support enable/disable ROCE:
        1. mlx5_nl_devlink_family_id_get to get the Devlink family ID of
           Netlink general command.
        2. mlx5_nl_enable_roce_get to get the ROCE current status.
        3. mlx5_nl_driver_reload - to reload the device kernel driver.
        4. mlx5_nl_enable_roce_set - to set the ROCE status.

When the user changes the ROCE status, the IB device may disappear and
appear again, so DPDK driver should wait for it and to restart itself.

Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/common/mlx5/Makefile
drivers/common/mlx5/meson.build
drivers/common/mlx5/mlx5_nl.c
drivers/common/mlx5/mlx5_nl.h
drivers/common/mlx5/rte_common_mlx5_version.map