Message ID | 20180926180440.31726-12-shreyansh.jain@nxp.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp1036674lji; Wed, 26 Sep 2018 11:07:57 -0700 (PDT) X-Google-Smtp-Source: ACcGV60LYLoJcvWU7uyYb/O8VzcVTm/L5jyRtPO7afBDyQdKM0ZfwiQBO1E2LsI+VV+M9to1AcqS X-Received: by 2002:a50:c44a:: with SMTP id w10-v6mr11682219edf.274.1537985277793; Wed, 26 Sep 2018 11:07:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537985277; cv=none; d=google.com; s=arc-20160816; b=WQi1nZfKqG6aqGvjYcF1M96/A4e1UDQzokLppKP8CS6Cf3WS8Og4sh/FQRsrjsm2ku /L3vVHVj4vjZozZZQRJkzpt2IbbOoFn9kyIqt7IITRCGLEDHOS+KuEbi9kH9ZdrCH6ja SrA/B1G36VFxdNLVvsP5cStKTwWYare6fHELSG6HQ/j0VA8REKSxUwBdq18Ab8300nPi hoxohtBzULiSqiFNmOE0/5DeIiGgPSOMXjeYnqith9Yt+/RnzXO8LkVUiUmg9v7wrsod Bua+Dv1oUzfVQZGi5TYvKWGTAvxJptnhknc9h1Cf5YcCKbaLp0in0oXoevbssEMJzuLs t/kQ== 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=g7OHmX+Fn0YQ9LDj5tyXTuTZIKCwOaLL3Q6vf59vlRJkd9SpYJnI8jJ1tb6hZ5IJdH AYMbgE9EzoQ/4cHkPL6sPiGZbFDsRG9sGkoen1/ZnN1sNwn4wIOThP3NIWMysEI/DSPq tLC0VPNge3Fu1vqdFcjbJAP6NQiobgv/vUjoDFtgMd6uyAwuoNM4+2PQd7IyYNEnG4EK j/2NbuINOImBhlpLj1H3WgkMB9fBmLpST/Gf5gIQ0ewgHlElf4uoxD/nw7dJSGtqiUsO PlDNx7dey0wC8g90dB7jHrQh7t73I81r51neXOm+9351Pc+wnnQGKMmpSu1OudwJOYXQ b0iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=JSOp83f7; 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 s10-v6si73142edq.393.2018.09.26.11.07.57; Wed, 26 Sep 2018 11:07:57 -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=JSOp83f7; 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 B129D1B4CC; Wed, 26 Sep 2018 20:06:21 +0200 (CEST) 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 <dev@dpdk.org>; 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 <shreyansh.jain@nxp.com> To: dev@dpdk.org, ferruh.yigit@intel.com Cc: thomas@monjalon.net, Hemant Agrawal <hemant.agrawal@nxp.com> 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: <AM6PR04MB4679714AD0059AA6C0EAFB2E90150@AM6PR04MB4679.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)(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?= vENN1+RkbXXG+MWK3d2t2WDW1DbG0vFo45VziyLcAt1P9Hsutl721Ai764HhHX9dfO83/yAw/Sj55fU6u7nD00+whNLlYGzSzGbxiLsRq+/ajcQu5wkGmt8DFDkOTl7FpeTIpA3xW4e3RN/8BmFYvYX5Gpazd3DDyYZAatVP+XEfW/IxGMM0cOkU1985W/LqPRoFL07YI9tpO6f85PWugwjq3LXhhJE1B6cLiGX8PBxPpQgn8n9IyhmjqU6Cp6iWY3OYiG89DgpdP2KUBESwSgoPsfMIG3cpGn+XXVzxJf4s6a/f0bHbpqXT/uq/+HbjcPKs+IJPw7sZL/VZfdsAYA7BOxHurxQgNoNXin/Cj7BqHI+nYD4U150Dr4JOvmZc+vWLjW7hbL+FAD9d9w2Xsq2kqvBUrDzyExAaEvdKySopG1V7g0er/K0SOhACo2SZABmNQ41GwgdairStpNEzqEYHsEPTU/s3riK1wshmBGh2Gkl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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 <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 |
[v2,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))