linux/drivers/net/ethernet/mellanox/mlx4
Jack Morgenstein 2d5c57d7fb net/mlx4_core: Limit count field to 24 bits in qp_alloc_res
Some VF drivers use the upper byte of "param1" (the qp count field)
in mlx4_qp_reserve_range() to pass flags which are used to optimize
the range allocation.

Under the current code, if any of these flags are set, the 32-bit
count field yields a count greater than 2^24, which is out of range,
and this VF fails.

As these flags represent a "best-effort" allocation hint anyway, they may
safely be ignored. Therefore, the PF driver may simply mask out the bits.

Fixes: c82e9aa0a8 "mlx4_core: resource tracking for HCA resources used by guests"
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-11-26 12:04:49 -05:00
..
alloc.c IB/mlx4: Implement IB_QP_CREATE_USE_GFP_NOIO 2014-06-02 14:58:11 -07:00
catas.c
cmd.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2014-10-08 21:40:54 -04:00
cq.c net/mlx4_en: Don't use irq_affinity_notifier to track changes in IRQ affinity map 2014-07-02 18:29:23 -07:00
en_clock.c ptp: drivers: set the number of programmable pins. 2014-03-21 14:21:14 -04:00
en_cq.c net/mlx4_en: cq->irq_desc wasn't set in legacy EQ's 2014-07-16 23:28:32 -07:00
en_dcb_nl.c net/mlx4_en: Fix UP limit in ieee_ets->prio_tc 2014-03-02 20:04:00 -05:00
en_ethtool.c net/mlx4_en: Use the new tx_copybreak to set inline threshold 2014-10-06 01:04:16 -04:00
en_main.c mellanox: Change en_print to return void 2014-09-26 15:17:16 -04:00
en_netdev.c net/mlx4_en: Add VXLAN ndo calls to the PF net device ops too 2014-11-19 15:11:09 -05:00
en_port.c mlx4: add a new xmit_more counter 2014-10-04 20:04:14 -04:00
en_port.h
en_resources.c net/mlx4_en: Add netdev support for TCP/IP offloads of vxlan tunneling 2013-12-31 14:31:43 -05:00
en_rx.c mlx4: fix race accessing page->_count 2014-10-10 15:37:28 -04:00
en_selftest.c net/mlx4_en: Run loopback test only when port is up 2014-07-08 19:58:44 -07:00
en_tx.c net/mlx4_en: Don't attempt to TX offload the outer UDP checksum for VXLAN 2014-10-30 19:48:58 -04:00
eq.c net/mlx4_core: Call synchronize_irq() before freeing EQ buffer 2014-10-26 22:46:04 -04:00
fw.c net/mlx4_core: Protect QUERY_PORT wrapper from untrusted guests 2014-09-30 16:27:49 -04:00
fw.h net/mlx4_core: Enable CQE/EQE stride support 2014-09-19 17:30:10 -04:00
icm.c mlx4_core: Fix GFP flags parameters to be gfp_t 2014-06-04 10:19:13 -07:00
icm.h mlx4_core: Fix GFP flags parameters to be gfp_t 2014-06-04 10:19:13 -07:00
intf.c
Kconfig net/mlx4: Set proper build dependancy with vxlan 2014-04-01 16:25:51 -04:00
main.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2014-10-02 11:25:43 -07:00
Makefile net/mlx4_en: Add HW timestamping (TS) support 2013-04-24 16:30:14 -04:00
mcg.c mlx4: Avoid leaking steering rules on flow creation error flow 2014-10-30 19:48:58 -04:00
mlx4_en.h net/mlx4_en: Use the new tx_copybreak to set inline threshold 2014-10-06 01:04:16 -04:00
mlx4.h net/mlx4_core: Enable CQE/EQE stride support 2014-09-19 17:30:10 -04:00
mr.c mlx4: Correct error flows in rereg_mr 2014-09-22 08:47:47 -07:00
pd.c drivers/net: delete non-required instances of include <linux/init.h> 2014-01-16 11:53:26 -08:00
port.c mlx4: Fix mlx4 reg/unreg mac to work properly with 0-mac addresses 2014-09-22 09:46:53 -07:00
profile.c mellanox: Logging message cleanups 2014-05-08 23:42:02 -04:00
qp.c net/mlx4: Set vlan stripping policy by the right command 2014-09-10 15:21:34 -07:00
reset.c mellanox: Logging message cleanups 2014-05-08 23:42:02 -04:00
resource_tracker.c net/mlx4_core: Limit count field to 24 bits in qp_alloc_res 2014-11-26 12:04:49 -05:00
sense.c Merge branch 'for-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq 2012-10-02 09:54:49 -07:00
srq.c IB/mlx4: Implement IB_QP_CREATE_USE_GFP_NOIO 2014-06-02 14:58:11 -07:00