From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 ; 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 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; VI1PR0401MB2543; 3:BZGiQr2WZ5k0524STj0kCfj2CY77j78zJP3FJ4h0yc02gM6N68orcX2d6w+g3G0UDWRXGZJuMxHf+O3iQincbBXhme8lZNQs07MLlarE9NwpSSYDheZQmTTqNp13+7PcQ7rYvsRUhiDHiwOb3bGA8738HXgcbppqjJ8EfHYn2NwCCcEpRH+DkYq+U5cZykswpBwEuEKomegJDGRJPPg7bjOGaFaQ1RC98ris74+BET/NrmYl2eG3GaAizaoaJ016; 25:IvG3y+Rq4gM/RaNbz8ltPRN/DYmCI9V8YnjxODiOwxlr5K7/wl2uJ7dMKm+LY2RiskKIkGcHKoNSKVHDhXUofiE/4MO444fJEHEgUtgbTQknx8iKXP1S+GugQpyTOGA4txSvQxH4iY1bVfRGWrTjsREZESEBmkIf3T4Fh/BdazKatLM1ecKsBgjL4Ca+zVnv0O64lauqxUgg3YIxR8aL6QfysF+vPyIU7XXh6U/OkAhyUK5M5hgohMo7Ij3S/CklxGecq/C776tJ5E8AK95ylyKJraiyBRLoj3rv+422vvsoUQcoGyFNdiR6/Tq0LhkXfBtcTK66fC932+crSjbrCQ==; 31:OnPLaCwicPpKcQ5T1PiFmzuiV2PFMFwJeJ08RvVmu8R0SejhQ3OiUwaAEIot4HeW+O2wM78Ligbg0NS/M4ssGIxDBvtD9s+WV6g6e/VVJ+mwpv9LiDbNYq/4H6vxdtg21uAlUcTZDZUvbmgraRZ/GkWD8YSIb46ZEnY2IrSxVXFolPauhbAs4zhwKzJT9AwF0aKsDLpuvC1uavI1JXLdp1t1AuPPaGja070RbiEeQiE= X-MS-TrafficTypeDiagnostic: VI1PR0401MB2543: X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2543; 20:zx+ADlc31KoW/TOgJ6fekcqMwoCS9/Jze+a0Pphiak/cAH31+B+j7zuizLYnxzwsMjzrm+U+VXRRcAJ9r81WS08SIE2onyEi63hBSWx+BwhoRVQ9Y9kIo3IUvMoLdkvnKSJJRU3O9VvG5sxC3gRgfisjoPLqt91cEbcqOVFSRfOwgk1oZ2u1WL3toiZXQaNImdJU70U2YQwtW0edKfSoWkY3/J9ZKG6qMWTn+JoJPCTksb4bD6cH2H2mqxQHIC2OsvP5H54ucAHpYHNirgRkgrrx2IpiI8kCxmKwfavt1ZEuOYURb9VUDDPLzHxA1Wn0y+iIfe1Rpaub2GYFkc8dsCGOutlR6dr1EXKnkVNXMWLeujf+mE1ZoshDaDyfDvt9XE1rtqeEnl9CLWZnNwqoe9f9eyyjCcpSHPJMXcGNSOfCOiI1PJh5mnLlN/G6xkGJIsvgSuh5YLjIJADu/J8FzQkXCBtLhJhFblX5Qs5Ge/QxicWzAI8tz2VU/PMz1N0W; 4:XxdkGe1EOYVRmRsaAbxO+2mcgAflF0yLSzmo99pmq8BETQLG2gZeFNaec7NoiC7CSOlRraJwk1O8U+dJGO+8E1GWvGDGJMN3heJO5kzAjPV3ns1y4QTSmUUREciI0o1sHZew5+QFKvytu9dlhfYh7cNE7w1oodhgz0bQWhb7U5GNj7ibrBxPwdOfOCPA2cy2CHS8HoINLtGiXjkpTl2MkUDKyheC5o8IQIOe+ZbJYX8P8BhXYvgptK5JFHsYspkJXT7FUVGmQ19ApeoEuHlzgF1NZegn9B/7guSQyn81ZPkNr0LSB0t/YoymkBC6Ss9G X-Microsoft-Antispam-PRVS: 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?= =?us-ascii?Q?hx7dHA2Nu4AaLShZebhEbXj1ri+wwGGGyZzy+4dgjovsJzeM8DLjtkcOXMQk?= =?us-ascii?Q?If2vbxl6JQ4kArG+n+e9jlnzYTPRMZLtNQlISjpvwFOQURNgz0wFmFEiv3OK?= =?us-ascii?Q?qMVdT5DATX+9x5eacrdF2b+9WgPgv2uj/OWQxsjmql1HQj2quQdvcl0AY2ER?= =?us-ascii?Q?9uLF2JTJmT9bgZ8tZjoUWJz6f11crCm5ltPyzKr4Hbi2IWVm+5c2kTE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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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Aug 2018 10:49:46 -0000 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 --- drivers/net/dpaa/dpaa_ethdev.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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; -- 2.7.4