diff options
author | Alok Tiwari <alok.a.tiwari@oracle.com> | 2025-05-19 17:17:19 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-05-22 06:30:51 +0300 |
commit | edb888d29748cee674006a52e544925dacc7728e (patch) | |
tree | 47fd180f03d6c8d42d2203d4a496d7ebec7a40c8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 220a29d0af240c7ebf6ac1efae8b7a339f7e2026 (diff) | |
download | linux-edb888d29748cee674006a52e544925dacc7728e.tar.xz |
emulex/benet: correct command version selection in be_cmd_get_stats()
Logic here always sets hdr->version to 2 if it is not a BE3 or Lancer chip,
even if it is BE2. Use 'else if' to prevent multiple assignments, setting
version 0 for BE2, version 1 for BE3 and Lancer, and version 2 for others.
Fixes potential incorrect version setting when BE2_chip and
BE3_chip/lancer_chip checks could both be true.
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Link: https://patch.msgid.link/20250519141731.691136-1-alok.a.tiwari@oracle.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions