Emmanuel Grumbach
0eac9abace
iwlwifi: mvm: fix TSO with highly fragmented SKBs
...
Our hardware has a limited amount of buffer descriptors
for each Tx packet. Because of that, there is a short
piece of code that makes sure that that we don't push too
many subframes in an A-MSDU because of subframes needs 2
buffer descriptors. This code also takes into account the
number of fragment of the skb since we also need a buffer
descriptor for each fragment in the skb.
This piece of code though didn't check that the resulting
number of subframes wasn't 0.
A user reported that using NFS client, he could get skbs
that are so fragmented that the code mentioned above
returned 0 for the number of subframes making
skb_gso_segment fail and subconsequently iwlwifi would WARN.
Fix this by make sure that num_subframes is at least 1.
This fixes:
https://bugzilla.kernel.org/show_bug.cgi?id=199209
Fixes: a6d5e32f24 ("iwlwifi: mvm: send large SKBs to the transport")
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com >
Signed-off-by: Luca Coelho <luciano.coelho@intel.com >
2018-05-30 09:33:36 +03:00
..
2018-05-14 22:25:45 +02:00
2018-04-26 10:35:04 +02:00
2018-04-23 12:12:41 +02:00
2018-05-07 08:32:20 -07:00
2018-05-10 15:23:49 -04:00
2018-03-13 18:16:38 +01:00
2018-04-27 10:12:20 -07:00
2018-03-13 18:47:47 +02:00
2018-05-10 10:15:05 +02:00
2018-05-18 06:37:52 +02:00
2018-04-26 16:53:23 +02:00
2018-04-18 08:21:32 -06:00
2018-05-10 11:26:08 +10:00
2018-05-15 15:47:03 -07:00
2018-04-19 13:21:35 +02:00
2018-05-01 14:25:37 -04:00
2018-05-14 22:25:56 +02:00
2018-04-09 11:54:57 +02:00
2018-04-07 19:04:02 +09:00
2018-04-19 15:11:50 -07:00
2018-04-23 21:02:41 -04:00
2018-05-17 16:16:49 +05:30
2018-04-05 14:21:13 -07:00
2018-04-04 20:07:20 -07:00
2018-05-20 10:36:52 -07:00
2018-03-27 09:51:22 +02:00
2018-04-23 13:27:05 +02:00
2018-03-14 19:11:01 +01:00
2018-04-30 10:48:08 +02:00
2018-05-18 12:01:49 +10:00
2018-05-09 13:58:01 +02:00
2018-03-19 16:31:07 +01:00
2018-04-09 11:42:31 -07:00
2018-05-13 09:00:49 -07:00
2018-04-04 20:07:20 -07:00
2018-05-15 09:31:26 +02:00
2018-04-05 14:27:02 -07:00
2018-04-05 09:51:41 -07:00
2018-05-18 13:00:08 -04:00
2018-05-02 17:34:42 -10:00
2018-05-03 16:36:07 +02:00
2018-05-02 15:56:10 +02:00
2018-04-12 21:46:10 -04:00
2018-03-20 20:28:00 +01:00
2018-03-29 17:29:09 -06:00
2018-04-07 12:08:19 -07:00
2018-03-20 11:15:54 +08:00
2018-03-19 14:20:24 -05:00
2018-05-18 10:10:43 -07:00
2018-05-04 06:21:06 -04:00
2018-04-18 10:07:13 -07:00
2018-04-18 23:37:25 -04:00
2018-04-10 22:25:07 -07:00
2018-05-18 18:02:01 -07:00
2018-04-20 10:41:31 -07:00
2018-05-14 14:46:20 +02:00
2018-05-30 09:33:36 +03:00
2018-04-19 15:10:56 -07:00
2018-05-11 13:37:14 -06:00
2018-04-04 20:07:20 -07:00
2018-05-16 14:20:35 -04:00
2018-03-29 15:07:48 -04:00
2018-05-18 16:21:49 +02:00
2018-04-04 20:07:20 -07:00
2018-05-10 16:50:26 +02:00
2018-04-09 09:26:36 -07:00
2018-04-05 21:29:35 -07:00
2018-05-17 16:11:40 -04:00
2018-05-02 14:36:00 +02:00
2018-05-18 15:49:26 -07:00
2018-04-05 21:21:08 -07:00
2018-03-19 00:02:24 +01:00
2018-03-14 17:53:06 +01:00
2018-04-27 15:22:28 -04:00
2018-04-13 15:46:21 -07:00
2018-04-20 17:18:35 -07:00
2018-03-28 10:33:53 +08:00
2018-04-25 16:46:55 -07:00
2018-04-27 11:51:12 +02:00
2018-04-25 16:46:55 -07:00
2018-04-25 13:24:13 +10:00
2018-05-21 16:01:54 -04:00
2018-04-30 16:06:01 -04:00
2018-05-21 16:01:54 -04:00
2018-03-15 18:07:46 +01:00
2018-04-23 13:40:15 +02:00
2018-05-04 09:58:56 -04:00
2018-05-04 08:09:02 +09:00
2018-03-13 18:48:29 +02:00
2018-05-04 06:21:06 -04:00
2018-04-20 19:24:01 -04:00
2018-05-07 11:51:03 +02:00
2018-05-11 09:37:21 +08:00
2018-03-14 14:26:38 +03:00
2018-04-25 15:03:44 +02:00
2018-04-23 12:43:48 +02:00
2018-05-16 18:52:13 +02:00
2018-03-09 09:31:26 -08:00
2018-04-06 19:44:27 -07:00
2018-04-24 10:02:13 -04:00
2018-04-10 10:20:00 -07:00
2018-04-23 13:41:55 +02:00
2018-04-11 18:58:27 -07:00
2018-03-14 14:58:50 +01:00
2018-04-16 10:22:40 +02:00
2018-04-20 08:36:04 -07:00
2018-03-19 10:26:46 +01:00
2018-03-29 13:38:10 +03:00