summaryrefslogtreecommitdiff
path: root/lib/bch.c
diff options
context:
space:
mode:
authorYishai Hadas <yishaih@mellanox.com>2015-05-05 14:07:12 (GMT)
committerDavid S. Miller <davem@davemloft.net>2015-05-05 23:39:12 (GMT)
commit2d3c739739e64619f4846746a06ff0a6adf8a155 (patch)
tree525962c2f147a22285a41dcc9edaeb6fe63398e4 /lib/bch.c
parentcae0633872fc8b0c34930dd2862856563bce58ec (diff)
downloadlinux-2d3c739739e64619f4846746a06ff0a6adf8a155.tar.xz
net/mlx4_core: Work properly with EQ numbers > 256 in SRIOV
The Firmware uses dynamic EQs allocation based on number of VFs and max EQs that can be allocated. As a result, VF can have EQ numbers that are larger than 256. According to the firmware spec, the max value is limited to be 1024 (10 bits), adapt the relevant code accordingly. This bug was impossible to hit prior to commit 7ae0e400cd93 ("net/mlx4_core: Flexible (asymmetric) allocation of EQs and MSI-X vectors for PF/VFs") which actually enables large number of EQs for VFs. Signed-off-by: Yishai Hadas <yishaih@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/bch.c')
0 files changed, 0 insertions, 0 deletions