]> git.baikalelectronics.ru Git - kernel.git/commit
qed: Fix iWARP buffer size provided for syn packet processing.
authorMichal Kalderon <michal.kalderon@marvell.com>
Mon, 18 Feb 2019 13:24:02 +0000 (15:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Feb 2019 00:51:54 +0000 (16:51 -0800)
commit8bffa0a38d4d332288d266b329d0644fde6d4cc0
tree47fdcab4d3e15f57ba8f038f26b201e1b7b2d6ae
parent90af80e7339ad1ba369a191202e5f6c185c6e57d
qed: Fix iWARP buffer size provided for syn packet processing.

The assumption that the maximum size of a syn packet is 128 bytes
is wrong. Tunneling headers were not accounted for.
Allocate buffers large enough for mtu.

Signed-off-by: Ariel Elior <ariel.elior@marvell.com>
Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_iwarp.c
drivers/net/ethernet/qlogic/qed/qed_iwarp.h