net/mlx4_core: Use sink counter for the VF default as fallback
authorOr Gerlitz <ogerlitz@mellanox.com>
Wed, 22 Jul 2015 13:53:46 +0000 (16:53 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 26 Jul 2015 23:29:25 +0000 (16:29 -0700)
commit178d23e3cd4811ebe702d60ac31e8bee389a5847
tree084e59e1c2f18649551b3c742f48aafc5930b328
parent963ad94853000ab100f5ff19eea80095660d41b4
net/mlx4_core: Use sink counter for the VF default as fallback

Some old PF drivers don't let VFs allocate counters, in that case, use
the sink counter so the VF can load and operate properly.

Fixes: 6de5f7f6a1fa ('net/mlx4_core: Allocate default counter per port')
Reported-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/main.c