]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8f56d358df04ae243843932b1700d46945148b82
tree084e59e1c2f18649551b3c742f48aafc5930b328
parent60336a7e926c9754c3973908ac38a347284f3f82
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: ab20ba56816d ('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