DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/octeontx: advertise supported mbuf pool ops
@ 2017-12-14  8:31 Pavan Nikhilesh
  2017-12-18  9:03 ` santosh
  0 siblings, 1 reply; 3+ messages in thread
From: Pavan Nikhilesh @ 2017-12-14  8:31 UTC (permalink / raw)
  To: santosh.shukla, ferruh.yigit; +Cc: dev, Pavan Nikhilesh

Advertise mempool/octeontx as the only supported mempool ops when the
application checks using `rte_eth_dev_pool_ops_supported`.

Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
---
 drivers/net/octeontx/octeontx_ethdev.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/drivers/net/octeontx/octeontx_ethdev.c b/drivers/net/octeontx/octeontx_ethdev.c
index bd24ec3..287dfa9 100644
--- a/drivers/net/octeontx/octeontx_ethdev.c
+++ b/drivers/net/octeontx/octeontx_ethdev.c
@@ -998,6 +998,17 @@ octeontx_dev_supported_ptypes_get(struct rte_eth_dev *dev)
 	return NULL;
 }
 
+static int
+octeontx_pool_ops(struct rte_eth_dev *dev, const char *pool)
+{
+	RTE_SET_USED(dev);
+
+	if (!strcmp(pool, "octeontx_fpavf"))
+		return 0;
+
+	return -ENOTSUP;
+}
+
 /* Initialize and register driver with DPDK Application */
 static const struct eth_dev_ops octeontx_dev_ops = {
 	.dev_configure		 = octeontx_dev_configure,
@@ -1018,6 +1029,7 @@ static const struct eth_dev_ops octeontx_dev_ops = {
 	.rx_queue_setup		 = octeontx_dev_rx_queue_setup,
 	.rx_queue_release	 = octeontx_dev_rx_queue_release,
 	.dev_supported_ptypes_get = octeontx_dev_supported_ptypes_get,
+	.pool_ops_supported      = octeontx_pool_ops,
 };
 
 /* Create Ethdev interface per BGX LMAC ports */
-- 
2.7.4

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] net/octeontx: advertise supported mbuf pool ops
  2017-12-14  8:31 [dpdk-dev] [PATCH] net/octeontx: advertise supported mbuf pool ops Pavan Nikhilesh
@ 2017-12-18  9:03 ` santosh
  2018-01-09 11:19   ` Ferruh Yigit
  0 siblings, 1 reply; 3+ messages in thread
From: santosh @ 2017-12-18  9:03 UTC (permalink / raw)
  To: Pavan Nikhilesh, ferruh.yigit; +Cc: dev


On Thursday 14 December 2017 02:01 PM, Pavan Nikhilesh wrote:
> Advertise mempool/octeontx as the only supported mempool ops when the
> application checks using `rte_eth_dev_pool_ops_supported`.
>
> Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
> ---

Acked-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] net/octeontx: advertise supported mbuf pool ops
  2017-12-18  9:03 ` santosh
@ 2018-01-09 11:19   ` Ferruh Yigit
  0 siblings, 0 replies; 3+ messages in thread
From: Ferruh Yigit @ 2018-01-09 11:19 UTC (permalink / raw)
  To: santosh, Pavan Nikhilesh; +Cc: dev

On 12/18/2017 9:03 AM, santosh wrote:
> 
> On Thursday 14 December 2017 02:01 PM, Pavan Nikhilesh wrote:
>> Advertise mempool/octeontx as the only supported mempool ops when the
>> application checks using `rte_eth_dev_pool_ops_supported`.
>>
>> Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
>> ---
> 
> Acked-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>

Applied to dpdk-next-net/master, thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-01-09 11:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-14  8:31 [dpdk-dev] [PATCH] net/octeontx: advertise supported mbuf pool ops Pavan Nikhilesh
2017-12-18  9:03 ` santosh
2018-01-09 11:19   ` Ferruh Yigit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).