summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/hisilicon/hip04_eth.c
diff options
context:
space:
mode:
authorEran Ben Elisha <eranbe@mellanox.com>2019-10-27 17:39:15 +0300
committerDavid S. Miller <davem@davemloft.net>2019-10-30 02:29:43 +0300
commite19868efea0c103f23b4b7e986fd0a703822111f (patch)
tree1c1371f4fc74db376ee9f5ed8f92c2b503f87bdf /drivers/net/ethernet/hisilicon/hip04_eth.c
parentc1b5ddc112e9b3985ea26d21da6ff3460f1c258b (diff)
downloadlinux-e19868efea0c103f23b4b7e986fd0a703822111f.tar.xz
net/mlx4_core: Dynamically set guaranteed amount of counters per VF
Prior to this patch, the amount of counters guaranteed per VF in the resource tracker was MLX4_VF_COUNTERS_PER_PORT * MLX4_MAX_PORTS. It was set regardless if the VF was single or dual port. This caused several VFs to have no guaranteed counters although the system could satisfy their request. The fix is to dynamically guarantee counters, based on each VF specification. Fixes: 9de92c60beaa ("net/mlx4_core: Adjust counter grant policy in the resource tracker") Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com> Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Signed-off-by: Tariq Toukan <tariqt@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hip04_eth.c')
0 files changed, 0 insertions, 0 deletions