]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: Adjust counter grant policy in the resource tracker
authorEran Ben Elisha <eranbe@mellanox.com>
Mon, 15 Jun 2015 14:59:00 +0000 (17:59 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Jun 2015 00:23:01 +0000 (17:23 -0700)
commit7017fac82c7e29cc905e54a9d78bdc23f463a88c
tree7196d88596c366351c48c707aec5b81563769ece
parent276aea80c713842bab8295fe0f6b0346251d9000
net/mlx4_core: Adjust counter grant policy in the resource tracker

Each physical function has a guarantee of two counters per port, one
for a default counter and one for the IB driver.

Each virtual function has a guarantee of one counter per port.
All other counters are free and can be obtained on demand.

This is a preparation step for supporting a get_vf_stats ndo call,
so we can promise a counter for every VF in order to collect their
statistics from the PF context.

Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c