diff options
author | Or Gerlitz <ogerlitz@mellanox.com> | 2017-06-04 19:36:17 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2017-06-15 23:27:46 +0300 |
commit | 9d1cef196b2687e9338c4268a3aa0ca521686bc9 (patch) | |
tree | d23200f1fd611f390f4201c9363215d9662bc02a /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 5f195c2c5cba60241004146cd12d71451d6b0fc4 (diff) | |
download | linux-9d1cef196b2687e9338c4268a3aa0ca521686bc9.tar.xz |
net/mlx5: Properly check applicability of devlink eswitch commands
Currently we don't check that the link type is Eth and hence crash
on IB ports when attempting to deref esw->xxx, fix that.
To avoid repeating this check over and over, put the existing
checks and the one on link type in a single helper.
Fixes: 7768d1971de6 ('net/mlx5: E-Switch, Add control for encapsulation')
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reported-by: Mohamad Badarnah <mohamadb@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions