summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2018-07-09 09:24:49 +0300
committerDavid S. Miller <davem@davemloft.net>2018-07-10 02:27:14 +0300
commit78f058a4aa0f2280dc4d45d2c4a95728398ef857 (patch)
treefed185ef2a7033527110fc19708dd8781ccc0ed6 /tools/perf/scripts/python/export-to-postgresql.py
parent07f4fde53d12eb8d921b465bb298e964e0bdc38c (diff)
downloadlinux-78f058a4aa0f2280dc4d45d2c4a95728398ef857.tar.xz
bnxt_en: Always set output parameters in bnxt_get_max_rings().
The current code returns -ENOMEM and does not bother to set the output parameters to 0 when no rings are available. Some callers, such as bnxt_get_channels() will display garbage ring numbers when that happens. Fix it by always setting the output parameters. Fixes: 6e6c5a57fbe1 ("bnxt_en: Modify bnxt_get_max_rings() to support shared or non shared rings.") Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions