diff options
author | 2018-05-31 11:16:18 +0300 | |
---|---|---|
committer | 2018-06-26 15:26:29 -0700 | |
commit | 0efc8562491b7d36f6bbc4fbc8f3348cb6641e9c (patch) | |
tree | a90ddb33dfba78270d7292955185b3eb2bfc08f1 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net/mlx5e: Don't attempt to dereference the ppriv struct if not being eswitch manager (diff) | |
download | linux-dev-0efc8562491b7d36f6bbc4fbc8f3348cb6641e9c.tar.xz linux-dev-0efc8562491b7d36f6bbc4fbc8f3348cb6641e9c.zip |
net/mlx5: E-Switch, Avoid setup attempt if not being e-switch manager
In smartnic env, the host (PF) driver might not be an e-switch
manager, hence the FW will err on driver attempts to deal with
setting/unsetting the eswitch and as a result the overall setup
of sriov will fail.
Fix that by avoiding the operation if e-switch management is not
allowed for this driver instance. While here, move to use the
correct name for the esw manager capability name.
Fixes: 81848731ff40 ('net/mlx5: E-Switch, Add SR-IOV (FDB) support')
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reported-by: Guy Kushnir <guyk@mellanox.com>
Reviewed-by: Eli Cohen <eli@melloanox.com>
Tested-by: Eli Cohen <eli@melloanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions