summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ethtool.c
diff options
context:
space:
mode:
authorOr Gerlitz2017-04-18 16:48:46 +0200
committerSaeed Mahameed2017-06-22 13:30:13 +0200
commit3ffaabecd1a1a014a484f293c311b8ecb0545541 (patch)
tree676b3e56b4ceafd42937f3fd26717f8d1a6ef66f /drivers/net/ethernet/mellanox/mlx5/core/ipoib/ethtool.c
parentnet/mlx5: Add mlxfw callbacks (diff)
downloadkernel-qcow2-linux-3ffaabecd1a1a014a484f293c311b8ecb0545541.tar.gz
kernel-qcow2-linux-3ffaabecd1a1a014a484f293c311b8ecb0545541.tar.xz
kernel-qcow2-linux-3ffaabecd1a1a014a484f293c311b8ecb0545541.zip
net/mlx5e: Support the flash device ethtool callback
This callback further invokes the mlxfw module to flash the new firmware file to the device. As the firmware flash process takes about 20 seconds and ethtool takes the rtnl lock during the flash_device callback, we release the rtnl lock at the beginning of the flash process and take it again before leaving the callback. This way, rtnl is not held during the process. To make sure the device does not get deleted while being flashed, we take a reference to it before releasing rtnl lock. Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Yotam Gigi <yotamg@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/ipoib/ethtool.c')
0 files changed, 0 insertions, 0 deletions