From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0072.outbound.protection.outlook.com [104.47.32.72]) by dpdk.org (Postfix) with ESMTP id 5FBA3F04 for ; Fri, 21 Sep 2018 07:04:46 +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=AVvbC43Rhy5BqXSSChvgJYgbFHGb3BoPmG0Acmtd6MI=; b=XJiFGzPRAZTbn0oMgw68jR3QSY/KRlSVxagZ+PcN8gM67YWW7J24VA51TxKFTbyQChlad+eQeSiryq3csjhykyPrDn9XcvpGQrwl2XPFzKEPUxAAv02+qnHluH9k53EUyKIjJvT7CB0kxD9Au5CAXBXWLrAJCE2pZrVirIirlx4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (115.113.156.3) by BYAPR07MB4997.namprd07.prod.outlook.com (2603:10b6:a03:5b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.17; Fri, 21 Sep 2018 05:04:41 +0000 Date: Fri, 21 Sep 2018 10:34:27 +0530 From: Jerin Jacob To: Nikhil Rao Cc: olivier.matz@6wind.com, marko.kovacevic@intel.com, john.mcnamara@intel.com, dev@dpdk.org Message-ID: <20180921050425.GA7666@jerin> References: <1535694069-88757-1-git-send-email-nikhil.rao@intel.com> <1537465276-77264-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: <1537465276-77264-1-git-send-email-nikhil.rao@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Originating-IP: [115.113.156.3] X-ClientProxiedBy: BM1PR0101CA0010.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::20) To BYAPR07MB4997.namprd07.prod.outlook.com (2603:10b6:a03:5b::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c39be922-b298-4b5f-48bc-08d61f7fbecb X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BYAPR07MB4997; X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4997; 3:T2+W3g7vXzXW9U0AxJOnAEsUx0p4ywoEloj1KY0UAWqd+WKbt1d6R3GbCRpRhUWiyPO2y5VDl98VXKsb1Z5ONNy099RSDd5AtMkam0i1H00H8VFv8T9Mld9MGD0rohBgMzCaYX9mUpuhsjM1gGdzejidxzA365REWilwDW9qaLsRG0O7MHAEPCW09C2C1RWcGy7MyaBZccFJ3FCOI3WC9V0m7bzhBxdzRW9edARs1QM4qToBL4Qd0QmH1r0P/gW8; 25:LpoOnURcRfTLoQGrJx++BAnnO/ztdFNgG06Zkm1gipiBji3Y8Z1gZYEX3vBV83N7DGbf/k9qx9SthRZixkVFMkVxLXq4ExqdNnkPOl+w2EKLwLYe1Ckbz2k8ucELg59CfpU5JgyXUoS8dJfGoCJiiGFF5wWnQONloWTFi6Yqsq+d6WSwUEfsDySceIlQ1eenooCfPGyvIwFbUDQcFa0b7fkshgytrAQNwHnSBBdhfk4exMdhK/ouTefwvFJJl+ET5BALJ3CKj5Fhrm4zyn4LR4b8AIBAI6uEfbl0kOk6Tsl3sD8S22vA9gvxI6iIdXce+pckDAB/5tMfRj8YARRZ5A==; 31:IdylgegfMSnvAPfPjJY2CaXLRdANbH5KLKglzKMbU0SOfnTHXWICTU4rd92hFmJ6QoZ+45huIG5KAqJ3f3JAWyNb5HHRf1RoDeLMezDysLq8GL5J7I3TQ2VSqrN6RarFfkWkA3e/gl9WoQk87kR6a+SYFO34txKL6/D+nYhYJywlS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k X-Microsoft-Antispam-PRVS: 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)(8121501046)(5005006)(3231355)(944501410)(52105095)(93006095)(10201501046)(3002001)(149027)(150027)(6041310)(20161123560045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(201708071742011)(7699051); SRVR:BYAPR07MB4997; BCL:0; PCL:0; RULEID:; SRVR:BYAPR07MB4997; X-Forefront-PRVS: 0802ADD973 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(346002)(136003)(376002)(396003)(39860400002)(13464003)(189003)(199004)(52116002)(8936002)(16526019)(486006)(6116002)(1076002)(956004)(229853002)(305945005)(58126008)(33656002)(16586007)(5660300001)(186003)(386003)(53936002)(42882007)(9686003)(105586002)(26005)(25786009)(3846002)(33716001)(50466002)(11346002)(44832011)(446003)(55016002)(316002)(2906002)(68736007)(106356001)(23726003)(476003)(76176011)(478600001)(72206003)(4326008)(6246003)(81156014)(6916009)(97736004)(6496006)(81166006)(8676002)(6666003)(47776003)(7736002)(33896004)(66066001)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR07MB4997; 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; BYAPR07MB4997; 23:l7b1mHVs+WXAD4DfZZvyY7Qd4qZGMcH4DNQ15bosP?= =?us-ascii?Q?9czCLgYa8Ag0Ts+Mv4N5FZj9K0zGZbBvqJ3vA2gfjwDYXVeMQJ/tmfzthmFz?= =?us-ascii?Q?JCk8Y3n0OOO2MVUyjg0maxCQAg08M+4NwEsVWWQt7Ep7JlMjkfQsklO+8738?= =?us-ascii?Q?wSXNqkdfhNkmj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BUiNQjhYCBo1sPbxtA+fTIJP43qyLpZG82acJF+2UNtcDVqYXaJnEPBrHsa+bWQY/TWLCMu1vlXYjSlROfbXPpRQ2xRSUp5pk8BNIf+AkW87PMSIl+8A/JOd8dmmcy7w1K73o67NEK6ClN8zioUxljW0t65w==; 5:q3TSCoBol+hrxOSAr7pP7W0tDkE78SGSeeF7Axt4+eACyKN2fcvcugcaC5mra6uGAU5GvYjFgEoNyxXut9E5jphCARzHqU4IbuuPTagVoAimh0XJ87iOu5NfnGpxgMZ08FVONlNYKe2OjiP/T+oYTI6CJTD6esT+OiMhcMkkB5o=; 7:WYvmoUy2v/tT+I/9Fu8ex/dFYaoRYfw5AsJWHCKSyWViH86MiDwty3iyJx4rfvvypnjzDDdNpPYyc36FU6CMwR8Hd7/tAf4+Q0TJ7PywbwOW7AmQeHU1I9U8nanY98m1XQl4g5C+sxoHTs+rsznOm1anr4LEQ/EQQ5qmwH/alGGOMFdaP/f3Uq0ei7PkqmAHUBTa8nUjReLrkqMISGBDPpGdC4SbWTIqQQZCEKDh2g5ho37pb4gucv4DgMefhMI9 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Sep 2018 05:04:41.8468 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c39be922-b298-4b5f-48bc-08d61f7fbecb X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB4997 Subject: Re: [dpdk-dev] [PATCH v4 1/5] eventdev: add eth Tx adapter APIs 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, 21 Sep 2018 05:04:46 -0000 -----Original Message----- > Date: Thu, 20 Sep 2018 23:11:12 +0530 > From: Nikhil Rao > To: jerin.jacob@caviumnetworks.com, olivier.matz@6wind.com, > marko.kovacevic@intel.com, john.mcnamara@intel.com > CC: dev@dpdk.org, Nikhil Rao > Subject: [PATCH v4 1/5] eventdev: add eth Tx adapter APIs > X-Mailer: git-send-email 1.8.3.1 > > The ethernet Tx adapter abstracts the transmit stage of an > event driven packet processing application. The transmit > stage may be implemented with eventdev PMD support or use a > rte_service function implemented in the adapter. These APIs > provide a common configuration and control interface and > an transmit API for the eventdev PMD implementation. > > The transmit port is specified using mbuf::port. The transmit > queue is specified using the rte_event_eth_tx_adapter_txq_set() > function. > > Signed-off-by: Nikhil Rao > Acked-by: Jerin Jacob > --- > lib/librte_eventdev/rte_event_eth_tx_adapter.h | 462 +++++++++++++++++++++++++ > lib/librte_mbuf/rte_mbuf.h | 5 +- > diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h > index a50b05c..b47a5c5 100644 > --- a/lib/librte_mbuf/rte_mbuf.h > +++ b/lib/librte_mbuf/rte_mbuf.h > @@ -464,7 +464,9 @@ struct rte_mbuf { > }; > uint16_t nb_segs; /**< Number of segments. */ > > - /** Input port (16 bits to support more than 256 virtual ports). */ > + /** Input port (16 bits to support more than 256 virtual ports). > + * The event eth Tx adapter uses this field to specify the output port. > + */ > uint16_t port; > > uint64_t ol_flags; /**< Offload features. */ > @@ -530,6 +532,7 @@ struct rte_mbuf { > struct { > uint32_t lo; > uint32_t hi; > + /**< @see rte_event_eth_tx_adapter_txq_set */ > } sched; /**< Hierarchical scheduler */ > uint32_t usr; /**< User defined tags. See rte_distributor_process() */ > } hash; /**< hash information */ Olivier, I am planning to take this patch into next-eventdev tree. Could you please let us know, if you any comments on above "comments" additions to lib/librte_mbuf/rte_mbuf.h. If there is any minor one, I can do it on apply or if it major one Nikhil can send the next version. Let us know. /Jerin