summaryrefslogtreecommitdiff
path: root/0005-iwlwifi-Fix-regression-from-UDP-segmentation-support.patch
diff options
context:
space:
mode:
Diffstat (limited to '0005-iwlwifi-Fix-regression-from-UDP-segmentation-support.patch')
-rw-r--r--0005-iwlwifi-Fix-regression-from-UDP-segmentation-support.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/0005-iwlwifi-Fix-regression-from-UDP-segmentation-support.patch b/0005-iwlwifi-Fix-regression-from-UDP-segmentation-support.patch
new file mode 100644
index 0000000..2a46e8c
--- /dev/null
+++ b/0005-iwlwifi-Fix-regression-from-UDP-segmentation-support.patch
@@ -0,0 +1,34 @@
+From 2059ba0b121bb366467fcefb35cef22cc23e2fe9 Mon Sep 17 00:00:00 2001
+From: Eric Dumazet <edumazet@google.com>
+Date: Mon, 21 Dec 2020 20:14:02 +0100
+Subject: 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;
+--
+cgit v1.2.3-1-gf6bb5
+