linux_dsm_epyc7002/drivers/net/ethernet/qlogic
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
..
netxen ethernet: use net core MTU range checking in more drivers 2016-10-20 14:51:08 -04:00
qed qed: avoid possible stack overflow in qed_ll2_acquire_connection 2017-01-20 11:44:42 -05:00
qede Updates for 4.10 kernel merge window 2016-12-15 12:03:32 -08:00
qlcnic ethernet/qlogic: use core min/max MTU checking 2016-10-18 11:34:19 -04:00
qlge ethernet: use net core MTU range checking in more drivers 2016-10-20 14:51:08 -04:00
Kconfig qed: Add support for hardware offloaded iSCSI. 2016-12-02 12:44:37 -05:00
Makefile qede: Add basic Network driver 2015-10-27 19:34:47 -07:00
qla3xxx.c net: deprecate eth_change_mtu, remove usage 2016-10-13 09:36:57 -04:00
qla3xxx.h