Edward Cree ae074e2b2f sfc: check for zero length in EF10 RX prefix
When EF10 RXDP firmware is operating in cut-through mode, packet length
 is not known at the time the RX prefix is generated, so it is left as
 zero and RX event merging is inhibited to ensure that the length is
 available in the RX event.  However, it has been found that in certain
 circumstances the RX events for these packets still get merged,
 meaning the driver cannot read the length from the RX event, and tries
 to use the length from the prefix.
The resulting zero-length SKBs cause crashes in GRO since commit
 1d11fa696733 ("net-gro: remove GRO_DROP"), so add a check to the driver
 to detect these zero-length RX events and discard the packet.

Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-09-01 08:14:57 +01:00
..
2023-08-28 17:58:39 -07:00
2023-08-28 09:31:32 -07:00
2023-08-29 09:26:04 -07:00
2023-08-29 11:33:01 -07:00
2023-06-29 08:09:31 -06:00
2023-08-28 14:12:05 +02:00
2023-08-07 00:01:41 +05:30
2023-08-28 16:35:01 -07:00
2023-08-28 17:34:54 -07:00
2023-08-29 10:21:56 -07:00
2023-07-13 19:13:24 -07:00
2023-08-29 10:02:35 -07:00
2023-08-28 16:35:01 -07:00
2023-08-29 11:33:01 -07:00
2023-06-29 15:28:33 -07:00
2023-08-28 11:33:03 +02:00
2023-08-24 19:10:53 -07:00
2023-08-29 09:47:33 -07:00
2023-08-28 12:59:45 -07:00
2023-08-30 18:32:24 -07:00
2023-08-11 12:14:08 -07:00
2023-06-15 13:42:18 +02:00
2023-08-18 10:55:49 +05:30
2023-08-11 09:39:17 -07:00
2023-08-28 17:34:54 -07:00
2023-08-29 09:47:33 -07:00
2023-08-29 11:33:01 -07:00
2023-07-05 12:55:06 -07:00
2023-08-29 09:40:16 -07:00
2023-07-03 17:03:05 -07:00
2023-06-29 15:22:19 -07:00
2023-07-03 10:43:10 -07:00
2023-08-29 11:33:01 -07:00
2023-08-27 07:33:54 -07:00
2023-08-28 12:59:45 -07:00
2023-08-29 09:47:33 -07:00
2023-07-08 12:35:18 -07:00
2023-06-29 15:22:19 -07:00
2023-08-28 09:31:32 -07:00
2023-08-22 12:12:50 +02:00
2023-08-21 13:27:44 +02:00