Message ID | 1535539660-20228-3-git-send-email-hemant.agrawal@nxp.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp521222ljw; Wed, 29 Aug 2018 03:50:03 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaRlidXk5PD7tzpXg5d0v7XOb4sDO6c+BUNr7fPoiKaLsNAw9ymuDh/1IUA1h+AUgUOGJD4 X-Received: by 2002:a1c:9550:: with SMTP id x77-v6mr3629515wmd.135.1535539803177; Wed, 29 Aug 2018 03:50:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535539803; cv=none; d=google.com; s=arc-20160816; b=xh3bZ6uF8yFP7XUE155z7GJvcZ4Z08hVJM1XdmpfhxrR3eRByRmOjox98lzmBIVCDC Ih/JapDXrcHV04QT30yz7kn0q79NTHqXJUfqGjYXhnzmL05tZAkhZ3txK4V8CRs5F8sl V0muEKCCb3zrOaB2AY9uIKb+COEPXQ4ILdLGe8X6Tg8iMOa55xzURQ0K0WoyN/JjEJbH +AoXAfCar8jjjN8/qMa2hT1PIFrf9xk+jb8pCTdXR/lS31jZayWKs7a84hsEJ562hKlA dTFko+Qqqj20+3i0o5BjYBgAa4jBfZks2LHEwESkhk10f8Pnwb8Qa3AkGlCGYrNObXFF mrSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=Oa7k58WbnKSkfIojEAwcE7TJwSfdrFucaNdEbqv4CF0=; b=0pYrAmCcHQRQA8oPIcg3oUHEpdKc6rlETgM3z+XhU3BPEUbczQOPPHan/ppeiIDkmt ikTBuR/f0vvl6+irQymPmVOpbtQmlwr2TpEcrzD8HyVgRTiDpzeQc3dQlOau12S18ry7 MA9W0z5QFxJVFF4y3p4U9WWJWIB6RO1DYeveAJNMLgNUTLYY6C/MlrTnS1VXneeca3/2 0FszJ/JBazAtaitic+9oVZqicbBZt9V912AcZ34BAm3OcScusl9MQ2Acak5ts/zZSRqq 2m5la9NjoiXO13Zj6tj+FksTsVtQZXfwAq+gJtqMcODFVfU/vumi7PILD8JBO41TgrtE 7U1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=LUCCGlKP; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: <dev-bounces@dpdk.org> Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id a18-v6si2868453wrw.390.2018.08.29.03.50.02; Wed, 29 Aug 2018 03:50:03 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=LUCCGlKP; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4BA914CAD; Wed, 29 Aug 2018 12:49:49 +0200 (CEST) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00049.outbound.protection.outlook.com [40.107.0.49]) by dpdk.org (Postfix) with ESMTP id D43144C8B for <dev@dpdk.org>; Wed, 29 Aug 2018 12:49:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Oa7k58WbnKSkfIojEAwcE7TJwSfdrFucaNdEbqv4CF0=; b=LUCCGlKPD1ZnlInK6BuH/OuKyshkGX1rFzg4rhGqBGzs0GDgkROCJvCC5mgljq9xVWy5mbB8UOox80Hlk2BuBmZZ36oG9UZZ7ZFPiSU7yiRrXq57GVB4ohVynP0VuCQwuxT12KfBgca3fWGNJsZ04IdE4vEIP0OYxD7PizCz9UM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.143.30.134) by VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Wed, 29 Aug 2018 10:49:43 +0000 From: Hemant Agrawal <hemant.agrawal@nxp.com> To: dev@dpdk.org, ferruh.yigit@intel.com Cc: dpdk-up@NXP1.onmicrosoft.com Date: Wed, 29 Aug 2018 16:17:29 +0530 Message-Id: <1535539660-20228-3-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> References: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: BM1PR0101CA0071.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::33) To VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c1c2e188-7303-4a9e-b1b9-08d60d9d21ce X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(5600074)(711020)(4618075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:VI1PR0401MB2543; X-Microsoft-Exchange-Diagnostics: 1;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Lqt91cEbcqOVFSRfOwgk1oZ2u1WL3toiZXQaNImdJU70U2YQwtW0edKfSoWkY3/J9ZKG6qMWTn+JoJPCTksb4bD6cH2H2mqxQHIC2OsvP5H54ucAHpYHNirgRkgrrx2IpiI8kCxmKwfavt1ZEuOYURb9VUDDPLzHxA1Wn0y+iIfe1Rpaub2GYFkc8dsCGOutlR6dr1EXKnkVNXMWLeujf+mE1ZoshDaDyfDvt9XE1rtqeEnl9CLWZnNwqoe9f9eyyjCcpSHPJMXcGNSOfCOiI1PJh5mnLlN/G6xkGJIsvgSuh5YLjIJADu/J8FzQkXCBtLhJhFblX5Qs5Ge/QxicWzAI8tz2VU/PMz1N0W; 4:XxdkGe1EOYVRmRsaAbxO+2mcgAflF0yLSzmo99pmq8BETQLG2gZeFNaec7NoiC7CSOlRraJwk1O8U+dJGO+8E1GWvGDGJMN3heJO5kzAjPV3ns1y4QTSmUUREciI0o1sHZew5+QFKvytu9dlhfYh7cNE7w1oodhgz0bQWhb7U5GNj7ibrBxPwdOfOCPA2cy2CHS8HoINLtGiXjkpTl2MkUDKyheC5o8IQIOe+ZbJYX8P8BhXYvgptK5JFHsYspkJXT7FUVGmQ19ApeoEuHlzgF1NZegn9B/7guSQyn81ZPkNr0LSB0t/YoymkBC6Ss9G X-Microsoft-Antispam-PRVS: <VI1PR0401MB25433EA8C694272B59C19F9589090@VI1PR0401MB2543.eurprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(823301075)(3002001)(10201501046)(3231311)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699016); SRVR:VI1PR0401MB2543; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2543; X-Forefront-PRVS: 077929D941 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(136003)(366004)(396003)(39860400002)(376002)(189003)(199004)(6512007)(6486002)(16526019)(53936002)(486006)(186003)(11346002)(105586002)(6116002)(106356001)(5660300001)(50466002)(68736007)(5009440100003)(2616005)(25786009)(48376002)(386003)(4326008)(55236004)(6666003)(73566003)(86362001)(956004)(107886003)(446003)(3846002)(26005)(6506007)(476003)(316002)(52116002)(50226002)(478600001)(47776003)(66066001)(8936002)(16586007)(76176011)(51416003)(97736004)(44832011)(81166006)(8676002)(7736002)(305945005)(36756003)(81156014)(2906002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2543; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0401MB2543; 23:oW3HnyjS+zLxpYo+JLpB/KbJnw+hP2BpDjGgiaH?= hx7dHA2Nu4AaLShZebhEbXj1ri+wwGGGyZzy+4dgjovsJzeM8DLjtkcOXMQkIf2vbxl6JQ4kArG+n+e9jlnzYTPRMZLtNQlISjpvwFOQURNgz0wFmFEiv3OKqMVdT5DATX+9x5eacrdF2b+9WgPgv2uj/OWQxsjmql1HQj2quQdvcl0AY2ER9uLF2JTJmT9bgZ8tZjoUWJz6f11crCm5ltPyzKr4Hbi2IWVm+5c2kTEuLSjE3LTHdHcHqfGYfKF/LU53kmurmdOBhbfa+WyYtgaRmfVa2yovaaczUD5uqOA4Tyk4bqnUF8YkZmIy8G0CDOk9Vb0kETzwSuMi0uoYgGhjaOyVNE22M2krd2MoReVpUyIU3cEUk3aJJOJbuZAJRFQjzKY6PsJf2/kJeBh6Mfx6Y5LGzt9DWJa7jETCEyD1mck0KTsHcEq5Amv79/3utJxTmIBGxKiHIJhWvKv4M+mbH9MTkWRmf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pY2kcIeGwxmQgOBIJSaqZ8AFHELNr2MHoz41vZqRf+brSc8YukNIVk0rQQFucw3q8UV9TTt2mun5KFQCYeTo= X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2543; 6:o0zPgeIDlZjkBEpqp8gac8493PSS7a6Yg69ky4omENKqiWKAC5/KaAs68hkPs3Y+GKHmleVPrmHlsH6txN2bZphmumKX5WUynvoQVj3T/FQ6mNlT2ySHQaWv2mOYocOmu/eQ3MvxgfLUCN8khLlimUC/gO7FUX58p8NjJRnekQEWBysLkPYdBWPpb/PdhZlLAz/xYnqOiej8yci7uoiIThNZNAzbTYGgGZQ+9WiHT4mNZO+rvDIHXtXMv4VsPH1SVT3Pud/7amc9Lo+ncwksASaqFHH9astHzyoR1GssW+Xb7kSDZF/D9fb5ENwrYKYdBQ8LLkvOSBp5+y9eLvcpjxtJvmLX+PTJs1VuU5vq9bAMOLBtPYwMFI62ereJR74STHlFh3zbyYaiCtYwA6K44N5OEBjKPg8gBU1JoTGt/7dM+sXRr5lYHtKL2gGneCstg/PXj/pdQrK+F75/KolZOQ==; 5:yhfWycyv6/95HalP8NO8yriL+crVMvcVIWQbTU0aFlqy1ztOgRvWciXAuUTErCv1+XCXsJbecI9cuBMON/p58dzG1oPjxo91t+xhbuX4T/HglgDWjNeWnjcNpIjCjxspKS/8XuaKxN6zS6va//hp53wrHJq7z7s0uxcPeda7KDY=; 7:luOX9TBP+1e6v9YRIMMSwvsLQO1GJPTZ3Gqogpqfv9WFrpFmvP9t39C6F9OdM+i1aVboQA1erLSpBdUXctj27qN97T24ivvDWNvEhw0AZKoHYfPRf6tvQ8pSyCqWppBrKFXi5rcrPSDmpT0kcnWgc55+LX/3ZCAhBMav1MgJQ27Qpyfp/GRCh97ZamanvZa/QcsOaJAMk/IWm6bNYQaRDEgXmwEZcW9rE9NYofohp2Lm450pAUNjAIpdVlR4dOLs SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2018 10:49:43.9817 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c1c2e188-7303-4a9e-b1b9-08d60d9d21ce X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2543 Subject: [dpdk-dev] [PATCH 02/13] net/dpaa: fix jumbo buffer config X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
driver/net: NXP DPAA driver enhancements
|
expand
|
diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index 009ef84..dd1bc90 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -196,11 +196,17 @@ dpaa_eth_dev_configure(struct rte_eth_dev *dev) if (rx_offloads & DEV_RX_OFFLOAD_JUMBO_FRAME) { if (dev->data->dev_conf.rxmode.max_rx_pkt_len <= DPAA_MAX_RX_PKT_LEN) { + DPAA_PMD_DEBUG("enabling jumbo"); fman_if_set_maxfrm(dpaa_intf->fif, dev->data->dev_conf.rxmode.max_rx_pkt_len); - return 0; + dev->data->mtu = + dev->data->dev_conf.rxmode.max_rx_pkt_len - + ETHER_HDR_LEN - ETHER_CRC_LEN - VLAN_TAG_SIZE; } else { - return -1; + DPAA_PMD_ERR("enabling jumbo err conf max len=%d " + "supported is %d", + dev->data->dev_conf.rxmode.max_rx_pkt_len, + DPAA_MAX_RX_PKT_LEN); } } return 0;
Avoid return after the jumbo buffer config in dev config API Fixes: 9658ac3a4ef6 ("net/dpaa: set the correct frame size in device MTU") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> --- drivers/net/dpaa/dpaa_ethdev.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) -- 2.7.4