Received: by 10.213.65.68 with SMTP id h4csp2202907imn; Sun, 8 Apr 2018 22:24:29 -0700 (PDT) X-Google-Smtp-Source: AIpwx48zjEtrNkjXVTv8fGZ8f4jzei2P6xHzbYtkaAzaS+n2HY2C8iTBJ4yDWqKBmrBtFxyAaZP1 X-Received: by 2002:a17:902:8d98:: with SMTP id v24-v6mr37145213plo.21.1523251469402; Sun, 08 Apr 2018 22:24:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523251469; cv=none; d=google.com; s=arc-20160816; b=ru0BUgVT7InWhqz0rme5j9xR2CxkDxCNH30BDlb1yMr8EWVY8eSlLn00vZ7iBv0eYE 8ERiZkZgdpIelnIChoKfYnJjaXA3F3czf2IC6kQpZa1QuZ7RVhJsTlUpWJXe2DnZYHS6 /0RWWoK/Xs1Unk0bt3VHqDf8r9ym/UWwc64B/9PRm0Ox9tkWZgJxSB6vBR16YX/qiifJ LtkFrq2PUq1rvkJb6QbcHu2fTGCtmXEW7h9o34EG+c2itWSI3i5uIJFz1BZx51YaHQOU wms163EQYi4SW3soBXEFQToTbNrytTERS810xy2shGj1mb6I8kIl+cZH5X0FD4WIA/Rp hKbQ== 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=MrPui4SxXnAnvDauNEgkwrU9BOlS+uSN6vQ117YLgQs=; b=GCbI8yQv5zUP0fuOQWGSL2dhYwH3d9YH1debHQwNUgJNt77NjH2/WI+OGEjo1fDCX0 XX2NdjEbrf/ph0V6HCwQWILgvfFBREu1FAyGEchZg9LLeq1/aggJyzurE9yGWfAj7TOH j7G9NdJ1O27TFNIZ11JX6SgFChPcfgTc0YIMXTP3LLZXhlpdRyq9cD5/ANr24capQITe ZNlyWsr+dKupyOgZcDxfn9BOH7571kC9eubExA2z7j8wjv1odcMjKOLMwxpKcxmnSobO 1IhbV/QQ+95wNnW7zc3TRgOIbZCBKTPsrYRnD0ifXA3lkUFuKP/QjQQVCopqIauSAv6i F4PQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=S4BUauQB; 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 r29si10610548pgn.386.2018.04.08.22.23.52; Sun, 08 Apr 2018 22:24:29 -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=S4BUauQB; 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 S1755049AbeDIAY3 (ORCPT + 99 others); Sun, 8 Apr 2018 20:24:29 -0400 Received: from mail-dm3nam03on0092.outbound.protection.outlook.com ([104.47.41.92]:13920 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754984AbeDIAX7 (ORCPT ); Sun, 8 Apr 2018 20:23: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=MrPui4SxXnAnvDauNEgkwrU9BOlS+uSN6vQ117YLgQs=; b=S4BUauQBmHL+YBjxP8xltHzTh5+sxG9X2plgrC7SEX1D6jUfpig5rWZsGY/ej9c14RyXxVh8aRL2NQ86YMY3BwRKjPbhq4sSu3ckn14H7tzgwbYSoTSaOUNOay7A2ZMAwcJIXZdygn8RWq8q+LhE8T3u2BmQhOl85GjTieK+h9g= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0984.namprd21.prod.outlook.com (52.132.133.30) 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:23:55 +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:23:55 +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.14 081/161] ixgbe: don't set RXDCTL.RLPML for 82599 Thread-Topic: [PATCH AUTOSEL for 4.14 081/161] ixgbe: don't set RXDCTL.RLPML for 82599 Thread-Index: AQHTz5ie2E5dO76nP0iXnqwVBfxkSw== Date: Mon, 9 Apr 2018 00:20:52 +0000 Message-ID: <20180409001936.162706-81-alexander.levin@microsoft.com> References: <20180409001936.162706-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001936.162706-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;DM5PR2101MB0984;7:GsmWrMt2IO45m1lrV6hIBwwZNzeZmpRp7vaMOoje5YGvG1zPNegIIsjAnLTM8HR6wsm14N8nH4lGK0vymcOYVe5XdC3U/3k7TNaw5OTYGi/GbEHaQ4nOyEsSRNG7Ay9S4A/AwMmWI6G6Oe+oS+s2EiSVCgPwB6B3bN2ul9775wh3s9a2KTIRQV/ETunQNRjWU3hN2eRI2q9qJmpKypPlZOvdpmUfTIpZY2OK1M5mqlR4Powv8xFCd7yGeh677zbz;20:1G/0UvFoWsq4lvX2vPwaO/H46FNuHku+dUW/mPzFUfAGMNR1w5AsV2d9mk+pQUOnccef3l7RYyCCgmnWB2Swp0dgOYrdO3pHvOL3mUwGkDdh7rW1TZZBFWqRhDYeGUgmAXKMtraCv5IrCdlUqxrTWv+/szpxTtsEbs0ewhhogG0= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 68a1aa1f-266a-4204-2b46-08d59db02dd1 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0984; x-ms-traffictypediagnostic: DM5PR2101MB0984: 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)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123560045)(6072148)(201708071742011);SRVR:DM5PR2101MB0984;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0984; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39380400002)(346002)(376002)(366004)(39860400002)(396003)(189003)(199004)(5250100002)(2501003)(110136005)(54906003)(6116002)(6436002)(11346002)(1076002)(486006)(25786009)(105586002)(2900100001)(102836004)(86612001)(3846002)(68736007)(107886003)(316002)(10290500003)(5660300001)(86362001)(2616005)(305945005)(4326008)(446003)(6486002)(22452003)(7736002)(476003)(8676002)(81156014)(81166006)(8936002)(6512007)(10090500001)(186003)(3280700002)(106356001)(76176011)(2906002)(99286004)(26005)(97736004)(59450400001)(14454004)(6666003)(478600001)(53936002)(6506007)(36756003)(72206003)(66066001)(3660700001)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0984;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: xtC+OteiHEW/wdNjUXiNY6PbyHKsUrqhcsx9nWTXHSwHCD9kzgC6X7GvIUi/kMXFewLwTj1qe/a9r5Eh0S5xVZQTF2hWApf1+pzaZla1dkcBHBBmIiW+LiFwUsuKBrOe8OY9A9ZAy7sWJlxqii5v42iKHQPly8I8rutg9KXk+v2e9IR5PXFVdLucj42IayW6R36VPyBf0SJ4B73+1ARvlZb2pI1tK2JXE04FDAQOxxol8Lku/TylWdbBfjN66JpiLESgR69u/e4tgFurmx5a7ZaTDxjHHay/jar/g1KqqX0abynUMeZHmZ1IYl28kbsJPq4ZeN7kbUK2cz0PNtcoDDbFWYJp2cyZ1Au5/+HMVFyIAQqsIS/I1qvB9U0c9iFznEDDeMUI195IbjccB5jajqSnRq1KvKY/jsY/L9uweek= 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: 68a1aa1f-266a-4204-2b46-08d59db02dd1 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:20:52.5034 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0984 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 29f600fd6977..9e30cfeac04b 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c @@ -3987,11 +3987,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