diff options
author | Saeed Mahameed <saeedm@mellanox.com> | 2019-07-11 19:39:57 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-11 15:04:38 -0700 |
commit | 2f1f5a7731df239a0d1965bc6b75ac37dcb803f3 (patch) | |
tree | 3d6ecb2aa328cee0eda02cbaf9ce41ccf2b95937 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | c93dfec10f1d693a897bfd0d6e3a58a5ea7edc91 (diff) |
net/mlx5e: Fix unused variable warning when CONFIG_MLX5_ESWITCH is off
In mlx5e_setup_tc "priv" variable is not being used if
CONFIG_MLX5_ESWITCH is off, one way to fix this is to actually use it.
mlx5e_setup_tc_mqprio also needs the "priv" variable and it extracts it
on its own. We can simply pass priv to mlx5e_setup_tc_mqprio instead of
netdev and avoid extracting the priv var, which will also resolve the
compiler warning.
Fixes: 4e95bc268b91 ("net: flow_offload: add flow_block_cb_setup_simple()")
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
CC: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions