From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0064.outbound.protection.outlook.com [104.47.36.64]) by dpdk.org (Postfix) with ESMTP id B3AEB7D2C for ; Fri, 16 Jun 2017 07:33:17 +0200 (CEST) Received: from MWHPR03CA0017.namprd03.prod.outlook.com (2603:10b6:300:117::27) by DM2PR0301MB1199.namprd03.prod.outlook.com (2a01:111:e400:501d::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Fri, 16 Jun 2017 05:33:16 +0000 Received: from BY2FFO11OLC013.protection.gbl (2a01:111:f400:7c0c::114) by MWHPR03CA0017.outlook.office365.com (2603:10b6:300:117::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14 via Frontend Transport; Fri, 16 Jun 2017 05:33:15 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11OLC013.mail.protection.outlook.com (10.1.15.25) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1157.12 via Frontend Transport; Fri, 16 Jun 2017 05:33:14 +0000 Received: from Tophie.ap.freescale.net ([10.232.14.39]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v5G5WNFP001003; Thu, 15 Jun 2017 22:33:12 -0700 From: Shreyansh Jain To: CC: , Date: Fri, 16 Jun 2017 11:10:56 +0530 Message-ID: <1497591668-3320-27-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497591668-3320-1-git-send-email-shreyansh.jain@nxp.com> References: <1497591668-3320-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131420647952803655; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39850400002)(39380400002)(39400400002)(39410400002)(39860400002)(39840400002)(39450400003)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(5003940100001)(50466002)(48376002)(2950100002)(6666003)(4326008)(305945005)(8676002)(36756003)(6916009)(38730400002)(189998001)(110136004)(2906002)(50226002)(53936002)(54906002)(81166006)(498600001)(8936002)(8656002)(356003)(33646002)(86362001)(47776003)(104016004)(105606002)(85426001)(106466001)(50986999)(76176999)(5660300001)(2351001)(77096006); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0301MB1199; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC013; 1:BwQ2zaVjJST1RyPDhDfmUpv3ytJ9JMIaXvmgUw2/FE1QNM29qQspgJzdmUFz+XvAp3AwnvY/wY7Z56WMkgoZqvelgGZ4kEqvTEznz8REbLsvLG7z7Acx1oHGPen8ZjdMc/PT/5u8FwR0q0ysZQkvEiHUZ3EtrSF5JMtFXkQYNzFsylZWV2Oy5cZkEEHVJHZYfS8uWMeFV6PYvbMfpp2J0UW/msK56/uibEnJN3PLU9GUTXTdDLmaOCPw7xTWTFtMWIp2AAYnnN1zJY3/tvXkatuH8jCigbYGwpN0n48tTnbqwg8ifFDTPJ7pR4ZIBU2WhwdkDi0Aps5N2zM8ra27luRurP2XoSzcUqyEz9XYin86i8PVWyuPlZrzcQ9tAJoh4CEVbLXWsSy/Q16GB785cd7NUcLcI5bCgSDkaPjg/P02P+vUNKFe+OSOOLvVMKx7Od0mlLvtreM1OBRURoIyasn5O1l//+Sg6DvBpYDlMnVB4P+5enoCpo9k7VzYcdZn3mNkumyNCQIYXHNy94d/NzoPb7WZqBdFs4vlEeVasET9dUaDRI9z/Fjje076mosXUXU7RK3u3FHrvIFVxjMgYg1FaMQImoi4dBIKeRT2FmLlvb0mTBD/CajGzvrrQ1NrCWH2LI2cIcH55tgiwguZ8RlYQgz/pJrtZEFR26UkF6zJXE2XwBfwKSG3Ya8DnLpEP9NOFN07dJkgjBKOxqUTWadtUFQy+jQq4n3gcbfe3wI= MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM2PR0301MB1199: X-MS-Office365-Filtering-Correlation-Id: f5cdf96c-2127-4d20-dc57-08d4b4792fc4 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:DM2PR0301MB1199; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB1199; 3:kF4sCIFyVaOE6LQHjH2M12sae5WLxFtHBRfA2HqTuiyiWCS+zumkAv0vP+WHC1wf/dFf/i3pEjN71Eqy13aFv60UL5Dw3G3ZqZeU56p012jNElCzJLt8MH1nLlOIOZG0UhlUgf75T7s8LLCME+DWny2DQaFLkyrDm8NnTaFFXS80UlE3HRwJfv64zcSMzLL6DJsEUAwFe1F5gClMyZYHN/Pk04HjX+B8mrhjtw5n9fwnmjzykGAtmAjzMesd4ZhcqEsbAj7m1j+t+VMGaYBUONXjG+FLqb/mwwMepbE/OEqZX8S6DwBO7GCoDqAMw+BnpNq6cVnUBPfFmAAXdquqTDhnabR6qXOH5Mugz+Xau5tcAmao0etAnUrHsqoTcmty5zrPfddfBSap7gghqEr7GLbdy972Da4LOsDqvhk2dJdE/l+hqkEhSJowBMw8YFQ+; 25:H8oFkIA/VqIYIjiDCD+d55uGm2Qc3viTJpEI5SNv55/yGivTq1VwCDBWJPExCYfAuIEnU3/ohBlB4iMT2K19DKfbljlxwf4NMDpB5Ryesb+tFMnReUcjnQRjVa+Q5mWPQBYZ+/bq5l6RBlPkfUvYQ38OXvNrbgv973atD5Jr/3XAne8sj0YROV7CrCjQG2M70RpWdqEu3lL5iGY2DNFW2OKAGVhsAJQ55pS9HV5TncBrouDUcR2y6QGDAxgSljWx5R+DD7qrELGX6PiqRSCrbdu9bQ8xZrnUpG12ntI4mGdcZTbqBPSZwoqwJAD56l9ATNXnZJWrgpD8W8vi3L070MJdg+2Wm1IF485RmIGVIxhbmifK5gbttFDSbDRkDXC2PgOclxkLhfrlHywQaWRRs8OobGD+yv2BNQK5pURQ/txNfcYHNrE15luyCEz+8kDM1hKzoaKVVJZ/ycIzG0Et7EycfwRyH9Lt4aZvLpQ2xdM= X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB1199; 31:ICFKSoiKiBSQNISFP+86CYeuEpXM8H6wjJQosiGM1TYW+c7ATqIwFpX+LtICMA4QdfPmK9NYjvpKOjW8+nwkvPAyRXfEYRu5P0s+UUYRTofE41AS4+xpy53L7wd1T9EmO0K5R2TSu7nK0FzOwIaEYTDdQCpVjQKmNuIwRyJ/l6x1WhIhWoNf6gmWM3jPc6hBnprfOgr95VDoXJjjM9ReNhWmWH4kAuiMSgDNaRYbwRu7oGuAsifcG+8ZzTkGtJ81H4e8gvbrTRkhH1wEWK0kTQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(13018025)(8121501046)(5005006)(13016025)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(3002001)(6055026)(6096035)(20161123563025)(20161123556025)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123565025)(20161123561025)(20161123559100)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM2PR0301MB1199; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM2PR0301MB1199; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0301MB1199; 4:J89e5IXW/Z7DC8QOGuD0IZVRPStRSPcPyF+ptzF6?= =?us-ascii?Q?YGhuHxd7HSeeTxyLRBANt2COIPwJULsoXLEhdn1y9o1SqbVQ+Bf24AmIp1zv?= =?us-ascii?Q?YPEKsrzmK1fd0UV6IgufckBU7tEEiZwel16SK4nq1ou2VhjrTOhAmE/LhGQ6?= =?us-ascii?Q?21c2+apRiAFBUel3yPVKRAP8hkFE/Ri7Lw8iF+udYzlBjpdSVWxdubl4z+qu?= =?us-ascii?Q?HKjcgmsPRgQO3pFQREXcI019dgqslSpUwHhjSJjfpqyy1cAEyXQOWR+B8+VP?= =?us-ascii?Q?YLrYcEohCs1mtl+WRhhHG3eezaJdaTUMJ4m1YKh9OTFaiqvr++fcbaaZsNrd?= =?us-ascii?Q?FHLTGOmZMMv91pZWjKyjd3OIe5FK3CgLe90UWUau6RrcsWhdZ7n2l3DSi+LE?= =?us-ascii?Q?5+xUutEE7t+hZBrmZ1RZOYY5Izx9A9TZSwYKhGagvrhr8H7j2rDLqYMVaK2f?= =?us-ascii?Q?phCvw6T2cCG5QkG+ksboD2GV/wVGd1gTFP1bwx71+rfZabWXFr2Rk5+OJPSQ?= =?us-ascii?Q?vwYZ4/gzpdEkAtVdFHVjzrdl9qPejvTiWpZrvU6PFAO1D8WqldebfK/We9Yc?= =?us-ascii?Q?odbVzeVrlz3/zuUfAtzHALG1sqyQs8Y1miOtQ1/mk3ijF1dkVRb4G0KLAC4Y?= =?us-ascii?Q?Xw0RNyP65NKOj7KALsEkGQl6LAdQkBNzx/WLB0rX8Q9BknhNwOyiKxohYptt?= =?us-ascii?Q?PXCIV1J991ucBpHt4cA/c9J5gNLt26p/P58Yw8hp/q8PeJGM9LrFLrX6oYr4?= =?us-ascii?Q?xoA5zWHWmjIpae+5rgohm3Rpm2uM/nXaUhHfOMlZJ7XgVOh2vIdsFlwE7xv+?= =?us-ascii?Q?DJvJM8Q1r4l0DL/W+YWlVCVt7Lm54Bl9hMds1x8y7sucJkJD2kBifm2wB1NI?= =?us-ascii?Q?3F8vthvB5Sfu/ING34v0yhDD6uVcqjmyLwwTV17pJJtAKPasLLqaeHTN/Ok1?= =?us-ascii?Q?rIcjy5BYTHHDKy/+nutiMZ57YOdhOttdbG7oQBxRDIod2JhRZkxbuKfyttBj?= =?us-ascii?Q?PjzzdOcJon9KC9r+kSLqZECHFNieliT8dEyLskqRuR4xEBgkh6ipX0FhwOl6?= =?us-ascii?Q?FgaP8g1acgov/UoVPW+XIWJyzOb83wXgBqzTU6pSMByP/Us72XHxGf9jHbLp?= =?us-ascii?Q?Mybg9R0TCC4+/BaoYlUMjzL26Pjd1WwgH92zRnJD8NH/NZs7AL2E9Kw+fTGL?= =?us-ascii?Q?A1p6nqTD/4kTSArq/HkpVTcKjUGFDpyuketGmX5wIJ+FVd2Uc7xVxHlmz1FF?= =?us-ascii?Q?rUwMKUO62SuQD+A9y+l705mhbfn3bRPerAs8j+PB?= X-Forefront-PRVS: 0340850FCD X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0301MB1199; 23:1NoytzS/vCCvJEwCXc0SWMqc5yc6jUVQwHHFnad?= =?us-ascii?Q?cktfMqu+hQKZ7hvqK6xIVvlSZq2d9cZDIkvlsJQytBJrAiWa8Ts7cArWquWA?= =?us-ascii?Q?if0jdUohh1iDiwcmK014LP5gRawLedXd4QbuZ/SR/9Rk0G6fcvRfvsNnFckz?= =?us-ascii?Q?Y1XXH5Az6A18p+iBvH2mg8ILUZ4i0UUdb7ARJuPOf492zaz1ZzyqwrIjJyL8?= =?us-ascii?Q?SYepR3TZkSVxrL2OufqWGOC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MJUEXqLdwYYsYB5ecgcc4+PNBu4u/j5Fw1CZ+z3qHwLCBGKlLPXrxckh+9DLSlgL929/YO3jPP1dH2AuoWR7kGKTBsNr2L+Vc2w9AVgM0UhGVFBmFH9htg+jTXu+41QP/g20EsDfmr6vL5yjY7+QalQbrWGu/NtR5MtuaJ9gRdfSKW9ZvZcJ91QqvtFTAnozh9lC12u1K8IoT+uK+Uenl6J6x+o4t9ocQ==; 24:v9uI3+JGLeCS0T8m35Bnqe9t4OY4MyL3MYwQv5VYWUuPd9SCquT/f7ApvkOsIpZkXjqmfUkKFZoI/+U4jTstbZmfKGPhxBffU3XTAAuHYmc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB1199; 7:A5YXiDJXBUGg+f64mCQjvaErneCvCJ7VUFRcfcoTB0D7jm+m8Z7phRUcXvBWq+M/tvIR6yc3yx4QBOcSutyNHML5AYPDZCu1TMIafA+zZXrElU/yaVEnHwMID/o7DsyAtt/tOpVpKySK6Av4Da53vR0R6pqPRpA7KfL2o5uJPB27V9DeXxdgbM1OmJAeI3GKEacoVGrdFia62Kq6XKX8f4LCPcve0hePBeRlBcOv9a/VOq8NzlinG9OB84tyRXFSsnd/SVnq4eXR5dn4OWJw66powV13+xg5Xozau57bshZmNvC67BMmzekydoppPhk/gLS0ztwW8puoWV34tree6g== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2017 05:33:14.9527 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0301MB1199 Subject: [dpdk-dev] [PATCH 26/38] net/dpaa: add support for jumbo frames 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: Fri, 16 Jun 2017 05:33:18 -0000 Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- doc/guides/nics/features/dpaa.ini | 1 + drivers/net/dpaa/dpaa_ethdev.c | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/doc/guides/nics/features/dpaa.ini b/doc/guides/nics/features/dpaa.ini index 0b992fd..0e7493e 100644 --- a/doc/guides/nics/features/dpaa.ini +++ b/doc/guides/nics/features/dpaa.ini @@ -5,6 +5,7 @@ ; [Features] Queue start/stop = Y +Jumbo frame = Y MTU update = Y ARMv8 = Y Usage doc = Y diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index 6d33ff8..bb47a08 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -88,18 +88,27 @@ dpaa_mtu_set(struct rte_eth_dev *dev, uint16_t mtu) fman_if_set_maxfrm(dpaa_intf->fif, mtu); if (mtu > ETHER_MAX_LEN) - return -1 - dev->data->dev_conf.rxmode.jumbo_frame = 0; + dev->data->dev_conf.rxmode.jumbo_frame = 1; + else + dev->data->dev_conf.rxmode.jumbo_frame = 0; dev->data->dev_conf.rxmode.max_rx_pkt_len = mtu; return 0; } static int -dpaa_eth_dev_configure(struct rte_eth_dev *dev __rte_unused) +dpaa_eth_dev_configure(struct rte_eth_dev *dev) { PMD_INIT_FUNC_TRACE(); + if (dev->data->dev_conf.rxmode.jumbo_frame == 1) { + if (dev->data->dev_conf.rxmode.max_rx_pkt_len <= + DPAA_MAX_RX_PKT_LEN) + return dpaa_mtu_set(dev, + dev->data->dev_conf.rxmode.max_rx_pkt_len); + else + return -1; + } return 0; } -- 2.7.4