diff options
author | 2015-01-27 15:58:06 +0200 | |
---|---|---|
committer | 2015-01-27 17:12:58 -0800 | |
commit | 5a228c03d849c86c10ee69d9951695b0649f82ce (patch) | |
tree | a035887fed6d53fd9330fb483c9ba7fd8d8c8e6d /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | net/mlx4_core: Remove duplicate code line from procedure mlx4_bf_alloc (diff) | |
download | linux-dev-5a228c03d849c86c10ee69d9951695b0649f82ce.tar.xz linux-dev-5a228c03d849c86c10ee69d9951695b0649f82ce.zip |
net/mlx4_en: Use ethtool cmd->autoneg as a hint for ethtool set settings
Use cmd->autoneg as a user hint to decide what to set in ethtool set settings callback.
When cmd->autoneg == AUTONEG_ENABLE set according to ethtool->advertise otherwise,
set according to ethtool->speed.
Usage:
- ethtool -s eth<x> speed 56000 autoneg off
- ethtool -s eth<x> advertise 0x800000 autoneg on
While we're here:
- Move proto_admin masking outcome check to be adjacent to the operation.
- Move en_warn("port reset..") print to "port reset" block.
Fixes: 312df74 ("net/mlx4_en: mlx4_en_set_settings() always fails when autoneg is set")
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions