summarylogtreecommitdiffstats
path: root/0003-iwlwifi-Fix-regression-from-UDP-segmentation-support.patch
diff options
context:
space:
mode:
Diffstat (limited to '0003-iwlwifi-Fix-regression-from-UDP-segmentation-support.patch')
-rw-r--r--0003-iwlwifi-Fix-regression-from-UDP-segmentation-support.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/0003-iwlwifi-Fix-regression-from-UDP-segmentation-support.patch b/0003-iwlwifi-Fix-regression-from-UDP-segmentation-support.patch
new file mode 100644
index 00000000000..b474b4a8dc5
--- /dev/null
+++ b/0003-iwlwifi-Fix-regression-from-UDP-segmentation-support.patch
@@ -0,0 +1,34 @@
+From 631f3ba6f0debde7efcadc90fb9abef10a271148 Mon Sep 17 00:00:00 2001
+From: Eric Dumazet <edumazet@google.com>
+Date: Mon, 21 Dec 2020 20:14:02 +0100
+Subject: [PATCH 3/6] iwlwifi: Fix regression from UDP segmentation support
+
+Eric's tentative fix from
+https://lore.kernel.org/linux-wireless/CANn89iJWG2n1s3j7EdpwkQQv-9dOY02V+FGYHAWguO4JiqWuJA@mail.gmail.com/
+---
+ drivers/net/wireless/intel/iwlwifi/mvm/tx.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/tx.c b/drivers/net/wireless/intel/iwlwifi/mvm/tx.c
+index fe1c538cd718..c27743a58f81 100644
+--- a/drivers/net/wireless/intel/iwlwifi/mvm/tx.c
++++ b/drivers/net/wireless/intel/iwlwifi/mvm/tx.c
+@@ -833,6 +833,7 @@ iwl_mvm_tx_tso_segment(struct sk_buff *skb, unsigned int num_subframes,
+
+ next = skb_gso_segment(skb, netdev_flags);
+ skb_shinfo(skb)->gso_size = mss;
++ skb_shinfo(skb)->gso_type = ipv4 ? SKB_GSO_TCPV4 : SKB_GSO_TCPV6;
+ if (WARN_ON_ONCE(IS_ERR(next)))
+ return -EINVAL;
+ else if (next)
+@@ -855,6 +856,7 @@ iwl_mvm_tx_tso_segment(struct sk_buff *skb, unsigned int num_subframes,
+
+ if (tcp_payload_len > mss) {
+ skb_shinfo(tmp)->gso_size = mss;
++ skb_shinfo(tmp)->gso_type = ipv4 ? SKB_GSO_TCPV4 : SKB_GSO_TCPV6;
+ } else {
+ if (qos) {
+ u8 *qc;
+--
+2.30.0
+