]> 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)
commit41f9d59282e1fb6736d72f94a5a94e4b0bbc365d
tree084e59e1c2f18649551b3c742f48aafc5930b328
parentc5422c363f7c4464a818973c5ea31c882a390dc9
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: 4e91e9e592ee ('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