linux/drivers/net/ethernet/qlogic/qed
Michal Kalderon 291d57f67d qed: Fix rdma_info structure allocation
Certain flows need to access the rdma-info structure, for example dcbx
update flows. In some cases there can be a race between the allocation or
deallocation of the structure which was done in roce start / roce stop and
an asynchrounous dcbx event that tries to access the structure.
For this reason, we move the allocation of the rdma_info structure to be
similar to the iscsi/fcoe info structures which are allocated during device
setup.
We add a new field of "active" to the struct to define whether roce has
already been started or not, and this is checked instead of whether the
pointer to the info structure.

Fixes: 51ff17251c ("qed: Add support for RoCE hw init")
Signed-off-by: Michal Kalderon <michal.kalderon@cavium.com>
Signed-off-by: Denis Bolotin <denis.bolotin@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-11-13 08:51:16 -08:00
..
Makefile qed: Add support for tlv request processing. 2018-05-22 23:29:53 -04:00
qed_cxt.c qed: remove duplicated include from qed_cxt.c 2018-09-17 19:52:44 -07:00
qed_cxt.h qed: Add srq core support for RoCE and iWARP 2018-06-04 17:09:54 -04:00
qed_dcbx.c qed: Fix overriding offload_tc by protocols without APP TLV 2018-11-13 08:51:16 -08:00
qed_dcbx.h qed: Do not add VLAN 0 tag to untagged frames in multi-function mode. 2018-09-19 23:12:24 -07:00
qed_debug.c qed*: Utilize FW 8.37.7.0 2018-09-06 07:44:35 -07:00
qed_debug.h
qed_dev_api.h
qed_dev.c qed: Fix rdma_info structure allocation 2018-11-13 08:51:16 -08:00
qed_fcoe.c qed: Fix SPQ entries not returned to pool in error flows 2018-11-08 19:38:19 -08:00
qed_fcoe.h
qed_hsi.h qed: Added supported transceiver modes, speed capability and board config to HSI. 2018-10-16 10:04:28 -07:00
qed_hw.c qed*: Utilize FW 8.37.2.0 2018-06-05 10:48:09 -04:00
qed_hw.h qed*: Utilize FW 8.37.2.0 2018-06-05 10:48:09 -04:00
qed_init_fw_funcs.c qed: remove redundant functions qed_set_gft_event_id_cm_hdr 2018-07-29 08:33:30 -07:00
qed_init_ops.c qed: fix spelling mistake "comparsion" -> "comparison" 2018-08-25 17:41:09 -07:00
qed_init_ops.h
qed_int.c qed: fix spelling mistake "Ireelevant" -> "Irrelevant" 2018-10-15 22:40:27 -07:00
qed_int.h
qed_iscsi.c qed: Fix SPQ entries not returned to pool in error flows 2018-11-08 19:38:19 -08:00
qed_iscsi.h
qed_iwarp.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-10-03 21:00:17 -07:00
qed_iwarp.h qed*: Utilize FW 8.33.1.0 2018-01-02 13:59:16 -05:00
qed_l2.c qed: Fix SPQ entries not returned to pool in error flows 2018-11-08 19:38:19 -08:00
qed_l2.h qed: Correct Multicast API to reflect existence of 256 approximate buckets. 2018-07-21 16:19:04 -07:00
qed_ll2.c qed: Avoid implicit enum conversion in qed_ooo_submit_tx_buffers 2018-10-04 09:57:26 -07:00
qed_ll2.h qed: fix spelling mistake "b_cb_registred" -> "b_cb_registered" 2018-09-28 11:15:11 -07:00
qed_main.c qed: Fix PTT leak in qed_drain() 2018-11-13 08:51:16 -08:00
qed_mcp.c qed: fix link config error handling 2018-11-03 19:27:33 -07:00
qed_mcp.h qed: Add supported link and advertise link to display in ethtool. 2018-10-16 10:04:28 -07:00
qed_mng_tlv.c qed: Add support for processing iscsi tlv request. 2018-05-22 23:29:54 -04:00
qed_ooo.c qed: Remove set but not used variable 'p_archipelago' 2018-09-28 10:25:11 -07:00
qed_ooo.h
qed_ptp.c
qed_rdma.c qed: Fix rdma_info structure allocation 2018-11-13 08:51:16 -08:00
qed_rdma.h qed: Fix rdma_info structure allocation 2018-11-13 08:51:16 -08:00
qed_reg_addr.h qed: Add missing device config for RoCE EDPM in UFP mode. 2018-09-19 23:12:24 -07:00
qed_roce.c qed: Fix SPQ entries not returned to pool in error flows 2018-11-08 19:38:19 -08:00
qed_roce.h
qed_selftest.c qed: Fix PTT entry leak in the selftest error flow. 2018-03-29 14:29:55 -04:00
qed_selftest.h
qed_sp_commands.c qed: Fix SPQ entries not returned to pool in error flows 2018-11-08 19:38:19 -08:00
qed_sp.h qed: Fix SPQ entries not returned to pool in error flows 2018-11-08 19:38:19 -08:00
qed_spq.c qed: Fix potential memory corruption 2018-11-08 19:38:19 -08:00
qed_sriov.c qed: Fix SPQ entries not returned to pool in error flows 2018-11-08 19:38:19 -08:00
qed_sriov.h qed*: Utilize FW 8.33.1.0 2018-01-02 13:59:16 -05:00
qed_vf.c qed: Align local and global PTT to propagate through the APIs. 2018-10-16 10:04:28 -07:00
qed_vf.h qed: Correct Multicast API to reflect existence of 256 approximate buckets. 2018-07-21 16:19:04 -07:00
qed.h qed: Align local and global PTT to propagate through the APIs. 2018-10-16 10:04:28 -07:00