diff options
author | Gal Pressman <galp@mellanox.com> | 2018-01-10 17:11:11 +0200 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2018-01-12 02:01:49 +0200 |
commit | 75b81ce719b79565eb0b39aa9954b6e11a5e73bf (patch) | |
tree | 90bb66dcc4e5990e7afebc5c11573ccf62e9a381 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 4b7d4363f14a0398eca48c7e96e46120c5eb6a96 (diff) |
net/mlx5e: Don't override netdev features field unless in error flow
Set features function sets dev->features in order to keep track of which
features were successfully changed and which weren't (in case the user
asks for more than one change in a single command).
This breaks the logic in __netdev_update_features which assumes that
dev->features is not changed on success and checks for diffs between
features and dev->features (diffs that might not exist at this point
because of the driver override).
The solution is to keep track of successful/failed feature changes and
assign them to dev->features in case of failure only.
Fixes: 0e405443e803 ("net/mlx5e: Improve set features ndo resiliency")
Signed-off-by: Gal Pressman <galp@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions