Received: by 10.213.65.68 with SMTP id h4csp2196161imn; Sun, 8 Apr 2018 22:14:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/ATdbvAhWCwrwSaCF32EWPOZUZWmI8HEN0QMJpDTSMvIHovgQSqEkwza+8dKXB/QLgkxqH X-Received: by 2002:a17:902:6a10:: with SMTP id m16-v6mr3800905plk.370.1523250844633; Sun, 08 Apr 2018 22:14:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523250844; cv=none; d=google.com; s=arc-20160816; b=Jw0bKFGt7sUb/8eemVfwWezUTUeF/FIyQnWa8D5gFOnzyFNNmGwK6B975yunLXu6Aw spPHVw0ec4RKeYOE6YOXJCCiLNlkRSS1mX9qmkO7F3uYUZbHZ8vo3VUPZ03V00I7IIGT uo4bOuHZKNRqe8QOHn+DFX/ZWUVH/9hDBi/1kwtnZuHeGtFWWr1styKTkK2bvKz1FFrd kK8wG+g+K58l7oifQprLUdif0eQ57SjY25zbmzHvmVY+o/GolE2OXa57arFcLHtEiKyZ psNKI7QNc0e3csBzRKUx2DtcX90f8OM8iHQGU3nG9R+ecpR9OVm4Zcm3PVExhQgCUNqR IBJQ== 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=qbPJhDLmDlcb/8pyTtAsReORLjSv49JYyIaJ9Ot4Lus=; b=x47nvphGxYWDLkyMOD+ktGRDRPF8HaE9I25U+qAl81IZlzsnKJ8I5B0jWSDUkS5Yvh uP7IXrwHsZHOX7eHNcnH03e+CcY5ECh9kmB+2LGzfy5MZTAKp7xvRhTwYf2BokZ2DQ82 +Oa3CfRtnpk5SFamf5lw7SX9hhVUajPVGQjuuHdCtr5xkowBHRJseZ+I+H7p+D2rGV3E tLH9nXZjRachQwl6dAGshAfM/HCKj0b9pLQkxMVbqCmMw0IqktIplI5EHgJpFIgTsgCC A6wi0kkhIXqqDZiCR6UHd3Z0gYahuglKO0WVSOcZk0I++DQrUKcRMrsel+Wwa1XN7paw gZ0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=Pi2ggKjU; 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 y72-v6si13926317plh.72.2018.04.08.22.13.27; Sun, 08 Apr 2018 22:14:04 -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=Pi2ggKjU; 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 S1754030AbeDIAT0 (ORCPT + 99 others); Sun, 8 Apr 2018 20:19:26 -0400 Received: from mail-bn3nam01on0100.outbound.protection.outlook.com ([104.47.33.100]:20288 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753957AbeDIATW (ORCPT ); Sun, 8 Apr 2018 20:19:22 -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=qbPJhDLmDlcb/8pyTtAsReORLjSv49JYyIaJ9Ot4Lus=; b=Pi2ggKjUsu4rLqFLkuAa1vEdAGydfhwRRiI8+5hEzRhh94RVSZiXZnCw63Wj+hZMZv7i+xnUbBQIK3FU4Y137efDsB04d77az3RnST+7r11baJ1j+nmhhUXSJPwzHAiwid+auTihAaDiHpT92se+7AfDBAoRlDz7BWJG7whMCDY= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1063.namprd21.prod.outlook.com (52.132.128.39) 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:19:18 +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:19:18 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Emil Tantilov , Jeff Kirsher , Sasha Levin Subject: [PATCH AUTOSEL for 4.15 097/189] ixgbe: don't set RXDCTL.RLPML for 82599 Thread-Topic: [PATCH AUTOSEL for 4.15 097/189] ixgbe: don't set RXDCTL.RLPML for 82599 Thread-Index: AQHTz5g5Zo7SCpIvfUy4yGOPeKCuew== Date: Mon, 9 Apr 2018 00:18:02 +0000 Message-ID: <20180409001637.162453-97-alexander.levin@microsoft.com> References: <20180409001637.162453-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001637.162453-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;DM5PR2101MB1063;7:mBET2lZvZBOatfBQb488iIRPvJg6+hby7VB6MpzdJi5RfDveXv7SdOgjgfGDJJwd3QTe9xGQ5wAUjIeGJW3t22ok6KRAKLIICk5pltPv6HLrA1vW+UCTpPFzM2tVaTzG/e/Y0NMCHEjhmAHRI6ulcINZp4nJ3xfwJWDEXOfELtdSi4uAu2S59/ZD8anBGZKSyRi7M569xAtbg3AeHE319sPEIVA7h2mvNu1C6CiQ97oB6Cx6OSWPyYHIqPutcN/T;20:WnxjPi95Iz+iPOZgBkKbt1OzlTDTkgmtw8/lJDVIBoNaMfT5+rrz4ECEv/9E4O95kvn2vSy2/P5ZaKGaoCFsiMl54Rk6yRrSDll8lm/7O8KHnTI+XIXNWFkVMn5RRiRyTyQPHZ/0W880UMaOW5HcjYOHmz65sQIqJibHCNOWF2A= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 8b8f4f8a-afdc-4d04-442b-08d59daf88bd x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1063; x-ms-traffictypediagnostic: DM5PR2101MB1063: 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)(5005006)(8121501046)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123558120)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011);SRVR:DM5PR2101MB1063;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1063; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(39380400002)(39860400002)(376002)(396003)(366004)(189003)(199004)(2900100001)(6436002)(7736002)(10090500001)(102836004)(3660700001)(6506007)(76176011)(305945005)(4326008)(5250100002)(97736004)(26005)(25786009)(6512007)(2906002)(81166006)(106356001)(107886003)(68736007)(14454004)(86612001)(66066001)(10290500003)(59450400001)(6666003)(5660300001)(81156014)(478600001)(476003)(486006)(6486002)(72206003)(3280700002)(99286004)(105586002)(36756003)(1076002)(2616005)(11346002)(53936002)(446003)(8676002)(186003)(3846002)(54906003)(6116002)(2501003)(8936002)(316002)(110136005)(86362001)(22452003)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1063;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: NVJTleSNc4/3pHGDtbg9gyfvluGhJtIvqhQyI2fruLi+AI6CSNWynKFG7IDj8Q67Q+3tFHaB2Sci7dzDA9aCHPGEwRJ6PS+Tdx5mf4rjbEbSgZPiuvmtNHDf2/NfW0nRMb2YBb1Fd+7mX6jgtED350+aIXHCC7KbGI+3fmJd7X5FMHlHsWJ5kzmIbX6a45vAxyTJalU20nPGytQdtObLE/S3OzQU0PdXl+HzZ/8vPSD2WeVoiYDFARXFY0aGZ3jkhuuc9K4K7+K2By1wgRE1wPMhTzwlGxK/SYrau2K5tZgg7mvWiE8hIxJqOsgef0xPnoLeoQUdVvMW9lI+0vnYjOczSMYtFjZo9Atv3FOmy3T7sSmoh9nFuM2mcal/qXj5kEBRWOpEjC9vlW8sAb14YNlf09+A84TmuQJtu3lzf38= 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: 8b8f4f8a-afdc-4d04-442b-08d59daf88bd X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:18:02.8817 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1063 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Emil Tantilov [ Upstream commit 2bafa8fac19a31ca72ae1a3e48df35f73661dbed ] commit 2de6aa3a666e ("ixgbe: Add support for padding packet") Uses RXDCTL.RLPML to limit the maximum frame size on Rx when using build_skb. Unfortunately that register does not work on 82599. Added an explicit check to avoid setting this register on 82599 MAC. Extended the comment related to the setting of RXDCTL.RLPML to better explain its purpose. Signed-off-by: Emil Tantilov Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/et= hernet/intel/ixgbe/ixgbe_main.c index a7113e702f58..a549c4870882 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c @@ -4120,11 +4120,15 @@ void ixgbe_configure_rx_ring(struct ixgbe_adapter *= adapter, rxdctl &=3D ~0x3FFFFF; rxdctl |=3D 0x080420; #if (PAGE_SIZE < 8192) - } else { + /* RXDCTL.RLPML does not work on 82599 */ + } else if (hw->mac.type !=3D ixgbe_mac_82599EB) { rxdctl &=3D ~(IXGBE_RXDCTL_RLPMLMASK | IXGBE_RXDCTL_RLPML_EN); =20 - /* Limit the maximum frame size so we don't overrun the skb */ + /* Limit the maximum frame size so we don't overrun the skb. + * This can happen in SRIOV mode when the MTU of the VF is + * higher than the MTU of the PF. + */ if (ring_uses_build_skb(ring) && !test_bit(__IXGBE_RX_3K_BUFFER, &ring->state)) rxdctl |=3D IXGBE_MAX_2K_FRAME_BUILD_SKB | --=20 2.15.1