From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0085.outbound.protection.outlook.com [104.47.41.85]) by dpdk.org (Postfix) with ESMTP id A44961B1B9 for ; Mon, 9 Oct 2017 14:06:51 +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=uOk4hEkbWYC9KJfwTuH/69NsP3uBX3fTSsrm6KKZZC0=; b=EdddhfFeFwEQbDTaqD6AO4hifj2LdX0FjueoExE7E44OsUp/QqXe73m/Km9inAZgrlaB/Bn30cpdI6jscETPRle+sLVvyzTCH4VFdlpfZcmTp8KwS0JQGX1pMGWvTFKnOayPrgUlyqzKwEg9loxMjLYKrNOB6b3Eyk30apqwwQw= Received: from jerin (171.61.81.39) by SN2PR07MB2525.namprd07.prod.outlook.com (2603:10b6:804:6::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Mon, 9 Oct 2017 12:06:48 +0000 Date: Mon, 9 Oct 2017 17:36:26 +0530 From: Jerin Jacob To: Nikhil Rao Cc: bruce.richardson@intel.com, dev@dpdk.org Message-ID: <20171009120625.GC654@jerin> References: <1507324201-3517-1-git-send-email-nikhil.rao@intel.com> <1507324201-3517-4-git-send-email-nikhil.rao@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1507324201-3517-4-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: MA1PR01CA0081.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00::21) To SN2PR07MB2525.namprd07.prod.outlook.com (2603:10b6:804:6::25) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bac9847e-9703-4037-1d83-08d50f0e38d1 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:SN2PR07MB2525; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2525; 3:ucmqg9gC8dn6y0vLAveMBL8VUt5BilYG6b0KqRUSiUhvgl8yXpsJ4FgVazZnmxKTIqi6ItHuvJ5a4dVNnBByaNoEGsQWulNT28fzvYsaH3tEmxnA4rYXuj8USYhFwyycNk7V2gy+juLWRZZW4nPlss+GeeLRQgFMGR9HoKrvbytgFFUzFCLT/NneUK1cTl9skCNT6JcYbcLB84TVjxWMQYUPBSLIBBLoF1n10CEFFwzp0IlOa8viGPEuG6nYpizJ; 25:QoeRtX8IKuPTcncfXi6P9KiPb4Bj9vp/ywxKrBKLjsVzGGeuDE0Hfgx6jbk6U5V80+rK+2ARrfuvBHDE4S8x0hi6uNtJIln8TgGv01xj9cSryaIRXWnL4OTVhpaAE92HBSMx9rioMqz761olH4MZ3FHaY1ay/IVjglWR8WBEiYNUERyJJECxpnrNjvBq9SIdTt8QL6TK/6NRarQkqjQQf1W6WC67QkWWJh8VBXtHlPvpa+KzTO6XOueYNLOTqZS1gyK2u3tWSDIm3DPz6UJoscHB68ETiV3qLEkUAmob1ki335Y08PxPgG+K0bnflg9AyS8XLDhJ1s1PLjNzv+Sh7A==; 31:+Wg+LBTHrJDFvV69ZOLcHCvsY7+a5o9ZOfKtKBMvtEG5sBF6pW71d5M9c67RCpSGdoGv/jVWX4vKk5d7LYnKNuJwRD1oj0vCMphHQxJkuGB+/Z2bD1B0H4jNaKjqVSQEbG2rAtZ2hPTI/S68H51XAyI1dfJ4qDtRzqJc6F0TlT4uAFqqqj3wZS6/Qoktz5l78suBgz+hP+hb8syJZHmI/hiBwa5eyIXum3HmK2GKqe8= X-MS-TrafficTypeDiagnostic: SN2PR07MB2525: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2525; 20:1BvNixnPN6+5i1Vj5xAnCn1guuqwF4dnCwR0mpy5NpZ/jPmwd4+K6l0GtHHXt/j5I8twdNmrlkF0QQpw2A+Codne309Et0NA4jEv+MLgBjji7ccipreO4CExbPkGrXD6RXU4qNSO0SXVDWLzhb8CFJMoQiae5iogzsmDeAyX5vcZ6JVKvCjYb0IAu5VXK7B6YBZGRo0UxYl8rdisGa7rPIfOFz2RaPR7fzo5jYeHuMt/8q4/xZWnCaa/bW2AAtC4o7F5Mhjw8VkDs96uyLrA+ZtBAYsUbDRxZLENGXAvDJcpjD3E6RqxwNws5zZw8yAkbj33E0pcsVOL8lZGrNYkN/r3vGZwOomj+vpTR9k0CC9M9vY++lX7OM9uXa/sIxofpe6Czghn+FiVB9CNVSHZC5cKURYXcCWTm0+7BdNQr+YCr9hh3dbuwWzACI17LX0c3qrSSE1n+UjOBsyfEmh8rcNT50lEm3pbwVMLATD3Y8WTfj8BCGTYhzItKQvk+JJzWwJmUNOI9/h4jfU4cjBW/S9ooSR5xjOWN0s+fab6WwRkGTAdntJD3v+FjInZoNIMzLkIgiawj7VgEn1wALvEu0eJwq7k6mP75PXQV63inmg=; 4:SSDsttbCNErvhURLiqu9rjG/Z/q0QGnVlxYbuOPREhfWfBGgyOfCwYn7ue5AfKMlpET58Uce3mOzghY7h0p9w+in3c+enN26S5wzaatvpjz13HUOSYUS/lnZvGdtGrLbykRtZncTyM3pt8DzHs9OM9wrM+KydFYlbHEpqNc8LevQLD/5GyMyGOdPKB5HB+TB/rSTBx5ULBLZSW0YPGfY+nSFY6z94tvSsrc+ydFpN4GlhWDsGnT6eV8noKvqYlTgn8CEaJ9Inylmzibq1QXc99Zl9iVzuNDapXV2MZAykn8= X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); 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)(10201501046)(93006095)(3002001)(100000703101)(100105400095)(6041248)(20161123564025)(20161123558100)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:SN2PR07MB2525; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SN2PR07MB2525; X-Forefront-PRVS: 045584D28C X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(199003)(13464003)(189002)(66066001)(8936002)(2906002)(6916009)(42882006)(2950100002)(7736002)(305945005)(47776003)(50466002)(33656002)(5660300001)(101416001)(33716001)(106356001)(50986999)(76176999)(54356999)(16526018)(72206003)(8676002)(97736004)(81166006)(478600001)(81156014)(6246003)(25786009)(68736007)(6496005)(53936002)(316002)(105586002)(4326008)(6666003)(83506001)(229853002)(5890100001)(58126008)(9686003)(55016002)(3846002)(1076002)(6116002)(23726003)(16586007)(189998001)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR07MB2525; 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; SN2PR07MB2525; 23:Jk+TKuc2dxVNk0Vuhdmqzx7UsupNRP3dNxPyHuqQh?= =?us-ascii?Q?6/iUaAJj5PuEQUjBgV6FQ0pSYpfKRIWJK4IDCTUPRPDjNXmi+H5mV62U96Xj?= =?us-ascii?Q?HzeR2I/Wsv7G93cL+pHonxa66Um8UIr+xij4KMNitRWAgQOmTChTKSSLX4fe?= =?us-ascii?Q?3nbZ5Frw3D/TJPGOPIRcEG/2T1pYl0JE+jYYJqkf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ZH0/78Pn1lIRprUHHXg8htEQICITtd455zVtYLBbh/b8LZcs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Oct 2017 12:06:48.4199 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR07MB2525 Subject: Re: [dpdk-dev] [PATCH v5 3/7] eventdev: add eth Rx adapter caps function to SW PMD 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: Mon, 09 Oct 2017 12:06:52 -0000 -----Original Message----- > Date: Sat, 7 Oct 2017 02:39:57 +0530 > From: Nikhil Rao > To: jerin.jacob@caviumnetworks.com, bruce.richardson@intel.com > CC: dev@dpdk.org > Subject: [PATCH v5 3/7] eventdev: add eth Rx adapter caps function to SW PMD > X-Mailer: git-send-email 2.7.4 > > Signed-off-by: Nikhil Rao Acked-by: Jerin Jacob > --- > lib/librte_eventdev/rte_eventdev_pmd.h | 8 ++++++++ > drivers/event/sw/sw_evdev.c | 15 +++++++++++++++ > 2 files changed, 23 insertions(+) > > diff --git a/lib/librte_eventdev/rte_eventdev_pmd.h b/lib/librte_eventdev/rte_eventdev_pmd.h > index 9f3188fc8..4369d9b8c 100644 > --- a/lib/librte_eventdev/rte_eventdev_pmd.h > +++ b/lib/librte_eventdev/rte_eventdev_pmd.h > @@ -83,6 +83,14 @@ extern "C" { > } \ > } while (0) > > +#define RTE_EVENT_ETH_RX_ADAPTER_SW_CAP \ > + ((RTE_EVENT_ETH_RX_ADAPTER_CAP_OVERRIDE_FLOW_ID) | \ > + (RTE_EVENT_ETH_RX_ADAPTER_CAP_MULTI_EVENTQ)) > + > +/**< Ethernet Rx adapter cap to return If the packet transfers from > + * the ethdev to eventdev use a SW service function > + */ > + > #define RTE_EVENTDEV_DETACHED (0) > #define RTE_EVENTDEV_ATTACHED (1) > > diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c > index da6ac30f4..aed8b728f 100644 > --- a/drivers/event/sw/sw_evdev.c > +++ b/drivers/event/sw/sw_evdev.c > @@ -437,6 +437,19 @@ sw_dev_configure(const struct rte_eventdev *dev) > return 0; > } > > +struct rte_eth_dev; > + > +static int > +sw_eth_rx_adapter_caps_get(const struct rte_eventdev *dev, > + const struct rte_eth_dev *eth_dev, > + uint32_t *caps) > +{ > + RTE_SET_USED(dev); > + RTE_SET_USED(eth_dev); > + *caps = RTE_EVENT_ETH_RX_ADAPTER_SW_CAP; > + return 0; > +} > + > static void > sw_info_get(struct rte_eventdev *dev, struct rte_event_dev_info *info) > { > @@ -751,6 +764,8 @@ sw_probe(struct rte_vdev_device *vdev) > .port_link = sw_port_link, > .port_unlink = sw_port_unlink, > > + .eth_rx_adapter_caps_get = sw_eth_rx_adapter_caps_get, > + > .xstats_get = sw_xstats_get, > .xstats_get_names = sw_xstats_get_names, > .xstats_get_by_name = sw_xstats_get_by_name, > -- > 2.14.1.145.gb3622a4 >