Received: by 10.213.65.68 with SMTP id h4csp2117614imn; Sun, 8 Apr 2018 20:08:40 -0700 (PDT) X-Google-Smtp-Source: AIpwx4981FjPJoMrvs+iZQoCMuv0umySQTMaxAx6fSvH67TZbBVk8tLZkBxCZnupcyUI+xtJ6xV2 X-Received: by 2002:a17:902:d685:: with SMTP id v5-v6mr358197ply.284.1523243320270; Sun, 08 Apr 2018 20:08:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243320; cv=none; d=google.com; s=arc-20160816; b=AmzEot8bXpRZnnFpqXuKOx9BWgEDyRzJtyFdSV7Oc5w7JggYznfMhnlZ3eNojSrAD6 7OsaUPiznOaFeBYnKN5Hf+pTLHe10qby3hN8V0SywQJNsdBdzSWixSN7JYogSA8V+KYi Fi6PDmZUcgLoR1Vk+vjzLi13nMHsFWYFoAaUKSSbb9o8Ld4lQEJu0x+DR/dfGJl31fmq SVf9Rcj4tvCaG7FEd6m3ZGxZDYrBDLOqREtkD198K5eN8xshtHLrPPF7xrPUZCpLesDj yKzhXs/rHHJFU1RCF6aSkvvGfWR4DpjcW1Vz/mvkRL02S1nFyt4o6efxu/xQVjBDpqwM OUdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=s3uelvErmib4GIAJO95YZIXEpckOmgYDxQFj2vxWWYk=; b=p1OH2nVOs3Bjp0DF3Xe4OsaMBnB/ogiQJqzX2IUN9cr+R5YZ4ccdXnL4+n+d2d0tLj fPYynPCUK4K96dTMAW+q7DdFX3V/76TG/U00FIx2Lz+uIvUizp7m6wlgil3b84wREqYe 5xHzjARaz4JJOVrNIAG2gQq3vJ5Q3qHF4n8G7Dj2BK+H2ggZxC/CC77M3Sn7JhcCK/qn gne7Z4F07Pyhd+oXYoWThcBtZOugqr9jGuVdXKHr6KQJvmgkL4Cy3LZJ+KBdyZvgP6sh 6VqaPzetBudCnUfweyWABbhfgNEs9lhmKyDHcn3kjZ30USkEKdhni9DZlfhJ6+Ix6maM StJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=h3BxY9gA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w19-v6si13290689plq.156.2018.04.08.20.08.03; Sun, 08 Apr 2018 20:08:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=h3BxY9gA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757770AbeDICFV (ORCPT + 99 others); Sun, 8 Apr 2018 22:05:21 -0400 Received: from mail-co1nam03on0101.outbound.protection.outlook.com ([104.47.40.101]:32931 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756362AbeDIAb7 (ORCPT ); Sun, 8 Apr 2018 20:31:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=s3uelvErmib4GIAJO95YZIXEpckOmgYDxQFj2vxWWYk=; b=h3BxY9gAQfpqadvYSh0U0jOMdxzGH83a24qUZONRq4XB1PndFIuRqJfHh7nt7flCEQ8ta5ZlzU4fN90A+O+Nf9Q7IoKWBWdmLGmYqf2MduTKEx9xWWXJhGMTow17isQP69bDw7+498fxooq5S4wZ70naxmP1+JGqzf1RvI8sqvo= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1126.namprd21.prod.outlook.com (52.132.132.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:31:57 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:31:57 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Emmanuel Grumbach , Luca Coelho , Sasha Levin Subject: [PATCH AUTOSEL for 4.9 184/293] iwlwifi: mvm: don't mess the SNAP header in TSO for non-QoS packets Thread-Topic: [PATCH AUTOSEL for 4.9 184/293] iwlwifi: mvm: don't mess the SNAP header in TSO for non-QoS packets Thread-Index: AQHTz5k86K2aOSuVRUa4vC5jHRSVlw== Date: Mon, 9 Apr 2018 00:25:18 +0000 Message-ID: <20180409002239.163177-184-alexander.levin@microsoft.com> References: <20180409002239.163177-1-alexander.levin@microsoft.com> In-Reply-To: <20180409002239.163177-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1126;7:Sxk6P5UpvG5ESakHGIMacmbecKkXw+naXuLfP/ilKK4gC2Fkl3XRwmiQCWq6PoK1I1fhxEru04iIyVbGLjbk5YuHG4cvP6djh0YPFcCJBZ6fTD2HsV9qH4VzbRH+B00tLyhu2HzhZt2fKdXIKOX5cKt0Hl02wCasbQeKLwEYOJ5xKxxfRm9L4tTULNFLiQHBAzIZZMRua9BXu906n2rCXMkrVo77jiL1vTEeepRZ7rkUKcbm4EDgFTmM+oACohCt;20:PL4mhSBUVhPH7EfkAMH0OBQPC+LFOmnG1oA+/x9/UeDGa2FGeSX4m51KpMra+/nYPIF46mLaQwXlh3S9eBPejL8428jrw6C10iJEkoJ1ZThDBzbppueoMExM+kJjoBsOXnKHkpbhcxygk4USN70scUmu8mafm/+nfHk8RztTus0= X-MS-Office365-Filtering-Correlation-Id: 68e2910b-bf1d-4740-874c-08d59db14d1f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(48565401081)(2017052603328)(7193020);SRVR:DM5PR2101MB1126; x-ms-traffictypediagnostic: DM5PR2101MB1126: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(3231221)(944501327)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB1126;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1126; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(39380400002)(396003)(39860400002)(346002)(376002)(189003)(199004)(2616005)(476003)(81156014)(8676002)(81166006)(3846002)(486006)(2900100001)(6436002)(186003)(478600001)(72206003)(110136005)(54906003)(2906002)(86612001)(6666003)(2501003)(26005)(10090500001)(102836004)(6512007)(6116002)(14454004)(5250100002)(10290500003)(1076002)(446003)(3280700002)(3660700001)(11346002)(8936002)(25786009)(6506007)(106356001)(4326008)(107886003)(36756003)(105586002)(53936002)(86362001)(66066001)(6486002)(99286004)(5660300001)(316002)(22452003)(305945005)(76176011)(97736004)(68736007)(7736002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1126;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: i5F9F+JgCyjBEdP1cvjsJeeWH12HEovBqssLmxDzSLoZFJPjJfz071QbnOpwi+XVIL+Ushi/esw0UVH7JCdUKbT0xMmc+LTkhv/jRKMSRSCe9/a8S5IZ5LnutksQM71EIQzpPTFuVXtg7fCr/uTZpq7PhC1IILbIey+nMMV40RUhFNXLKuswwxFjgQgqnR7PR5GHqsOhorRFo65ZvYaPDwOkkT0ZbSY9MD9xnSC6aVgqbqWhlVfMRjl5Log8nP6iIA2PCLTtKXHChT/U9dFZmxc7kvB0o378WpOb5PkhOEy7azrEXRQNjJD1QtVvP+AhO6gElMaYp2olnZzp9G76vEjX9AZTqW43zbV6rro6Wj4z/a8WXL+9kSkJq3uPN0tJ7xyAcqHSn4RHeIetoIl4Y+AW6L0lYTlpO0zS+Fzar20= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 68e2910b-bf1d-4740-874c-08d59db14d1f X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:25:18.1126 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1126 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Emmanuel Grumbach [ Upstream commit 6344436e9d3f4fb4878c12169477d4beb5b825ea ] When we get large sends on non-QoS association, we had a bug that mangled the SNAP header. Fix that. Fixes: a6d5e32f247c ("iwlwifi: mvm: send large SKBs to the transport") Signed-off-by: Emmanuel Grumbach Signed-off-by: Luca Coelho Signed-off-by: Sasha Levin --- drivers/net/wireless/intel/iwlwifi/mvm/tx.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/tx.c b/drivers/net/wire= less/intel/iwlwifi/mvm/tx.c index 790952e48262..5dfd6a775e2b 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/tx.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/tx.c @@ -786,11 +786,13 @@ segment: if (tcp_payload_len > mss) { skb_shinfo(tmp)->gso_size =3D mss; } else { - qc =3D ieee80211_get_qos_ctl((void *)tmp->data); + if (ieee80211_is_data_qos(hdr->frame_control)) { + qc =3D ieee80211_get_qos_ctl((void *)tmp->data); =20 - if (ipv4) - ip_send_check(ip_hdr(tmp)); - *qc &=3D ~IEEE80211_QOS_CTL_A_MSDU_PRESENT; + if (ipv4) + ip_send_check(ip_hdr(tmp)); + *qc &=3D ~IEEE80211_QOS_CTL_A_MSDU_PRESENT; + } skb_shinfo(tmp)->gso_size =3D 0; } =20 --=20 2.15.1