Message ID | 20181012100426.29349-12-shreyansh.jain@nxp.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp539509lji; Fri, 12 Oct 2018 03:07:27 -0700 (PDT) X-Google-Smtp-Source: ACcGV62qmRP83sakzF/g+QbqRKg/C4QbDoayJ42/t3M1CsUf3sducl+HNGkpkAC1Yx1h6636yqHQ X-Received: by 2002:adf:ab13:: with SMTP id q19-v6mr4519173wrc.62.1539338847293; Fri, 12 Oct 2018 03:07:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539338847; cv=none; d=google.com; s=arc-20160816; b=E7KMHTrZqHgqnQdq2taWg/Z3N05mWVPWgGS8uxUZJhqnzBMoP8FB54C4bJ1zDA3K1r jrJ7R+MjEQIoGFVNtu9p4DIVUfnM0VDkJOu+LGhtV0MU87yv7pDX9ZmLBadSQI+Of03g vVlxYVFNZEeq/iircDUynI4amfFMfYtLNyB1rQm6izlxXEr6m/GsmUV3IeLNFLAOu1ZQ WqaWPit+BtBSYl47KjIGid3ekQwJcMfH3m/n7LUAXV9eVfNd36diG6/oxCFb9OjGaD4t vMN/a4/LXj9jotW4r2WsKlHQ/aF6avOClJ8qdVIa9WrvuhltKjFzvhWF7tgWwbn6MNlv DWLw== 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; bh=8zVCgvIu7lDpKj0bKI2U1+MqA8q8o15++o9eZg69/3c=; b=NL+Zq0vvDPJBrxkYLERtj7SqqzzSaf7OZFONh3qUbzJZVKN+NkfC3ym0X85G9HSAQB xy18lHWvOioMpj+U3GIsNNSOC7cl/oO1bEXoG59wxH9JDfbxiuNjPARYAfCwbnAq69bk sU9g+4oJB1Q9AJb7AA0UFLB+x2btmJMIZeB0bB5n1h+ThpklA5kALwG76aJh8pN8EkLZ AUFsdyMD0tRUYjizjr1eCmY8SZZqm4UvL/XhF5h+cY3rPx1024ehDNZK9gYgWTnRcsup pH3Mr89HhbR5bWvwMW1RatJkMUvCociNMwYfJMCJGChHQbxgYp0eXDRb7RPZDOzcmnNI 66aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=HbtjCI5E; 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 j18-v6si707430wrm.257.2018.10.12.03.07.27; Fri, 12 Oct 2018 03:07:27 -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=HbtjCI5E; 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 7B73A1B4EB; Fri, 12 Oct 2018 12:06:10 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0062.outbound.protection.outlook.com [104.47.0.62]) by dpdk.org (Postfix) with ESMTP id A8ED91B4A5 for <dev@dpdk.org>; Fri, 12 Oct 2018 12:05:57 +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=8zVCgvIu7lDpKj0bKI2U1+MqA8q8o15++o9eZg69/3c=; b=HbtjCI5EXaRPScaEg9dYlIfypt2wkGCu2c0TBvoSaZTJkKlZ9KRIdWZ6WZJmJCP0g5yndQ9LbD5esF8IODTB5bnW6/JC3ICOCLvxDFBs3BjNoLe4pYkFNgUcjYxg6ZrScJm9IwMY54ERoxQ4YbE3ctn3m58HVg3jLG3wQOz3Ktg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from Tophie.ap.freescale.net (14.142.187.166) by AM0PR04MB4676.eurprd04.prod.outlook.com (2603:10a6:208:75::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.25; Fri, 12 Oct 2018 10:05:55 +0000 From: Shreyansh Jain <shreyansh.jain@nxp.com> To: thomas@monjalon.net Cc: ferruh.yigit@intel.com, dev@dpdk.org, Hemant Agrawal <hemant.agrawal@nxp.com> Date: Fri, 12 Oct 2018 15:34:22 +0530 Message-Id: <20181012100426.29349-12-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181012100426.29349-1-shreyansh.jain@nxp.com> References: <20180926180440.31726-1-shreyansh.jain@nxp.com> <20181012100426.29349-1-shreyansh.jain@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BMXPR01CA0004.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:d::14) To AM0PR04MB4676.eurprd04.prod.outlook.com (2603:10a6:208:75::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e1ebd885-5ce6-423d-e91e-08d6302a4d92 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM0PR04MB4676; X-Microsoft-Exch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bwmUCXFyv5O7DXMYGjW/fFG97rWdgDdUrftwKlOXJxhpqxcNRM7OoO7HN0Ihi788EyD3DWkbG1kqTAZCeDvAmtAKuDaRyL+TqHd1wyivhQavuJjH1z0AHkA+N3FPCw2RphIlrBazA0uJhqTgykZMQaAx1KxkzopTeGA0PMB3zrnT5DO1PjKwt7EYnntII3/omKuo4mbUDoJnYn58JPgZRvzskD7xhKpbxYwpX91PlCkpNtn8lULyJIguMgbrrDSDf/7amyYaH5vPeDj+B9yqIdBUDGUfFWk5v4tPm+08Pc3RzuT+UL8yfLYNFL+gNPyQ5MSMGvgObeeo1zG6+rGC9aVJESsTDZdnkfoEmZy1UxzwPnMaS8zrEdmpBg; 4:uHx4ak01KL3VzSswbiDq0I0KMb5wrl4O9n7cVof+Bg9qX46gytNp8KwkKG9x6bvFivoDcY7NzI49BPCwmjXQRUPY77Dl/vf0Ku21PHX3o6ghAhvAL/9ilIkzLIiEAsN8N1C3AeyyyJ0Bx26x7+HK2ipDyRBP45wUzi0izqD4dJfNy4tPlEAkyY2Dl5D4Memnv2BYcl0ZCIhN5T+zFHQTCYEMSQVSGB785xHS/25owRco4qQyTO3vw0o8T3MxQutlIJgTuHzXbIebtHzwBzPUiOVOCWXq0XcCKba4+oiypGdRpmkc61cUcN489Cz0QYwn X-Microsoft-Antispam-PRVS: <AM0PR04MB4676CC638DD27B047154230090E20@AM0PR04MB4676.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)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231355)(944501410)(52105095)(6055026)(149066)(150057)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051); SRVR:AM0PR04MB4676; BCL:0; PCL:0; RULEID:; SRVR:AM0PR04MB4676; X-Forefront-PRVS: 0823A5777B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(396003)(346002)(366004)(136003)(39860400002)(199004)(189003)(2906002)(52116002)(16526019)(53936002)(8676002)(478600001)(186003)(386003)(446003)(105586002)(7736002)(106356001)(6512007)(6116002)(86362001)(3846002)(81156014)(50226002)(68736007)(1076002)(47776003)(5660300001)(6506007)(8936002)(78486009)(36756003)(316002)(26005)(66066001)(6666004)(25786009)(55236004)(81166006)(11346002)(48376002)(76176011)(44832011)(2361001)(956004)(51416003)(2616005)(97736004)(1006002)(50466002)(486006)(476003)(305945005)(16586007)(6916009)(4326008)(6486002)(2351001)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4676; H:Tophie.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM0PR04MB4676; 23:XWUqyO674qJGUAUcWUXkTeI9pijy2O7pp4Vc4m0vK?= AQ5X1/muBCp/IHcU9I+E/8fDTuEsAgkVWrmVJM8HE6YV7P3jSJyMBiz6HnMc7uFvDJI2uKl73chNfUnr5pmWm+tiGXtsKq9Pnoc2cK2qwi1Npm53AzhO17ff3877hlWSIw0+GUjnEQN/teMK0BX5PXhp0q5i47p/BXaa/0N7DU7vgPNK9dvp/uHZI37yVJ4/41DrBaKdBiQoZrSq06TdzfXEnfF4wk/jZpcVAVzhJernVT7onw/WV6UuRMzXGzDL56Kp5wj6fcqddh593SX9b4yiMr/8U4p7tsnLXHStdVuWcwtw7LG7uoqlHu+g2daJSoDVY/C9dffRfu2aWx91XYvxBLC++zq/9ksVcyZrulZfzH+jyDxl1GEJIOzsiw/TD0J1/AfSEGh54M6DlIKE9eIwVjKYC6pbo4ZtqfwnegoeMMLNlvR76A0VDGYpTpWOwpaXrBdDOTMB6GZWyIDdC25S/s5eB4MXT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jf SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Oct 2018 10:05:55.7870 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e1ebd885-5ce6-423d-e91e-08d6302a4d92 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4676 Subject: [dpdk-dev] [PATCH v3 11/15] net/dpaa2: update RSS value in mbuf for lx2 platform 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 |
[v3,01/15] net/dpaa2: fix IOVA conversion for congestion memory
|
expand
|
diff --git a/drivers/net/dpaa2/dpaa2_rxtx.c b/drivers/net/dpaa2/dpaa2_rxtx.c index 953fed2ad..e96e84871 100644 --- a/drivers/net/dpaa2/dpaa2_rxtx.c +++ b/drivers/net/dpaa2/dpaa2_rxtx.c @@ -34,8 +34,10 @@ } while (0) static inline void __attribute__((hot)) -dpaa2_dev_rx_parse_frc(struct rte_mbuf *m, uint16_t frc) +dpaa2_dev_rx_parse_new(struct rte_mbuf *m, const struct qbman_fd *fd) { + uint16_t frc = DPAA2_GET_FD_FRC_PARSE_SUM(fd); + DPAA2_PMD_DP_DEBUG("frc = 0x%x\t", frc); m->packet_type = RTE_PTYPE_UNKNOWN; @@ -100,6 +102,8 @@ dpaa2_dev_rx_parse_frc(struct rte_mbuf *m, uint16_t frc) default: m->packet_type = RTE_PTYPE_UNKNOWN; } + m->hash.rss = fd->simple.flc_hi; + m->ol_flags |= PKT_RX_RSS_HASH; } static inline uint32_t __attribute__((hot)) @@ -236,8 +240,7 @@ eth_sg_fd_to_mbuf(const struct qbman_fd *fd) first_seg->nb_segs = 1; first_seg->next = NULL; if (dpaa2_svr_family == SVR_LX2160A) - dpaa2_dev_rx_parse_frc(first_seg, - DPAA2_GET_FD_FRC_PARSE_SUM(fd)); + dpaa2_dev_rx_parse_new(first_seg, fd); else first_seg->packet_type = dpaa2_dev_rx_parse(first_seg, (void *)((size_t)DPAA2_IOVA_TO_VADDR(DPAA2_GET_FD_ADDR(fd)) @@ -293,7 +296,7 @@ eth_fd_to_mbuf(const struct qbman_fd *fd) */ if (dpaa2_svr_family == SVR_LX2160A) - dpaa2_dev_rx_parse_frc(mbuf, DPAA2_GET_FD_FRC_PARSE_SUM(fd)); + dpaa2_dev_rx_parse_new(mbuf, fd); else mbuf->packet_type = dpaa2_dev_rx_parse(mbuf, (void *)((size_t)DPAA2_IOVA_TO_VADDR(DPAA2_GET_FD_ADDR(fd))