diff options
author | Jack Morgenstein <jackm@dev.mellanox.co.il> | 2013-11-03 12:03:25 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-11-05 01:19:08 +0400 |
commit | 146f3ef4a193f2e8cc826bed01a635861287df63 (patch) | |
tree | e43baf0db805f6f49f0c335fd5e868d7afc3946d /net/openvswitch/vport-gre.c | |
parent | eb456a68c67224efa71e7ef5975cf36c91794695 (diff) | |
download | linux-146f3ef4a193f2e8cc826bed01a635861287df63.tar.xz |
net/mlx4_core: Implement resource quota enforcement
Implements resource quota grant decision when resources are requested,
for the following resources: QPs, CQs, SRQs, MPTs, MTTs, vlans, MACs,
and Counters.
When granting a resource, the quota system increases the allocated-count
for that slave.
When the slave later frees the resource, its allocated-count is reduced.
A spinlock is used to protect the integrity of each resource's free-pool counter.
(One slave may be in the process of being granted a resource while another
slave has crashed, initiating cleanup of that slave's resource quotas).
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch/vport-gre.c')
0 files changed, 0 insertions, 0 deletions