From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0040.outbound.protection.outlook.com [104.47.1.40]) by dpdk.org (Postfix) with ESMTP id 844C01BED9 for ; Fri, 6 Jul 2018 07:29:13 +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=6my3lj/LQmm/sFS5aSrUr+8ar8i99S/yGysFYmacoYU=; b=EFGH7RciNRMrxGBac1v+xnQ2l60cLRuUhWJQwCBSDWQV2628QvVmll4Y1pE1TbbweJujdBbMfAhgFLU5yio2DnqbLU1FMITFwS1RDUB4Me9+HW7ZXjkienBTttWZW/+2g4+arZZu5xvYoXluLrurHQO3cn6YTUnkN+bXqT06+kA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from [10.232.14.39] (14.142.187.166) by DB7PR04MB4683.eurprd04.prod.outlook.com (2603:10a6:5:37::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.930.20; Fri, 6 Jul 2018 05:29:11 +0000 To: Hemant Agrawal , dev@dpdk.org References: <1529574244-18997-1-git-send-email-hemant.agrawal@nxp.com> <1530697431-1244-1-git-send-email-hemant.agrawal@nxp.com> <1530697431-1244-9-git-send-email-hemant.agrawal@nxp.com> From: Shreyansh Jain Message-ID: <94f38fe4-05f5-584d-5bd5-ca55fcfb798b@nxp.com> Date: Fri, 6 Jul 2018 10:58:48 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <1530697431-1244-9-git-send-email-hemant.agrawal@nxp.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0043.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::29) To DB7PR04MB4683.eurprd04.prod.outlook.com (2603:10a6:5:37::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0dbadc37-1706-4be4-a1db-08d5e3016812 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(48565401081)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:DB7PR04MB4683; X-Microsoft-Exchange-Diagnostics: 1; DB7PR04MB4683; 3:xDZT1EifJgSp+cSpzDTD0trHf2IX7lypEeeZzkF2nICYPu6pp6jyJqnPFPzqq6rBuWvz34Q/4b0aLZr3++FAo/TVvOrnB1CcoC00fFMy6NnTFGCer9kRAgddX/+IDO4vfxl8awvIDbkSjKqlHTRi7Imh/H71ASo/sNhmKu11aAbYP198HwsWLosaXKWPvRNsFIASpjVf390G3ErTUiMHmUegMpD+NFJsM41FJhO+TkoFy1MjUADIdPNJwVUHsjRU; 25:mnRVn8Rjw9pi7lkLDfII/mtI33CIpUJfhtHL5uSfsWKKUX1v/Vp1ayg5vQDLsLtLBq+iQJlnMmwjHQUfc0qadw40hGQK9x3QkArkzTGSBi2dFUfxOPT8MLDi+eyB69sRuFNRUt2/X+XMV2G1IgUI0zaRJJbFyShXBOqQ9Kv7qzSkAbW1lfRnroUavr1/KQsSzhm+clfCxXfh/CzVaVReA0PBa2njPd8B7lAZUuQnIhPiVlO6zb1tysXhCKXKY1F5ZzZvsl4HMImZ7jX/m2RtIPVluLIHUtxnsgQ9IWFNK/QFs+z8TXahPfyh0uh4iAgM9hAxuGn2JHsKTG4DJVwYcA==; 31:ZPxh33Xxbcrd1P8ci4x3ulAO2cJrvd8wNPf3u+0HOX1rCD+0tf0U+0SqEn4CgWP0WN9ACGoY46lgSb6PNf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onkvDht/V/v+0Ca/e8H0= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); 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)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:DB7PR04MB4683; BCL:0; PCL:0; RULEID:; SRVR:DB7PR04MB4683; X-Forefront-PRVS: 0725D9E8D0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6049001)(346002)(376002)(136003)(396003)(366004)(39860400002)(199004)(189003)(25786009)(67846002)(36756003)(64126003)(386003)(105586002)(106356001)(86362001)(58126008)(53936002)(316002)(31686004)(47776003)(14444005)(2906002)(65956001)(6486002)(66066001)(229853002)(65806001)(23676004)(97736004)(3846002)(6116002)(31696002)(7736002)(230700001)(5009440100003)(6666003)(16526019)(55236004)(68736007)(8936002)(186003)(50466002)(52116002)(478600001)(65826007)(2486003)(52146003)(8676002)(11346002)(6246003)(2616005)(446003)(305945005)(956004)(76176011)(5660300001)(81156014)(486006)(81166006)(476003)(26005)(77096007)(44832011)(16576012)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR04MB4683; H:[10.232.14.39]; 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: =?utf-8?B?MTtEQjdQUjA0TUI0NjgzOzIzOml3OUhsMDRFN1ZWS3MxK3R1aGRTemRTcy9W?= =?utf-8?B?NUpXOExFK1BiRlRGai9JNEYzeHRPSFNMc1hodkJ4WDU5WWk0VG1BSG9Uajgv?= =?utf-8?B?aVdJZGx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FFqDVyOLLicKQNFieUO43Ik1WeWkOiQyIaRJyUX/aNOkZOt23ptOY2g7dHxgVeXIVF0wAkBBWH29RUXdljvsI2qdiA1pdfno5/XA3xkPrU/LvrIO1WF9DCcy9e3QHKoF0lej2tLea/k=; 24:nZWTgdk59HDAK/Hg8cvWcrIXQTEWEbbB4IR2wmtPLumKakM2ZciUUoD2VxfdqxOUIjVXznQYrM8eNM00H66YnV04Q4psjbjfyLnaCo9yuP0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB7PR04MB4683; 7:1C5QeRpUrf+e43qqvvQ8FJ/kBGgJpH//MCL6jICgUqT/2tnGWNiC9lsU6ch8hEYoZ33gQXc98fQZXHZRgQec3sfm/6EXTW3CO25vxRe2TyHJJ/x1ElnL/ZgaO45yCmC2oFkHfCjUPz20o/BHSooYKnGetOStvecMZDfey88B7vslhiRKaFV4QKxltiaRHNdXEuf0PqD14xwD3Wv0NRoVJFLD2vuinDvgzLHi2yzDhqLn06pY6MRFNXrZjHN+MNFD X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2018 05:29:11.6922 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0dbadc37-1706-4be4-a1db-08d5e3016812 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4683 Subject: Re: [dpdk-dev] [PATCH v2 09/16] net/dpaa: support default queue mode 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, 06 Jul 2018 05:29:13 -0000 On Wednesday 04 July 2018 03:13 PM, Hemant Agrawal wrote: > In case DPAA FMAN configuration tool (FMC) is not available. > System can still work with default queue. (1 queue per port). The commit message needs to reflect the fact this patch is also fixing some debugging logs which has not relation with default queue. Or, the patch should be split. Also, the commit message can be rephrased for grammatical correctness: "In case DPAA FMAN configuration tool is not availble, the system can still work with default queues (1 queue per port)." > > Signed-off-by: Hemant Agrawal > --- > drivers/net/dpaa/dpaa_ethdev.c | 37 ++++++++++++++++++++++++++----------- > 1 file changed, 26 insertions(+), 11 deletions(-) > > diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c > index 79ba6bd..def9483 100644 > --- a/drivers/net/dpaa/dpaa_ethdev.c > +++ b/drivers/net/dpaa/dpaa_ethdev.c > @@ -74,6 +74,7 @@ static uint64_t dev_tx_offloads_nodis = > > /* Keep track of whether QMAN and BMAN have been globally initialized */ > static int is_global_init; > +static int default_q; /* use default queue - FMC is not executed*/ > /* At present we only allow up to 4 push mode queues as default - as each of > * this queue need dedicated portal and we are short of portals. > */ > @@ -1026,12 +1027,12 @@ static int dpaa_rx_queue_init(struct qman_fq *fq, struct qman_cgr *cgr_rx, > > ret = qman_reserve_fqid(fqid); > if (ret) { > - DPAA_PMD_ERR("reserve rx fqid %d failed with ret: %d", > + DPAA_PMD_ERR("reserve rx fqid 0x%x failed with ret: %d", > fqid, ret); > return -EINVAL; > } > > - DPAA_PMD_DEBUG("creating rx fq %p, fqid %d", fq, fqid); > + DPAA_PMD_DEBUG("creating rx fq %p, fqid 0x%x", fq, fqid); > ret = qman_create_fq(fqid, QMAN_FQ_FLAG_NO_ENQUEUE, fq); > if (ret) { > DPAA_PMD_ERR("create rx fqid 0x%x failed with ret: %d", > @@ -1050,7 +1051,7 @@ static int dpaa_rx_queue_init(struct qman_fq *fq, struct qman_cgr *cgr_rx, > &cgr_opts); > if (ret) { > DPAA_PMD_WARN( > - "rx taildrop init fail on rx fqid %d (ret=%d)", > + "rx taildrop init fail on rx fqid 0x%x(ret=%d)", > fqid, ret); > goto without_cgr; > } > @@ -1061,7 +1062,7 @@ static int dpaa_rx_queue_init(struct qman_fq *fq, struct qman_cgr *cgr_rx, > without_cgr: > ret = qman_init_fq(fq, flags, &opts); > if (ret) > - DPAA_PMD_ERR("init rx fqid %d failed with ret: %d", fqid, ret); > + DPAA_PMD_ERR("init rx fqid 0x%x failed with ret:%d", fqid, ret); > return ret; > } > > @@ -1089,10 +1090,10 @@ static int dpaa_tx_queue_init(struct qman_fq *fq, > /* no tx-confirmation */ > opts.fqd.context_a.hi = 0x80000000 | fman_dealloc_bufs_mask_hi; > opts.fqd.context_a.lo = 0 | fman_dealloc_bufs_mask_lo; > - DPAA_PMD_DEBUG("init tx fq %p, fqid %d", fq, fq->fqid); > + DPAA_PMD_DEBUG("init tx fq %p, fqid 0x%x", fq, fq->fqid); > ret = qman_init_fq(fq, QMAN_INITFQ_FLAG_SCHED, &opts); > if (ret) > - DPAA_PMD_ERR("init tx fqid %d failed %d", fq->fqid, ret); > + DPAA_PMD_ERR("init tx fqid 0x%x failed %d", fq->fqid, ret); > return ret; > } > All the above are not linked to default queue mode changes. [...]