Files
linux/drivers/net
Eran Ben Elisha 9d9cd2bcfc net/mlx4_core: Fix wrong calculation of free counters
commit 0bb9fc4f54 upstream.

The field res_free indicates the total number of counters which are
available for allocation (reserved and unreserved). Fixed a bug where
the reserved counters were subtracted from res_free before any
allocation was performed.

Before this fix, free counters which were not reserved could not be
allocated.

Fixes: 9de92c60be ("net/mlx4_core: Adjust counter grant policy in the resource tracker")
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Reviewed-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-12-01 09:42:58 +01:00
..
2018-11-04 14:52:41 +01:00
2017-08-24 09:57:28 +02:00
2018-11-23 08:19:26 +01:00
2018-03-19 08:42:54 +01:00