From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 ; 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 To: thomas@monjalon.net Cc: ferruh.yigit@intel.com, dev@dpdk.org, Hemant Agrawal 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-Exchange-Diagnostics: 1; AM0PR04MB4676; 3:4YdAZI5ByZOcJ7jP9r2TvUxEOS2bgD6Ei1ygQCQVsRTtGNvjWU6G2ltMalMf/KebRBWpYxGswpcAlggHG0WrFq3KeeFa2n3G4dIRJv8itro6Fzh6MooUp2bOegA05hHAhmWmkHELFvUvwoNZqwbJqVEu8GzWrmos9KiuJPxJqVbpFwNqeWb/WD6x9zPA9ifDyQu2pIo6cnZHfp7ERX1Vlrpo7J0uAVh//TLbvuaJcwJcl2ZD9zopk5uo74Y+Ai36; 25:yadInET07CD4R7Rld4nZVWtvDevQ3GSpawx0uos1rW4sfgVrRCnBNie5B/73TDDqkRfhQaUX9NJvAOCLL/yRq6CoNH6tRa1hzOZKA63ksqiLhdQ9+gzMYiqXs5YU8WL/4wPDqBKR0fNuq2olQD/NMfxXZ+08DMLkbkM+JbuiRcRx7qv6bCKK4UaP2qiBcNi53tYTnP3qWkNT4W7fqbjTdQmZ1q+oxxQyJtHGwsUfEDpOrEssiHTa1VIyluLIuhcxH12uOWjTuuK5mcg0CnAJ89nK4Ypev0HFVY4qrXsVnZNP0yBh1DEleubZ/27scPs1ElWsuzVrp9hgwnhKIZS2Pg==; 31:c6zDMypIHbEDlJK+++On7NU7bb/5n5DY2sjK9dYfW4tza6B/sA6Yd4LvdxX0/TkOX9Kq32Ti5XoWPQ0zXW7SHdJyPAGFBHVZucolA45dU/LV+/ie7dVcKbC8VPDppegQISrowXNNB4jEcvsD0mKIA2losu/KYhA/Xbn968czKQKqYomaHaAHmpXEKHdxaqN690K8dyOn6AcohyROl66dScoA6RVMvlSoSNNSRh+mcYI= X-MS-TrafficTypeDiagnostic: AM0PR04MB4676: X-Microsoft-Exchange-Diagnostics: 1; AM0PR04MB4676; 20:WqdJ6IKLVrQ/8laJsDwNqjukLWRUdWbTR/pGKLuZHRJC4KyU3JMvk5XtcdTEBqnJ3YexZDxci9u3/JTyGuP0/jvlw6idQijdkooD9xtE18G+X0Vy00FGHLAM4BhEIY3FuWnhqmbwmUCXFyv5O7DXMYGjW/fFG97rWdgDdUrftwKlOXJxhpqxcNRM7OoO7HN0Ihi788EyD3DWkbG1kqTAZCeDvAmtAKuDaRyL+TqHd1wyivhQavuJjH1z0AHkA+N3FPCw2RphIlrBazA0uJhqTgykZMQaAx1KxkzopTeGA0PMB3zrnT5DO1PjKwt7EYnntII3/omKuo4mbUDoJnYn58JPgZRvzskD7xhKpbxYwpX91PlCkpNtn8lULyJIguMgbrrDSDf/7amyYaH5vPeDj+B9yqIdBUDGUfFWk5v4tPm+08Pc3RzuT+UL8yfLYNFL+gNPyQ5MSMGvgObeeo1zG6+rGC9aVJESsTDZdnkfoEmZy1UxzwPnMaS8zrEdmpBg; 4:uHx4ak01KL3VzSswbiDq0I0KMb5wrl4O9n7cVof+Bg9qX46gytNp8KwkKG9x6bvFivoDcY7NzI49BPCwmjXQRUPY77Dl/vf0Ku21PHX3o6ghAhvAL/9ilIkzLIiEAsN8N1C3AeyyyJ0Bx26x7+HK2ipDyRBP45wUzi0izqD4dJfNy4tPlEAkyY2Dl5D4Memnv2BYcl0ZCIhN5T+zFHQTCYEMSQVSGB785xHS/25owRco4qQyTO3vw0o8T3MxQutlIJgTuHzXbIebtHzwBzPUiOVOCWXq0XcCKba4+oiypGdRpmkc61cUcN489Cz0QYwn 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)(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?= =?us-ascii?Q?AQ5X1/muBCp/IHcU9I+E/8fDTuEsAgkVWrmVJM8HE6YV7P3jSJyMBiz6HnMc?= =?us-ascii?Q?7uFvDJI2uKl73chNfUnr5pmWm+tiGXtsKq9Pnoc2cK2qwi1Npm53AzhO17ff?= =?us-ascii?Q?3877hlWSIw0+GUjnEQN/teMK0BX5PXhp0q5i47p/BXaa/0N7DU7vgPNK9dvp?= =?us-ascii?Q?/uHZI37yVJ4/41DrBaKdBiQoZrSq06TdzfXEnfF4wk/j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2VoyB7XGSe5rUKoe84qLUNWpXmABxrCZKpI3NLDAyrRvsQ2FG3OZTudORIBbg5rCUqvdxoqBAQ==; 5:709/8Fgh4iogCvFtRIcRNL2FCdGBjDrjKFgaSuh11YJAX13tZkAX5buX0ShZDVOVx+PKsODH+Go1YWptoTIEUk3PU0lAaOp0gvBNUqivtbUUXmbRRAltGADDXIW80s1x7UuHRPDmpOtFHQygG5hRsVoojpB1YiopfZE1qd0bVoQ=; 7:CR+ug9kUGqWh9j7+CDQDlBh1CU/t9tMNvxmjVI8rWHnfeL2dbtDxH+0/cClUV8aaiwtxlxEzijUKb+CRvmchhBch35AuiyRTLfKYAhB402iWxrK/Ylf+PsKMketAn3Hrp1awiB8iEeylWfWn6bbmnMvPzI8yw6J3wsZX+vSpMrIFBpUYsJ/NQ288eoUINUxMAx4VZqkGzuNynY9Tc2A+o47pL33q/ZkYRY/36c/K3Dg15ZXRlo16l2VgoPvFhrjf 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Oct 2018 10:05:58 -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