diff options
author | Brett Creeley <[email protected]> | 2020-01-22 07:21:30 -0800 |
---|---|---|
committer | Jeff Kirsher <[email protected]> | 2020-02-15 16:42:36 -0800 |
commit | 39066dc549cf8a688f6e105a4e9f2a8abefbcebe (patch) | |
tree | 041181663b0255a2ea300faf7416490dfda688ff /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 13a6233b033f8816a3643f1f47d44e4cfd6c5384 (diff) |
ice: Fix implicit queue mapping mode in ice_vsi_get_qs
Currently in ice_vsi_get_qs() we set the mapping_mode for Tx and Rx to
vsi->[tx|rx]_mapping_mode, but the problem is vsi->[tx|rx]_mapping_mode
have not been set yet. This was working because ICE_VSI_MAP_CONTIG is
defined to 0. Fix this by being explicit with our mapping mode by
initializing the Tx and Rx structure's mapping_mode to
ICE_VSI_MAP_CONTIG and then setting the vsi->[tx|rx]_mapping_mode to the
[tx|rx]_qs_cfg.mapping_mode values.
Also, only assign the vsi->[tx|rx]_mapping_mode when the queues are
successfully mapped to the VSI. With this change there was no longer a
need to initialize the ret variable to 0 so remove that.
Signed-off-by: Brett Creeley <[email protected]>
Tested-by: Andrew Bowers <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions