From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0082.outbound.protection.outlook.com [104.47.36.82]) by dpdk.org (Postfix) with ESMTP id 8B5FC2C5 for ; Sun, 19 Aug 2018 12:45:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MhPmVeaprB8kxjH7gAOL9JAlRZhvcrXkH4L29+zaVHM=; b=A/LkNnTgPvdm5dpFvhH4g9ygP6ho0i/elXxItUtPvYfZYWXuS0BQVqJ4aehwy4U1ptiAnxGgaVr0QfAter05IDDP5h1+5KeQhxf2D3gGy/ZGphVc+jdHEt4bLiojdf2LSbpNCYQQuAIXoE83C1/qwNy2jPN/4U3dRiBVpzT0Mew= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (106.200.237.61) by SN6PR07MB5008.namprd07.prod.outlook.com (2603:10b6:805:ad::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1059.22; Sun, 19 Aug 2018 10:45:51 +0000 Date: Sun, 19 Aug 2018 16:15:35 +0530 From: Jerin Jacob To: Nikhil Rao Cc: olivier.matz@6wind.com, dev@dpdk.org Message-ID: <20180819104534.GB11085@jerin> References: <1534479652-80182-1-git-send-email-nikhil.rao@intel.com> <1534479652-80182-2-git-send-email-nikhil.rao@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1534479652-80182-2-git-send-email-nikhil.rao@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Originating-IP: [106.200.237.61] X-ClientProxiedBy: PN1PR01CA0111.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00::27) To SN6PR07MB5008.namprd07.prod.outlook.com (2603:10b6:805:ad::10) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5a40af98-7052-478c-cd70-08d605c0efdd X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:SN6PR07MB5008; X-Microsoft-Exchange-Diagnostics: 1; SN6PR07MB5008; 3:4OcRhEAY1XKUjFVz/ABheNQRuTAUGj6xRA9/PDSPprLAFqcQuv1fcTkPvIjYODNuoRFdBV9pjYBvKBUVaqZB+WNd8WysxFt5b/XK5tV0Cfe+5lDOiiPO24NN7zco7Ku4bjnNMkraoLj+D113dxgN+j12O7YLHWu2hvHuq7B5A2yswmSCB4g6ZFI1nf5CJecKurCq7k2cM6YffJNBhCoGFGkG9Ye31s5mwMgrydt2/rNe8rwRbjfKOvdOv+wNayGv; 25:0feH4bGsPGERXiWxxUNtCGnDyplrZXjrFpo7XR4LsGONVvYSIlXkvnvRfBjaGLrFgKAsJrUHATiQAXZNE6LwR9shFeKuIu98QpEzoN9KwAE1T4uiNHDPB2pgOVhaQIVIXgP8iE8KpAg+5wxVAjVVDyN7P/nfh0Tml7BAMG2o1Tc/LbfJszgenbpeeBVIzRZ/DRF5P6YSCnFH6USi7JhxEVXz8KtXODWo0LlTCwdABrsWEdVlXfim1x+saQilD8jwJ2jvGfMYIsBIyPwaTKjgSGqvg2GcsfoBUDf1MSgcux3t78CenkEQnyrQnMl6J980ENpaMO1OoW9JaAaYXhDtSQ==; 31:AOH/wtQdtQw5Ba1cwF9OS3iFXbU9y01hQKU2V8+NuKqDGB49V7JvaHZXDFQIp29DFvcgbC8ONdCvfvOy/hLitOt6LMIcUx3ZgnngcwJKi7Ch5SDYlHpblry65TBsAzgRV/1vHjEdN8uuYnCBHqkao9Fh5uPXiL0P1L4wbkQxNRiKxDuGIvMkMBeL0A1BagMP3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X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231311)(944501410)(52105095)(10201501046)(93006095)(3002001)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123562045)(20161123564045)(201708071742011)(7699016); SRVR:SN6PR07MB5008; BCL:0; PCL:0; RULEID:; SRVR:SN6PR07MB5008; X-Forefront-PRVS: 07697999E6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(136003)(376002)(366004)(346002)(396003)(13464003)(189003)(199004)(6666003)(47776003)(72206003)(6916009)(229853002)(486006)(33656002)(478600001)(25786009)(7736002)(42882007)(26005)(33716001)(305945005)(8676002)(8936002)(68736007)(16526019)(476003)(11346002)(66066001)(81166006)(81156014)(5660300001)(50466002)(956004)(9686003)(186003)(55016002)(2906002)(53936002)(105586002)(106356001)(446003)(6496006)(58126008)(16586007)(316002)(5009440100003)(97736004)(52116002)(386003)(3846002)(6246003)(4326008)(6116002)(76176011)(44832011)(23726003)(33896004)(1076002)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN6PR07MB5008; H:jerin; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN6PR07MB5008; 23:qwfICJ9ztYb0oetJc1rsNn6m4m8ENTEqtx/p2iwbb?= =?us-ascii?Q?NzlabzGiEi6qmK1WImxI4ZvLW+dYnSru6/gASGXJSudG9hrBeAg6stuAK8K2?= =?us-ascii?Q?rrQNDI/m5l56gmH5Dce7L8lGr3vWHPyzKZ4njQsJRMOCp++tfHdnVlWSt97c?= =?us-ascii?Q?dSZrHJXw2geFiIscf7s/U7uQ2wT6BRB/Ustdp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YxbBJAjyeexbBb2YAH72H9OCxPV7Fz7U91/PUn9NjshTgeZu+F2DNzpwQ5uvIpL4GjHFEgRTjLvecwg6KOCWC1LwJlnOelq0vsJbrwIRZUCO4OdRywB4PHJbMDPmXeYEnmxON/tkoz+VRDj8mAZoL5xGpXJ/B/FNVLI6WV0XL7ds2DSp9u70cs9ekmxoE7XxaZgVIeNAERynpLB4r19w==; 5:g8WtdDeWpYDVT/pMDp3J4RYehSj/Ri13sr9GlkjIp0NZ7tnr0h8Gzu6bwosSm1mJWkDdZ4LU9RqCE4hl7UjzzrGNQC48iDJ9ruqAytYbJshocGuzTwmcZ9e3EDyVpEsV/Jp0gtNUHq/n+W2sxoReXOXfyZM6Tx8fxbp4RisOLTY=; 7:eeVGnCTYCv08CNWychNgg0CVZ0VhReWdIsyqnW59fouok6PaQoAQS39mrQLLmYSMbWKCcOYioVVqxGOl1/3G4BeacV4mXCLG3+eJaZq75rTtts6tYyzVFSVR1fhPDQOFIKCu9G9qxHc8lUmikJKUVhfVkIyFsTfxxvNprXd4+K12mBnXrgjeGDG/xLLYcNrbwPyoP/Bqz0FI8FJH+IpFdaAE1MkmRWe+r/HMvyOVlUsEK0S8E+kedNPRfJlzO+Sl SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Aug 2018 10:45:51.9172 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5a40af98-7052-478c-cd70-08d605c0efdd X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR07MB5008 Subject: Re: [dpdk-dev] [PATCH v2 2/4] eventdev: add caps API and PMD callbacks for eth Tx adapter 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: Sun, 19 Aug 2018 10:45:56 -0000 -----Original Message----- > Date: Fri, 17 Aug 2018 09:50:50 +0530 > From: Nikhil Rao > To: jerin.jacob@caviumnetworks.com, olivier.matz@6wind.com > CC: dev@dpdk.org, Nikhil Rao > Subject: [PATCH v2 2/4] eventdev: add caps API and PMD callbacks for eth Tx > adapter > X-Mailer: git-send-email 1.8.3.1 > > > The caps API allows the application to query if the transmit > stage is implemented in the eventdev PMD or uses the common > rte_service function. The PMD callbacks support the > eventdev PMD implementation of the adapter. > > Signed-off-by: Nikhil Rao > --- > + > static inline int > rte_event_dev_queue_config(struct rte_eventdev *dev, uint8_t nb_queues) > { > @@ -1275,6 +1300,15 @@ int rte_event_dev_selftest(uint8_t dev_id) > return RTE_EVENT_MAX_DEVS; > } > > @@ -1295,6 +1329,9 @@ struct rte_eventdev * > > eventdev = &rte_eventdevs[dev_id]; > > + if (eventdev->txa_enqueue == NULL) Is this check required, it will be always NULL. Right? if so, Can't we write eventdev->txa_enqueue directly? > + eventdev->txa_enqueue = rte_event_tx_adapter_enqueue; > + With above changes, Acked-by: Jerin Jacob