From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0055.outbound.protection.outlook.com [104.47.34.55]) by dpdk.org (Postfix) with ESMTP id 9FF101B3E1 for ; Thu, 12 Oct 2017 20:46:21 +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=znjGRRVxjhr/Fww+5meDy6Jg/nH2N/WlGAk8Evf4xoQ=; b=Yw+PwXsUGtvMN7OFMbx3xoYtXbO2p5SlBlroPs4oULDQPv99TyLfTR2E0ajaWFJ06Lih8Qcx0I6kqGwgBSFzTeM3TbQDIr8iHhq092ZEu00hpEpuJv5LOkFfkJBy9erv7qO2WOtSKL0b8tHrlXRvX8iW8kWGC6TzOwwzTJO5Vyo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from localhost.localdomain (103.16.71.47) by CY4PR07MB3464.namprd07.prod.outlook.com (10.171.252.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Thu, 12 Oct 2017 18:46:18 +0000 From: Pavan Nikhilesh To: nikhil.rao@intel.com, jerin.jacob@caviumnetworks.com Cc: dev@dpdk.org, Pavan Nikhilesh Date: Fri, 13 Oct 2017 00:15:53 +0530 Message-Id: <1507833953-4396-1-git-send-email-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [103.16.71.47] X-ClientProxiedBy: SG2PR06CA0149.apcprd06.prod.outlook.com (10.175.208.155) To CY4PR07MB3464.namprd07.prod.outlook.com (10.171.252.145) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 31122162-d2a0-43a2-b3d8-08d511a18703 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:CY4PR07MB3464; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3464; 3:GHWlB5lIXXSZdvi0CvvJmfTUMXSm3H5NKSxrmdTn98PB2APSup4rnAYkH/YloGjdbDogT1x5d15l3LshqV9hRMpmvTAhU4wZl7TGcP8njDz6I8NAmZlv/xFZ9UdNWfbza5ytbG4Lbbk07Fn2orTcMkdsSNs5L5l6X+3LlKdqJobAAzL5Uz4Cbf5Gib8Tugfucv8ECVXdeE5DFK5hEZi7Kb66WUK7J4EIC9mKV+3jFcrLtaTYvE1OjeBH0bM4PK3V; 25:Y8LZOs9nmiYydWjMQLomQ3TYarUn3KDoM9wr6Od6ucUUfzduxQYMHain5ZvvPXzH+hVZi/CbOsmB+5MlV2BobdGyp6xlPRjswstq/h3KR7d/s805qjl1KeMVMyNDrtO7vBEIlbsdAEXwFkR3qLnotF0MuWY+rlW+Pf10iOZv/SSfhsR1weLJa2r9uxQjWpVCJpuS1pCsttHX0sGbVIHHZVzMgl71O2rUKMoBXCEaaCMvrKgYAQ138stNZlxJt/PTFY1rMNrLIypCQB6HWl4f96jhIGFAxyp4sBIjI4zVOVTEIFBebqniaUt6EgFef5iyDGZ2XXzU5w/A3z7IOvnKlg==; 31:MwdFmH6WAnlK9uTyfR5D6Dq0tn0vI+IZzrYkGqVvZs06WGDjuwgz+sRPNjewQ2mKYGCBLj538TF8tc/1trxEbQpSHQTzq6WKmdj3nV8ct5l31rRoDfFkXBk/z2ip6TMiNi0dkumQQQCP5jDRQeKYUkQCMCmueiS/uB0nTTNmPuQKpd8JBz5kPCrFl5XYynSlsHMNtlKIRaWNQ+z6M1a0tCBAhHc0P8lva48qBZ6TsGg= X-MS-TrafficTypeDiagnostic: CY4PR07MB3464: X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3464; 20:niGx/0FGjcxBWcIBV621lq48LUOqU9+aE0BZ4+9RCKGmfLBaPNH43E1MPX4bz4zoPnND3OMuAhSX/4WYEi8EmQxoy5PukKNiBopKJ1V6ePZDVrUDtxdjJyxNrM08/7BGHtd+CROOjddO3Kr3dCvZjVrVCQnIR6ai0NDk8oxP893HrhsVqSjs+rioavIp9XbHZJaZzxS2BqRzgGI11qECyPbTvzx2+s3a3CUtPtS4CwKcqvXZCMcli3ScaaHjKL3bqtIvnEtIU034Vi1LiTdO9rVbp7obHlGx5POBlh21XIxef9EcQtLG7nwMjMprQ2kBlV2sXcI/9Ay05FWC0ud4knuUKcE6k3oIfyCAXA1xwf7gfK7kcZXmoM2EknYIKlkcX5R71pfXCE6D9RyUEPNmCgkv9FtY4ht0h/D9griak3vsKtR8LgV4uWlmTuCP/IUG1rScbNjeRm8l0vgdi+9WceZEuTg/ZD1YcLvmSR7RRvxEgCgLpfYPjM5LmssSHA1t80uQTENc0AEbRu23EHRXpvv4mXtFw/pAE2vq5zU4ZHvhriiLi053lSHdDcwxVzw8FXj9UfaPT4DDfb2XJVNhq1SsVF5+sK8O9USqgnAspX0=; 4:OVg15sl9GtNxD86CMFBArzdJ3iMgPSuOV0STZeMcgfz6bbgpqMukvF0lHXUPs6Vef1P+Zpw5Dm1laIN0efHXpIVaZtdgRftxasHnlcVIdglT7aatq28zFe0Zfwya1nlVNT/GnnVGdKHG6gYGGZ2q9rQ/ZbFijsofHtPwy3opWMVAE0pic9bGAoaXcBhd/DjC7QVsi0xzg6DhsYu1odSR6b7gyPPtHmCsgte8Px2+ZWoVOdEvFfyKjeOp2Nrk1TN/ X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(93006095)(10201501046)(100000703101)(100105400095)(3002001)(6041248)(20161123558100)(20161123564025)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR07MB3464; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR07MB3464; X-Forefront-PRVS: 04583CED1A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(6069001)(346002)(376002)(199003)(189002)(16526018)(6512007)(105586002)(97736004)(5003940100001)(50226002)(53936002)(36756003)(106356001)(305945005)(81166006)(47776003)(81156014)(8936002)(189998001)(66066001)(8676002)(48376002)(101416001)(16586007)(7736002)(50986999)(6116002)(6486002)(50466002)(6506006)(316002)(68736007)(33646002)(3846002)(25786009)(5660300001)(42882006)(6666003)(107886003)(6636002)(72206003)(478600001)(2906002)(4326008)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3464; H:localhost.localdomain; 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; CY4PR07MB3464; 23:gm3MQsJO+77XmpFmqi/iNnDmdst3lV1yN/HLyamUf?= =?us-ascii?Q?1bs5E+gzrfh5JI9C/yH/Fr4Fa6W8fmV/bjKBHhfqSJMAFmFsKVlMnzUGq9Ql?= =?us-ascii?Q?hK4pKfLoU6WUBX6eFljYZaV0AnZC4JO8q05PDMfsANWTluPeHJ8Sn1GIjpx8?= =?us-ascii?Q?JQn9+BTaMjm8bMTqetgcADVnxyVZDL512dkfeh84EumlrAdZUJ1xSMSSnMbf?= =?us-ascii?Q?fZL6DMLPedLPxPOCjLwkF/6tb0mAAoqFTJ3D20oBAOlGad2+piiindR6n9BP?= =?us-ascii?Q?ARZvUjD+RkfTj4AtI85Anb76I1Rxc4clYh/v2dNUXep0CNvMYZ8k2YAcLysH?= =?us-ascii?Q?xyo6qcMgA6H7eZygxxCS+jMvzbb9NtFdI/xcfasMHwFst4WO18QYk8dN/Qzy?= =?us-ascii?Q?aJN+XTAq1z7o4wWo1zVuqahy7J60KQUdS5C10y4+N67UvaswXOGdNkqZKqsZ?= =?us-ascii?Q?i9rC34yiA14I+hM6XtmoUt7DYUcguM7+wAKMDcH2cvDDFevU6nh0vwVrhh5r?= =?us-ascii?Q?d32lUi5umIzXSuH329CKhZvEo9wVHiKZUINM+seVs9OgICQoad/AJai00XER?= =?us-ascii?Q?vl6uZWECPsQTmhw8IWiVuNdg+NY34fAKHZYenF5hhxXZLjI3oazWmv2iW0Ag?= =?us-ascii?Q?gqCkdbFyYLbN53ytM2wxMdWEAEHO2R/aRm8Xu44WHKs+sIGmasE//oXWndp9?= =?us-ascii?Q?rm5Rx79hqk58+Hcqk3k962m0HcjTj5UnLMN2TS3QEJJHe3SNrlgM0at8NuWv?= =?us-ascii?Q?eYwXJbS/+9kJBVb9xfVDYRjgx3rXpB1iHpfbhNXljhtgLFElF035w9yWq6ry?= =?us-ascii?Q?4QFRGvpxD4BtLS/XdpurpLAhCGyawpaTZ82CRcLkhOybRlgo2fWAvQQcUJcl?= =?us-ascii?Q?nz1Wju3YANON6hSNYB4sve4UIlOELQip21X76RthN8WAU/FAFinQU9Da+A2l?= =?us-ascii?Q?6iQzQQe1/g8MQXjkSq1XjKK7kvHV4GJ6t4ZFXzf0nq8BOhYwQSVOzHLSHNc4?= =?us-ascii?Q?fY1UOBaTyJjbgLMxe44CQ9kX1/xaTXJHg76ENAQEqE0xRRX7qFgCqUarMoxU?= =?us-ascii?Q?2OWoz+kHiANpcSm3dyFerVoMqr8GXxUcMEydsNtl9Pw8bNucg=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3464; 6:en15QluqIO9bMvlcy8Eu6+bqJIKtQn4oIqFf0ffUNkEkZKQKrXHF3fAXX5VTEICyESzAweqxCjAcLaf0yUac/yslgb0TIoroyIahlHha8hIufamoiH3mSKuN1xrQFu2EWpzRAsf+HfxxxyZXXyCg1l3be6Ik+nwAvipzU2k/zWRyx5X0H6Huh5wXWqlsPJ3RLAouCqKKtXDF1hiJ07tm2vFNQXWRMmvnyKLiKCWy7YSK/BamlHr1SPzrMBGKT+wlbqltxVtjNhRbVmsO6SWEjN5JwjAzv8+u00fWAnUqIsc4QVy4acuT7NMWQiPeXEbeQSVCeESoC9YufJzODlpAVA==; 5:Kk/EgNSioILRYfFLJ0+cUQamjUzi0I3HfHhqGaT5pdCPqhC6CeMpCcDzHE5Ss7XM9BqA+r4DEmrjJqCV8kiAdncUlWRWcxHT+gpRwxRDBChvP/cd5W+sDpAv5ymbCTtRN+N/1Iaj6Cx5XIVc2+zCEyzmt3tFVV91VSOD9eTpXfs=; 24:I9//T/3hq27sT3Hgdv9mqGQjjrFV01uYVy42mr9tqI19bGUOKFsrsILJmPZ3w7ezUAduJPOhpXtEECeK7FUQNNcvktRZwtG+++pLxjM3Ej8=; 7:vDdMV55xb4gIgwgKW9wQ/Na8/k1496nm0lhJGGZDKzrGCNyhv1O48jk+eMlkmIv6eoJ6vnTzTmqqyCCiCST3oOtq5Ok0iAO+0uus0lqwyOFMGEN6GJLYTk622nD+SNgo1ztYmERQ5sYvF/SEylLv7HW0+kcNZ7v0UFTS+AmSxthpzPA6R23e25NyQtODkmt7cL/QBQVS78QKfHK2uQfE8FB4D5BGLEtcRwkkoSy04X8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Oct 2017 18:46:18.1076 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3464 Subject: [dpdk-dev] [PATCH] eventdev: use new event enqueue in 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: Thu, 12 Oct 2017 18:46:22 -0000 When event Rx adapter uses software based packet transfer, event op is always RTE_EVENT_OP_NEW. By using rte_event_enqueue_new_burst API the underlying event devices driver can use it as a hint to optimize enqueue operation if possible. Signed-off-by: Pavan Nikhilesh --- lib/librte_eventdev/rte_event_eth_rx_adapter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eventdev/rte_event_eth_rx_adapter.c b/lib/librte_eventdev/rte_event_eth_rx_adapter.c index 1e42dde..fcba18d 100644 --- a/lib/librte_eventdev/rte_event_eth_rx_adapter.c +++ b/lib/librte_eventdev/rte_event_eth_rx_adapter.c @@ -392,7 +392,7 @@ flush_event_buffer(struct rte_event_eth_rx_adapter *rx_adapter) &rx_adapter->event_enqueue_buffer; struct rte_event_eth_rx_adapter_stats *stats = &rx_adapter->stats; - uint16_t n = rte_event_enqueue_burst(rx_adapter->eventdev_id, + uint16_t n = rte_event_enqueue_new_burst(rx_adapter->eventdev_id, rx_adapter->event_port_id, buf->events, buf->count); -- 2.7.4