net/mlx5e: Gather all XDP pre-requisite checks in a single function
authorTariq Toukan <tariqt@mellanox.com>
Mon, 12 Mar 2018 16:26:51 +0000 (18:26 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 26 Jul 2018 22:23:52 +0000 (15:23 -0700)
commit0ec13877ce95c00737ff4f71a96cd90533b12b48
treeec707367137356d4b9ab8df356aab29c42903c19
parentcb5189d173097af805ff74c88191aba25fc60a55
net/mlx5e: Gather all XDP pre-requisite checks in a single function

Dedicate a function to all checks done when setting an XDP program.
Take indications from priv instead of netdev features.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c