linux-mainline/drivers/net/ethernet/mellanox/mlx4
Eugenia Emantayev ec25bc04ed net/mlx4_en: Add resilience in low memory systems
This patch fixes the lost of Ethernet port on low memory system,
when driver frees its resources and fails to allocate new resources.
Issue could happen while changing number of channels, rings size or
changing the timestamp configuration.
This fix is necessary because of removing vmap use in the code.
When vmap was in use driver could allocate non-contiguous memory
and make it contiguous with vmap. Now it could fail to allocate
a large chunk of contiguous memory and lose the port.
Current code tries to allocate new resources and then upon success
frees the old resources.

Fixes: 73898db043 ('net/mlx4: Avoid wrong virtual mappings')
Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-07-19 16:44:11 -07:00
..
alloc.c net/mlx4: Avoid wrong virtual mappings 2016-05-05 23:23:05 -04:00
catas.c
cmd.c net/mlx4_en: initialize cmd.context_lock spinlock earlier 2016-06-15 12:16:30 -07:00
cq.c
en_clock.c
en_cq.c net/mlx4: Avoid wrong virtual mappings 2016-05-05 23:23:05 -04:00
en_dcb_nl.c
en_ethtool.c net/mlx4_en: Add resilience in low memory systems 2016-07-19 16:44:11 -07:00
en_main.c
en_netdev.c net/mlx4_en: Add resilience in low memory systems 2016-07-19 16:44:11 -07:00
en_port.c net/mlx4_en: get rid of private net_device_stats 2016-05-25 22:15:50 -07:00
en_port.h
en_resources.c net/mlx4: Avoid wrong virtual mappings 2016-05-05 23:23:05 -04:00
en_rx.c net/mlx4_en: Move filters cleanup to a proper location 2016-07-19 16:44:11 -07:00
en_selftest.c
en_tx.c net/mlx4_en: fix tx_dropped bug 2016-05-25 22:15:49 -07:00
eq.c
fw_qos.c
fw_qos.h
fw.c
fw.h
icm.c
icm.h
intf.c
Kconfig
main.c net/mlx4_en: Avoid unregister_netdev at shutdown flow 2016-06-22 16:38:11 -04:00
Makefile
mcg.c net/mlx4_core: Fix access to uninitialized index 2016-05-16 13:58:01 -04:00
mlx4_en.h net/mlx4_en: Add resilience in low memory systems 2016-07-19 16:44:11 -07:00
mlx4_stats.h
mlx4.h
mr.c
pd.c
port.c
profile.c
qp.c
reset.c
resource_tracker.c
sense.c
srq.c