From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0048.outbound.protection.outlook.com [104.47.32.48]) by dpdk.org (Postfix) with ESMTP id 207DB1B1BD for ; Tue, 10 Oct 2017 18:50:07 +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; bh=7YiW6pjf4938eRPx9G0PltLY9vlLjUiealopwd21A3o=; b=onYqAjvYoSus/9gun3MXCUvoo0S68iVGDulSstutlPv/Fx71GFPmlggvuaqKjP6LYcgjAWpwmfqYUxjBzCsHkVIAGMIfj8Dd0SHVyoogI+1QEtwa+9eBT17AY3peYVu5vEjcq07AR3aDq7c2FGP0SiBOrmyDnlpg+puV+vzcehk= Received: from jerin (171.61.81.39) by CO2PR07MB2518.namprd07.prod.outlook.com (10.166.200.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Tue, 10 Oct 2017 16:50:03 +0000 Date: Tue, 10 Oct 2017 22:19:44 +0530 From: Jerin Jacob To: Nikhil Rao Cc: bruce.richardson@intel.com, dev@dpdk.org Message-ID: <20171010164943.GA4910@jerin> References: <1507674097-19597-1-git-send-email-nikhil.rao@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1507674097-19597-1-git-send-email-nikhil.rao@intel.com> User-Agent: Mutt/1.9.1 (2017-09-22) X-Originating-IP: [171.61.81.39] X-ClientProxiedBy: BMXPR01CA0016.INDPRD01.PROD.OUTLOOK.COM (10.174.214.154) To CO2PR07MB2518.namprd07.prod.outlook.com (10.166.200.152) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5962c6b7-7afa-47ad-09e8-08d50ffef54b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:CO2PR07MB2518; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2518; 3:Mhxu+fPP3XPt1Em6C+3GkhLFofnJ3nWyI2BoXewy23Fem6ObM7I+z9yzREXSfLMeuryZO+5OtVNmpGXVCRuhQITVi0S4rkcbGlqSSUTqdkwcDqlBV33S+urCKkjbq7/e0p2u4mbk+L+RiIvoVaO3UQh2HnzSL1BL7raa7DfG09eMvG0cZCJCL+KDwkwRVYLdjzaDpREkgmFGsVgDRIARSzRf+XJSETEGUWE528CQKx9cHJR1muRcRIK3iBLCnKRo; 25:vkUNyqY5mrk36qeSMhnv3JcogYWp7vECHFKMvBaDdUhRA+VQudndfZhm7bGRX1H3rX2bUzedPn/B7AWjcTuUhkAW8sxNhZ+PUhdXwY6M5w1tgNpgaLPbA6Gi7PQQ2rjpk1vfh0PQgn9esz5RzvlW/ZXAca6vwO6IEnfOMUFuTx7PWdm41AdVg3+ap30+cNZlMB7W39N1Vbg0DxNqz+YAa/Y6i4bb3bcBeosUSq63Ar1yOiSM6xCxwAVmjKSlJe9JFLJ+0yFp43L3OwQ0IDhoVjEkqhCrxzyCh16zL13PoaACvPsBLwNn7QA/AY0ULyuGyaoJ5jAFEiWx89h/+H6iPA==; 31:M74ViN1l6PC5Ahg0YdTHy4zP1moKyfJZFhA4uDNvrZ3BaEXKO4rUWwefJqPD3QbXvYzwQvem+ySJVIl1Drkp2RxDDf+X7gyqAWvNewn01ktAb/7O5ZE0Jyr9CyyZZLbTNZqWJOprlcep55kZBWISPUifWMsk41AQNkYiEq0ugGo21MIlaYIbdNDou6NNlCNyvroXoZhCaWL2BZxSmq+4/a+muf9bV8sz53Aiy6Bfgiw= X-MS-TrafficTypeDiagnostic: CO2PR07MB2518: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2518; 20:h6Tbt7RxEo1bx+lnAPNP7frTXepPQ7Lh1i3IZgkwCRUX6URX6904S/2Mft/p+aQ4rvH159esIb3+K8FMSQSE5532l5PWPegue3rWcBJN2nBYSs9jioKkvFvgWtiKODea49lEsd+xHM1BYIPXWj8ZxExRbqpznRPbwsbTCgPNoeSuQCP5Ax2Ztqx6eUpFRniDjVnayrhqRWrmgzGsy6jTleV7bMCFtXwaxOm94rUbIU86Q3erTr6ezHMhsMjEFVFDia7AXovbUnNLy/9KfC/DUiNmOfwHWekSQxplOD95eotsw/VsgSQgxRHGRvo9FtqOvMevLFgpAP1QP3ECy6DICY5wvugScFuw8aO6fV/Qcmo4caSRzw/ViSp4vxwNS58txwP4lN+yGuixYHRevwW7p5dPKGrv1x3eQDO3TjRprjUjFw7CcyIvfamQjgz6PZytxHfmJZWSdGt+xV/Tq1JAYwhhscVEzEDDli9aYNHBr9hkveQfwWGVslA+0xST3nu0QZ3OUhb4k+nvBioPSq8MCQkf7pEfNO9tcCKWZXQZsRbxIFY8hGpLTn6D01Gm2giD3AQKJSTQh7E+ayl59lpruXQUMcbarFAfICACUiJbPLo= X-Exchange-Antispam-Report-Test: UriScan:(278428928389397)(788757137089)(228905959029699); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(93006095)(10201501046)(3002001)(6041248)(20161123564025)(20161123560025)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CO2PR07MB2518; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CO2PR07MB2518; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2518; 4:iqRaB5KAQL+bW53+gWWi4mVy30oQmA7SC7P0FydyqpcjiuHHfJ85gGI5Qkm3vtSc2kdcJTBFjkdRuZf8VLq+xwigtEnU8lC8n2hXtTCc6kueveR1Y2ScMuAk8GrQ1Cy85NqpmuRRpXm+eco6yPX8q/Bo+AA1fP438bMkh69okL1S9VPrkHEacXPbxzwTaGrhqaPJQbLDHI30rsmR1Gq0bfK774sG6TaPY/r1SepQSvtQjbEVzWKSVB1f79llS0/i00aGVdY9yOx4NsgWAKoSseP0lRPn5uLDOL/Q01Kpfq5vg7A2v8CTQKIsn/d4f86TrryaHRUy6oUWtQDqqoVLNVazZmTnSzvxLhwHtT74d6M= X-Forefront-PRVS: 04569283F9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(376002)(199003)(13464003)(189002)(316002)(47776003)(81166006)(50986999)(54356999)(81156014)(66066001)(7736002)(76176999)(68736007)(23726003)(6116002)(8676002)(101416001)(2906002)(229853002)(33656002)(42882006)(53376002)(478600001)(2950100002)(97736004)(8936002)(33716001)(6916009)(106356001)(50466002)(25786009)(3846002)(966005)(16526018)(6246003)(6306002)(55016002)(9686003)(1076002)(58126008)(105586002)(53936002)(83506001)(305945005)(189998001)(72206003)(6666003)(16586007)(5660300001)(4326008)(6496005)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR07MB2518; H:jerin; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR07MB2518; 23:nFWn33NVezagQf+rqmTXLtAsnpcPUHKQEuSuXvhrI?= =?us-ascii?Q?HLo3k3zgqxmA+DKDiz1ewWhxzOocE81jXyf8mAj1jKpGWL6mmfGEvWjgSdlD?= =?us-ascii?Q?HQbFMQ/0e62oiwRX+1IthJZ9UtenAYrmveAPs3IaXYY51vl5zr7EL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efZ+F1FOYO+8vf/GHvdnIYRwx/pJiID5uFxR9Mz3lWcTOpnkbu0e6T8CYJB2G/nZJ7qzttnZZDzPZDIcaDDo49ooncmPeKRBhVRRxGCNLJIlIb+gc8gxnYR+5tPNWYH+c92J+Qxxvs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Oct 2017 16:50:03.8144 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB2518 Subject: Re: [dpdk-dev] [PATCH v6 0/7] eventdev: cover letter: eth Rx 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: Tue, 10 Oct 2017 16:50:08 -0000 -----Original Message----- > Date: Wed, 11 Oct 2017 03:51:30 +0530 > From: Nikhil Rao > To: jerin.jacob@caviumnetworks.com, bruce.richardson@intel.com > CC: dev@dpdk.org > Subject: [PATCH v6 0/7] eventdev: cover letter: eth Rx adapter > X-Mailer: git-send-email 2.7.4 > > Eventdev-based networking applications require a component to dequeue > packets from NIC Rx queues and inject them into eventdev queues[1]. While > some platforms (e.g. Cavium Octeontx) do this operation in hardware, other > platforms use software. > > This patchset introduces an ethernet Rx event adapter that dequeues packets > from ethernet devices and enqueues them to event devices. This patch is based on > a previous RFC[2] and supercedes [3], the main difference being that > this version implements a common abstraction for HW and SW based packet transfers. > > The adapter is designed to work with the EAL service core[4] for SW based > packet transfers. An eventdev PMD callback is used to determine that SW > based packet transfer service is required. The application can discover > and configure the service with a core mask using rte_service APIs. > > The adapter can service multiple ethernet devices and queues. For SW based > packet transfers each queue is configured with a servicing weight to > control the relative frequency with which the adapter polls the queue, > and the event fields to use when constructing packet events. The adapter > has two modes for programming an event's flow ID: use a static per-queue > user-specified value or use the RSS hash. > > A detailed description of the adapter is contained in the header's > comments. > > [1] http://dpdk.org/ml/archives/dev/2017-May/065341.html > [2] http://dpdk.org/ml/archives/dev/2017-May/065539.html > [3] http://dpdk.org/ml/archives/dev/2017-July/070452.html > [4] http://dpdk.org/ml/archives/dev/2017-July/069782.html > > v3: > - This patch extends the V2 implementation with some changes to > provide a common API across HW & SW packet transfer mechanisms from > the eth devices to the event devices. > - Introduces a caps API that is used by the apps and the Rx > adapter to configure the packet transfer path. > - Adds an API to retrieve the service ID of the service function. > (if one is used by the adapter) > > v4: > - Unit test fixes (Santosh Shukla) > - Pass ethernet device pointer to eventdev callback functions > instead of ethernet port ID. (Nipun Gupta) > - Check for existence of stats callback before invocation (Nipun Gupta) > - Various code cleanups (Harry Van Haaren) > > v5: > - Add RTE_EVENT_TYPE_ETH_RX_ADAPTER (Jerin) > - Add header to documentation build (Jerin) > - Split patch series into smaller patches (Jerin) > - Replace RTE_EVENT_ETH_RX_ADAPTER_CAP_FLOW_ID with > RTE_EVENT_ETH_RX_ADAPTER_CAP_OVERRIDE_FLOW_ID (Jerin) > - If eth_rx_adapter_caps_get PMD callback isn't implemented > return zeored caps (Jerin) > - Replace RTE_EVENT_ETH_RX_ADAPTER_CAP_SINGLE_EVENTQ with > RTE_EVENT_ETH_RX_ADAPTER_CAP_MULTI_EVENTQ (Jerin) > - Replace RTE_MAX_EVENT_ETH_RX_ADAPTER_INSTANCE with > RTE_EVENT_ETH_RX_ADAPTER_MAX_INSTANCE (Jerin) > - Move rss_key_be to per adapter memory > - Various other fixes (Jerin) > - Test fixes for mempool (Santosh) > - Change order for event v/s eth port init in test app (Pavan) > > v6: > - Fixed out of scope variable in rte_event_eth_rx_adapter.c (Pavan) > - Add #define for RSS_KEY_SIZE in rte_event_eth_rx_adapter.c (Pavan) > - Doxygen and git log fixes (Jerin) > > Nikhil Rao (7): Applied to dpdk-next-eventdev/master. Thanks. Please update the release notes and send the programmer guide document as discussed.