net/mlx5: remove netlink dependency in shared code