net/mlx5e: Report mlx5e_xdp_set errors
authorMaxim Mikityanskiy <maximmi@mellanox.com>
Tue, 19 Mar 2019 16:32:37 +0000 (18:32 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 23 Apr 2019 19:09:21 +0000 (12:09 -0700)
commit74bbaebf3c69eb2f92ac8f703399598a5feed316
tree7ab96d9cbd03e70c82aec4c86ca6f4b28ad0062b
parent83b2fd64bac36c2fdf25eb5d87e2455408ead1fb
net/mlx5e: Report mlx5e_xdp_set errors

If the channels fail to reopen after setting an XDP program, return the
error code instead of 0. A proper fix is still needed, as now any error
while reopening the channels brings the interface down. This patch only
adds error reporting.

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