Received: by 10.223.176.5 with SMTP id f5csp805530wra; Sat, 3 Feb 2018 10:41:41 -0800 (PST) X-Google-Smtp-Source: AH8x225l02sOmsdKI4pfZeyCnpfw9DhKVhmfZpyfckwKbqFvR6L/+LvSoQrhxC4BxRjC2L7Jn9TL X-Received: by 10.99.126.93 with SMTP id o29mr2433554pgn.201.1517683301861; Sat, 03 Feb 2018 10:41:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517683301; cv=none; d=google.com; s=arc-20160816; b=xDldvOhnhKpLAQix+0PsAMKx8eowUp5xTHj0kUpYwm/ZX6zZvtLVAo/tT2F3cBHI+5 Czwbudd8xzub/lMPmokQW/cTyZnOCmgzRNCDwM8zj1PxXw/l3WWpmh5jopEXxIa2lEUg Vqq7BVY6BSVQ9k1N3ZUFTAKTwEzdjQ1K3x2ose4q+1rUQ3hrKagTXbwPoeKKteQnn9OJ 6eQXCS8uYY/BdPwQBMtb74kMhZOrNgFL0vsvpd2Cq42JQK8MynNtNMHMb8/rC2Od28cQ Z8K5r7B7vZAxI6eTsI0Yoy5WTfL3q4yIvz0eFt36tfZRnzhi9a7TknImtFDw8JXWwXve CR9w== 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=1N7Hzu7fhFuVzeKWRshBfYuN3yLz6wDM2yWl1v0UHLc=; b=Jgog6ZPJkEQ7lK3AJ4PLE2SeLmNCR4+1k8pC5CslzwuoaLOUBtR3/GtG44eaQlnjPD lEo398RxTOdigvA3lscMLnD9tSk2s61jS4g+rG4xxFnTNYeSeCDy4SVT76JzqrCENz9F w7AF7L0+r/cMy6hGZZBZRUp11ZK0s/rP4brTDJMmjFn63q3Lcxbr/OHcoLNBjjtWXIIj 3wuoU/BOZKwl9oWrDHa8/diznkhoURYVpII3l+aFo+7/zrTyC96sPvkaa7MYzpdBorKS ZHZ3WR7x1WjVTmKhk9sCF8wUdc4Tn0deaGDhjVdCHjx0SuWV4w6To5wPUubmfLsnpnwU oRWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=kI3jslEk; 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 36-v6si1657187pla.343.2018.02.03.10.41.27; Sat, 03 Feb 2018 10:41:41 -0800 (PST) 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=kI3jslEk; 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 S1754974AbeBCSkE (ORCPT + 99 others); Sat, 3 Feb 2018 13:40:04 -0500 Received: from mail-bl2nam02on0129.outbound.protection.outlook.com ([104.47.38.129]:64103 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752793AbeBCSDe (ORCPT ); Sat, 3 Feb 2018 13:03:34 -0500 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=1N7Hzu7fhFuVzeKWRshBfYuN3yLz6wDM2yWl1v0UHLc=; b=kI3jslEkm12uQZf3yYi5JIv2OJQdFfSuNae/PZKpv+zgSIbX5+HBmIq+JLATUNX5q4ra/3mCS/Xt9be3d9JnxBhx8kg2+IyqcRPXjlmx0XBV5K4GIyeZpObGGP1wYFNTDsbJvP+y09679dPlrjEFlaTcfEtqQBbXaz9pvfKToTs= Received: from BL0PR2101MB1027.namprd21.prod.outlook.com (52.132.20.161) by BL0PR2101MB0993.namprd21.prod.outlook.com (52.132.23.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.485.5; Sat, 3 Feb 2018 18:02:50 +0000 Received: from BL0PR2101MB1027.namprd21.prod.outlook.com ([fe80::a8da:b5d9:d710:9bf9]) by BL0PR2101MB1027.namprd21.prod.outlook.com ([fe80::a8da:b5d9:d710:9bf9%3]) with mapi id 15.20.0485.006; Sat, 3 Feb 2018 18:02:50 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Sunil Challa , Michael Chan , "David S . Miller" , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 098/110] bnxt_en: Fix population of flow_type in bnxt_hwrm_cfa_flow_alloc() Thread-Topic: [PATCH AUTOSEL for 4.14 098/110] bnxt_en: Fix population of flow_type in bnxt_hwrm_cfa_flow_alloc() Thread-Index: AQHTnRkEdrzB378z9kSYywfIFVdPow== Date: Sat, 3 Feb 2018 18:01:30 +0000 Message-ID: <20180203180015.29073-98-alexander.levin@microsoft.com> References: <20180203180015.29073-1-alexander.levin@microsoft.com> In-Reply-To: <20180203180015.29073-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;BL0PR2101MB0993;6:odYu/2gwLirkTsmQi6MbIUi2lYnHA4jGnK/CRnmWJ32poHQ8UU9FnwXinpKfdo0jpVu/44lEortnhQsCbJi94VCaPNLFxvGQKrmO31ZNqixMh8uHAk/PaS/FnQbevtx9jPtYjds7Hj7hvv1SZFxMMgcTF0tjuMywOq3jh8md4Iq7Mp1XqgeSfN8LbY0PqaetjK72IyN+QDoLF5+pPUxZ4pettgRVRjJR7uvlkDF6XEZcfYnMrfJSgbUwn9S+oRbjG0xrAAbsCh5ZY720QU5aZsHYRDwfJwUohRqONU5SVI0ckDT2KtWCxFmdxj+vUP/OcD0sKVPMasIlULUv8gMLJUmpTGLSSjAykaJfRnwiFgAsD5avIAv3ui2OyD1ZKA2F;5:MJhjtI2lMEXMCF7RiCn2hesQMoNTEHiFDRPSWLJ829j0WNt6+74Re0X1VCPAKLB6iS61I0i5JTI34ArnK+TZQgYGQSlVV11FOU18J6qiv3/bp+AGavpIwrjL4KwXIH1ExmEpCo3bNBQaVQeOMBdVCaqisaT0t0NpSL5ealaNeg0=;24:hWhQ9gPYNoyOp3Ea2IpVq69uVR0EXBMZZO9hKA1Tu6dlpP8/liAcCy8JSM9MV5mXwJKUEj1achuzfp95w8KWqtzqMWeGzgiE6OMxSeIluDk=;7:BU3e6mlOAjGJsRG7TMB9Yjj0nquPvYWz0W2bxBR7YPNJLP1a6L1Fv871507X+Z//f99mwwJboUKB8zlpB5g0VrFaPx+clFfh4bUbLXFjIZcviYD5hl0BvUsaetJoYceNMu1AwOiRzr9f+KgmJfWKUqBBlF6PTVFivh1sXDS9RR5CepcA74auzlvq/wK5z8zyVXz3DnZans9OZwVWHmzEjWR4bBcTBWwQKTn8oFhFAehRGAv7oVqR0rhttFj/uolZ x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 0540483a-7e93-4648-423d-08d56b3056c2 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(2017052603307)(7193020);SRVR:BL0PR2101MB0993; x-ms-traffictypediagnostic: BL0PR2101MB0993: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(6040501)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231101)(2400082)(944501161)(93006095)(93001095)(6055026)(61426038)(61427038)(6041288)(20161123558120)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011);SRVR:BL0PR2101MB0993;BCL:0;PCL:0;RULEID:;SRVR:BL0PR2101MB0993; x-forefront-prvs: 05724A8921 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(39380400002)(39860400002)(376002)(366004)(396003)(189003)(199004)(6436002)(186003)(3660700001)(8936002)(105586002)(2906002)(6346003)(6116002)(3280700002)(3846002)(97736004)(6486002)(1076002)(2950100002)(6666003)(81156014)(86362001)(76176011)(102836004)(2501003)(5250100002)(26005)(68736007)(10090500001)(81166006)(8676002)(59450400001)(53936002)(5660300001)(22452003)(305945005)(107886003)(7736002)(4326008)(86612001)(36756003)(99286004)(316002)(6512007)(10290500003)(72206003)(6506007)(14454004)(478600001)(25786009)(106356001)(2900100001)(54906003)(110136005)(66066001)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:BL0PR2101MB0993;H:BL0PR2101MB1027.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-message-info: OyrQcDcvy81rS0e6wpOqTWQv7sKs6xAjAdogSmC441K+lp6D2mAvW+OtXMIPAFbG2WuD5ytgWc3uFl4QBt/NtQ== 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: 0540483a-7e93-4648-423d-08d56b3056c2 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Feb 2018 18:01:30.3471 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR2101MB0993 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sunil Challa [ Upstream commit 7deea450eb912f269d999de62c8ab922d1461748 ] flow_type in HWRM_FLOW_ALLOC is not being populated correctly due to incorrect passing of pointer and size of l3_mask argument of is_wildcard(). Fixed this. Fixes: db1d36a27324 ("bnxt_en: add TC flower offload flow_alloc/free FW cmd= s") Signed-off-by: Sunil Challa Reviewed-by: Sathya Perla Reviewed-by: Venkat Duvvuru Signed-off-by: Michael Chan Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c b/drivers/net/eth= ernet/broadcom/bnxt/bnxt_tc.c index 7dd3d131043a..6a185344b378 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c @@ -327,7 +327,7 @@ static int bnxt_hwrm_cfa_flow_alloc(struct bnxt *bp, st= ruct bnxt_tc_flow *flow, } =20 /* If all IP and L4 fields are wildcarded then this is an L2 flow */ - if (is_wildcard(&l3_mask, sizeof(l3_mask)) && + if (is_wildcard(l3_mask, sizeof(*l3_mask)) && is_wildcard(&flow->l4_mask, sizeof(flow->l4_mask))) { flow_flags |=3D CFA_FLOW_ALLOC_REQ_FLAGS_FLOWTYPE_L2; } else { --=20 2.11.0