linux_dsm_epyc7002/drivers/net/ethernet/qlogic/qed
Arnd Bergmann 0629a330cf qed: avoid possible stack overflow in qed_ll2_acquire_connection
struct qed_ll2_info is rather large, so putting it on the stack
can cause an overflow, as this warning tries to tell us:

drivers/net/ethernet/qlogic/qed/qed_ll2.c: In function 'qed_ll2_start':
drivers/net/ethernet/qlogic/qed/qed_ll2.c:2159:1: error: the frame size of 1056 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]

qed_ll2_start_ooo() already uses a dynamic allocation for the structure
to work around that problem, and we could do the same in qed_ll2_start()
as well as qed_roce_ll2_start(), but since the structure is only
used to pass a couple of initialization values here, it seems nicer
to replace it with a different structure.

Lacking any idea for better naming, I'm adding 'struct qed_ll2_conn',
which now contains all the initialization data, and this now simply
gets copied into struct qed_ll2_info rather than assigning all members
one by one.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-01-20 11:44:42 -05:00
..
Makefile qed: Add iSCSI out of order packet handling. 2016-12-02 12:44:38 -05:00
qed_cxt.c qed: Additional work toward cleaning C=1 2016-10-14 11:07:22 -04:00
qed_cxt.h qed: Add support for QP verbs 2016-10-03 23:22:47 -04:00
qed_dcbx.c qed: Zero-out the buffer paased to dcbx_query() API 2016-10-22 17:08:07 -04:00
qed_dcbx.h qed: Add support for query/config dcbx. 2016-06-08 11:10:59 -07:00
qed_debug.c qed: Additional work toward cleaning C=1 2016-10-14 11:07:22 -04:00
qed_debug.h qed: Add support for debug data collection 2016-09-07 17:46:59 -07:00
qed_dev_api.h qed: Add Light L2 support 2016-10-03 23:22:46 -04:00
qed_dev.c qed: Add iSCSI out of order packet handling. 2016-12-02 12:44:38 -05:00
qed_hsi.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2016-11-15 10:54:36 -05:00
qed_hw.c qed: Remove OOM messages 2016-09-06 13:54:32 -07:00
qed_hw.h qed: Initialize hardware for new protocols 2016-06-03 20:08:40 -04:00
qed_init_fw_funcs.c qed: Utilize FW 8.10.3.0 2016-06-02 21:30:03 -07:00
qed_init_ops.c qed: Remove OOM messages 2016-09-06 13:54:32 -07:00
qed_init_ops.h
qed_int.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2016-12-14 11:12:25 -08:00
qed_int.h qed: Add support for coalescing config read/update. 2016-06-23 15:56:46 -04:00
qed_iscsi.c qed: fix old-style function definition 2016-12-17 21:37:41 -05:00
qed_iscsi.h qed: Add support for hardware offloaded iSCSI. 2016-12-02 12:44:37 -05:00
qed_l2.c qed*: Handle-based L2-queues. 2016-11-30 14:32:04 -05:00
qed_l2.h qed*: Handle-based L2-queues. 2016-11-30 14:32:04 -05:00
qed_ll2.c qed: avoid possible stack overflow in qed_ll2_acquire_connection 2017-01-20 11:44:42 -05:00
qed_ll2.h qed: avoid possible stack overflow in qed_ll2_acquire_connection 2017-01-20 11:44:42 -05:00
qed_main.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2016-11-15 10:54:36 -05:00
qed_mcp.c qed: Prevent stack corruption on MFW interaction 2016-11-09 13:27:25 -05:00
qed_mcp.h qed: Learn resources from management firmware 2016-10-31 15:52:36 -04:00
qed_ooo.c qed: Add iSCSI out of order packet handling. 2016-12-02 12:44:38 -05:00
qed_ooo.h qed: Add iSCSI out of order packet handling. 2016-12-02 12:44:38 -05:00
qed_reg_addr.h qed: Add support for hardware offloaded iSCSI. 2016-12-02 12:44:37 -05:00
qed_roce.c qed: avoid possible stack overflow in qed_ll2_acquire_connection 2017-01-20 11:44:42 -05:00
qed_roce.h qed: Additional work toward cleaning C=1 2016-10-14 11:07:22 -04:00
qed_selftest.c qed: Add nvram selftest 2016-10-31 15:52:35 -04:00
qed_selftest.h qed: Add nvram selftest 2016-10-31 15:52:35 -04:00
qed_sp_commands.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2016-12-14 11:12:25 -08:00
qed_sp.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2016-10-30 12:42:58 -04:00
qed_spq.c qed: Add iSCSI out of order packet handling. 2016-12-02 12:44:38 -05:00
qed_sriov.c qed*: Handle-based L2-queues. 2016-11-30 14:32:04 -05:00
qed_sriov.h qed*: Handle-based L2-queues. 2016-11-30 14:32:04 -05:00
qed_vf.c qed*: Handle-based L2-queues. 2016-11-30 14:32:04 -05:00
qed_vf.h qed*: Handle-based L2-queues. 2016-11-30 14:32:04 -05:00
qed.h qed: Add iSCSI out of order packet handling. 2016-12-02 12:44:38 -05:00