diff options
author | Saeed Mahameed <[email protected]> | 2019-07-11 19:39:57 +0000 |
---|---|---|
committer | David S. Miller <[email protected]> | 2019-07-11 15:04:38 -0700 |
commit | 2f1f5a7731df239a0d1965bc6b75ac37dcb803f3 (patch) | |
tree | 3d6ecb2aa328cee0eda02cbaf9ce41ccf2b95937 /tools/perf/util/scripting-engines/trace-event-python.c | |
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 <[email protected]>
Reviewed-by: Mark Bloch <[email protected]>
Reviewed-by: Tariq Toukan <[email protected]>
CC: Nathan Chancellor <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions