From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50072.outbound.protection.outlook.com [40.107.5.72]) by dpdk.org (Postfix) with ESMTP id A1EA11B491 for ; Wed, 26 Sep 2018 20:06:12 +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=JSOp83f7SrWMnrXDmf0mG5SNhbWS6k89fBP7i+lM8aw7eDgBLEPVNI1A4uNBQIQBA1Ps3dhtamWVfAb7P+N2LBeS0od7plI8vYmu1LsBlOUjv5kdhoDgDzIxHnK/7SoQjMVn5FzHKNRROezSdN8+7wVdvUVjGVJ5lAZXAQjPsQY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from Tophie.ap.freescale.net (14.142.187.166) by AM6PR04MB4679.eurprd04.prod.outlook.com (2603:10a6:20b:1c::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1164.22; Wed, 26 Sep 2018 18:06:10 +0000 From: Shreyansh Jain To: dev@dpdk.org, ferruh.yigit@intel.com Cc: thomas@monjalon.net, Hemant Agrawal Date: Wed, 26 Sep 2018 23:34:36 +0530 Message-Id: <20180926180440.31726-12-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180926180440.31726-1-shreyansh.jain@nxp.com> References: <20180917103631.32304-1-shreyansh.jain@nxp.com> <20180926180440.31726-1-shreyansh.jain@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MA1PR0101CA0014.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:21::24) To AM6PR04MB4679.eurprd04.prod.outlook.com (2603:10a6:20b:1c::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9b7c1f92-7c65-4f84-af8e-08d623dabe0f X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM6PR04MB4679; X-Microsoft-Exchange-Diagnostics: 1; AM6PR04MB4679; 3:U0DDkjhVecF1BkF9tF/hUm8Fzv0Cr5Cce7q/VvrbqHuRjMoFEVRQYP9iZxdpnh24NNsmO9V8/qGn7VIHXSK+YfViyQs3+pviRNFV+q4Elt9a89f8YTvBgctorZRmv5VdGvJ241xa8xe2WmDgMx6kpEYPS5dLTjeam+C4rL8Yve1rwTaY/NWEtmZBEcANnAVyIAv7HQDrwvAaSaB0A8mttKa7selh8jwEGxRUX4i+WgwXcpHVo4HtwT2mIhQ4m16+; 25:LbveaXCadtCO7ggRsr59qGtTlvE5oMDjPo7l32Rb/OAqTXSkCbafTTcf30gnjNtd/g8Sdi2zEBeA6kEC5a79fRW9z1ZWgKaHsTMAuLdohAfIRri+BtRPakL5/js6PkRMHtxt2SxN2hoXxOehd8Tuu6AHyBH5k8OWGRFnAhmDU+p6gORutvQtGB/t9wu3IHqWUwhp/73+Ja+4Dz505ty5obsxx/c+r5d+KDeXQ5QRSWreuXVdfFBQutiahzd3qq8FEy705E4NYR6A0FbIfQokuJFpcnmxfiFqkRgbyhMzuGB+fYGfeKCPOg20lFYffIbvsjM+Ko2gr13tuaZf7QyDuA==; 31:FGS6Qq0cWSv/AIX8C79LbhT7od7EOYo75VovIR4zJxIRQu9/TItAthmW4MUAQjgJnhKcYb7qmmbD5mDglfaDlaLv/RSYRI81EjrTx2+utijakBCRsCjzbGHsU8SN6EV526QbdvR9btMfgCYKDZlUUpoaC8fxdzO3MIJeBHB5CCdsTck2HxxpK9ZAhJRPnhTmi4J2ooUEiLkQelNmh6+Ne/+LK8fumAZBcwj+LO4ee5U= X-MS-TrafficTypeDiagnostic: AM6PR04MB4679: X-Microsoft-Exchange-Diagnostics: 1; AM6PR04MB4679; 20:O1uxVm0hAuzG/XknAmwRBEpytJscbGpQscg6a1lvkmpfc4bSaBmu94kQxitE3W893LMXTAHEKBArG2S3PjwhEFB79EjYs+fXoLSnB151bfV/09IvvvqYckixjbiIBMTuw6aM7kKHhtih+RtDeM/fEjrAdUtmMHIsCHBQzv8mQLiJPQ+ijN0nTq5JQsgIVyuJNCe7xJjS6jRr6qOprErUfeMREmGIVCDuq7ogS3ZLblSmfdX9VUkhtT+x0JaAquQaTgZmYoEn5btZC4j2SagMnRd0BS9mawpvGz7UtnC3Ny5a9jcAwAypZX6OBLYeUSHhpZH8J4APz+luenRpgV87/f3v+YmYWferUBxp7gXwm6UY7clMCh2B4eYNfiJ/UhxtE+IcELjP2LBH9iv3RsIWsAiirrrN59DkhMWGcJgH4ExWl/prrbil/A/GfnMcIKw5XPmA5mZnNb7Yonl1OhS8An30pYfWDv/Kp5q1bou4AxsQw3D6sLsfLcPuI7xEcHfj; 4:k6WIhAHAI/HF3pB3yJP88HmhPpAPcKGQXLVQyK8a0vuqdl2NqQDZAIvuVNt2Xe/pFXEGkos/CQTovwH4lMakbzRD0MJnfHCtbAUvolnuaE3KbUQ9NL19QXwGRmjf0PBWE0RD3nuse6X7WgPFnWjt6jZHnUfnV+6cafPVkqUiyGwq/q54Zn8vNQqi/nE34llrAiTppnsY/jwmVJ47lltc0exr4N7Oy5LukepBdrIHA7Cm2/VZIwhRK+9OqUgVt4vcoExqbhUwvlieJ/xhLBcL33VliVY636I3Sg9zaAguMmXX22ddt4kkujeLYx1/BA/1 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)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231355)(944501410)(52105095)(3002001)(6055026)(149066)(150057)(6041310)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(20161123560045)(201708071742011)(7699051); SRVR:AM6PR04MB4679; BCL:0; PCL:0; RULEID:; SRVR:AM6PR04MB4679; X-Forefront-PRVS: 08076ABC99 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(136003)(396003)(346002)(366004)(39860400002)(189003)(199004)(11346002)(50226002)(446003)(47776003)(44832011)(956004)(476003)(106356001)(486006)(2616005)(6512007)(66066001)(305945005)(7736002)(6486002)(105586002)(36756003)(86362001)(478600001)(8936002)(16526019)(81166006)(50466002)(186003)(26005)(25786009)(8676002)(55236004)(48376002)(81156014)(4326008)(3846002)(6116002)(1076002)(6666003)(52116002)(34290500001)(5009440100003)(2906002)(16586007)(51416003)(316002)(97736004)(6506007)(76176011)(5660300001)(386003)(68736007)(53936002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR04MB4679; H:Tophie.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; AM6PR04MB4679; 23:K9ll8XFEQrdR5yhuE94sFDH5Siktkzo9YQ9r+9Va4?= =?us-ascii?Q?vENN1+RkbXXG+MWK3d2t2WDW1DbG0vFo45VziyLcAt1P9Hsutl721Ai764Hh?= =?us-ascii?Q?HX9dfO83/yAw/Sj55fU6u7nD00+whNLlYGzSzGbxiLsRq+/ajcQu5wkGmt8D?= =?us-ascii?Q?FDkOTl7FpeTIpA3xW4e3RN/8BmFYvYX5Gpazd3DDyYZAatVP+XEfW/IxGMM0?= =?us-ascii?Q?cOkU1985W/LqPRoFL07YI9tpO6f85PWugwjq3LXhhJE1B6cLiGX8PBxPpQgn?= =?us-ascii?Q?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DSBvb71S1Vwomm8zGXlV8w==; 5:JfwWbk+AN1tSzxSeel9XI2Ra2qJmQnfIVtSqlc7GnI2xPsc8COQDS73AX69++7eJBkiunfUBSm0vqNziGJ21kc2qUstxwEPGYzOoIgtOC40NkQw3rkusNGbMtQNXcWSIclvDwygacuWUXETTnQz2mE55b3LKLiHmC9gge7daDo4=; 7:/Klzxm48rZrD0EM5IdlRsKMmO+FqDvjbjy5XcPX9PeayJSEnNwm9vi6PMIS0gt/nK2TzQrCGvA1P+wE5otgXfxOh3QeY/wN2a71cWta4iD/+kmIkzXf/7iI27MfW5A0P8QfTmwwlL756WaUgWfApyRym8wfxWSdi5CI8bg0lvfAox131gXc+n2Jiaf43xC3Ss0ouxw4SQ4DRjJgvkt8nuK+pyvXAHUSROaO60SXdcuFr32SKGmtGGdDOL1bbq1Xd SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2018 18:06:10.1639 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9b7c1f92-7c65-4f84-af8e-08d623dabe0f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4679 Subject: [dpdk-dev] [PATCH v2 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Sep 2018 18:06:12 -0000 From: Hemant Agrawal This patch copies the flc based hw provided hash results to the mbuf rss field for lx2 platform only. Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_rxtx.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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)) -- 2.17.1