DPDK patches and discussions
 help / color / mirror / Atom feed
From: "11" <caowenbo@mucse.com>
To: "'Stephen Hemminger'" <stephen@networkplumber.org>
Cc: <thomas@monjalon.net>, <dev@dpdk.org>, <yaojun@mucse.com>
Subject: RE: [PATCH v15 09/29] net/rnp: add queue stop and start operations
Date: Wed, 26 Feb 2025 09:40:15 +0800	[thread overview]
Message-ID: <13605C9495387658+000001db87ef$635d1620$2a174260$@mucse.com> (raw)
In-Reply-To: <20250225080846.50657db8@hermes.local>

Hi Stephen,

I had been not added it to const struct eth_dev_ops  for
.rx/tx_queue_stop/stop :(
Thanks for your check

Regrads Wenbo
> -----Original Message-----
> From: Stephen Hemminger <stephen@networkplumber.org>
> Sent: 2025年2月26日 0:09
> To: Wenbo Cao <caowenbo@mucse.com>
> Cc: thomas@monjalon.net; dev@dpdk.org; yaojun@mucse.com
> Subject: Re: [PATCH v15 09/29] net/rnp: add queue stop and start
operations
> 
> On Tue, 25 Feb 2025 16:41:06 +0800
> Wenbo Cao <caowenbo@mucse.com> wrote:
> 
> > diff --git a/doc/guides/nics/rnp.rst b/doc/guides/nics/rnp.rst index
> > 99b96e9b8e..c3547c38b6 100644
> > --- a/doc/guides/nics/rnp.rst
> > +++ b/doc/guides/nics/rnp.rst
> > @@ -71,6 +71,10 @@ Listed below are the rte_eth functions supported:
> >  * ``rte_eth_dev_close``
> >  * ``rte_eth_dev_stop``
> >  * ``rte_eth_dev_infos_get``
> > +* ``rte_eth_dev_rx_queue_start``
> > +* ``rte_eth_dev_rx_queue_stop``
> > +* ``rte_eth_dev_tx_queue_start``
> > +* ``rte_eth_dev_tx_queue_stop``
> >  * ``rte_eth_promiscuous_disable``
> >  * ``rte_eth_promiscuous_enable``
> >  * ``rte_eth_allmulticast_enable``
> 
> There is no callback in this driver for rx/tx queue start/stop.
> Did you test this with test-pmd?
> 
> If application calls rte_eth_dev_rx_queue_start()
> 
> int
> rte_eth_dev_rx_queue_start(uint16_t port_id, uint16_t rx_queue_id) { ...
> 	if (*dev->dev_ops->rx_queue_start == NULL)
> 		return -ENOTSUP;
> 
> The eth_dev_ops in rnp_ethdev.c does not contain rx_queue_start!
> 
> /* Features supported by this driver */
> static const struct eth_dev_ops rnp_eth_dev_ops = {
> 	.dev_configure                = rnp_dev_configure,
> 	.dev_close                    = rnp_dev_close,
> 	.dev_start                    = rnp_dev_start,
> 	.dev_stop                     = rnp_dev_stop,
> 	.dev_infos_get                = rnp_dev_infos_get,
> 
> 	/* PROMISC */
> 	.promiscuous_enable           = rnp_promiscuous_enable,
> 	.promiscuous_disable          = rnp_promiscuous_disable,
> 	.allmulticast_enable          = rnp_allmulticast_enable,
> 	.allmulticast_disable         = rnp_allmulticast_disable,
> 	.mtu_set                      = rnp_mtu_set,
> 	.rx_queue_setup               = rnp_rx_queue_setup,
> 	.rx_queue_release             = rnp_dev_rx_queue_release,
> 	.tx_queue_setup               = rnp_tx_queue_setup,
> 	.tx_queue_release             = rnp_dev_tx_queue_release,
> 	.rxq_info_get                 = rnp_rx_queue_info_get,
> 	.txq_info_get                 = rnp_tx_queue_info_get,
> 	.rx_burst_mode_get            = rnp_rx_burst_mode_get,
> 	.tx_burst_mode_get            = rnp_tx_burst_mode_get,
> 	/* rss impl */
> 	.reta_update                  = rnp_dev_rss_reta_update,
> 	.reta_query                   = rnp_dev_rss_reta_query,
> 	.rss_hash_update              = rnp_dev_rss_hash_update,
> 	.rss_hash_conf_get            = rnp_dev_rss_hash_conf_get,
> 	/* stats */
> 	.stats_get                    = rnp_dev_stats_get,
> 	.stats_reset                  = rnp_dev_stats_reset,
> 	.xstats_get                   = rnp_dev_xstats_get,
> 	.xstats_reset                 = rnp_dev_xstats_reset,
> 	.xstats_get_names             = rnp_dev_xstats_get_names,
> 	/* link impl */
> 	.link_update                  = rnp_dev_link_update,
> 	.dev_set_link_up              = rnp_dev_set_link_up,
> 	.dev_set_link_down            = rnp_dev_set_link_down,
> 	/* mac address filter */
> 	.mac_addr_set                 = rnp_dev_mac_addr_set,
> 	.mac_addr_add                 = rnp_dev_mac_addr_add,
> 	.mac_addr_remove              = rnp_dev_mac_addr_remove,
> 	.set_mc_addr_list             = rnp_dev_set_mc_addr_list,
> 	/* vlan offload */
> 	.vlan_offload_set             = rnp_vlan_offload_set,
> 	.vlan_strip_queue_set         = rnp_vlan_strip_queue_set,
> 	.vlan_filter_set              = rnp_vlan_filter_set,
> 	.dev_supported_ptypes_get     = rnp_dev_supported_ptypes_get,
> };



  reply	other threads:[~2025-02-26  1:40 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-25  8:40 [PATCH v14 00/28] [v14]drivers/net Add Support mucse N10 Pmd Driver Wenbo Cao
2025-02-25  8:40 ` [PATCH v15 01/29] net/rnp: add skeleton Wenbo Cao
2025-02-25  8:40 ` [PATCH v15 02/29] net/rnp: add ethdev probe and remove Wenbo Cao
2025-02-25  8:41 ` [PATCH v15 03/29] net/rnp: add log Wenbo Cao
2025-02-25  8:41 ` [PATCH v15 04/29] net/rnp: support mailbox basic operate Wenbo Cao
2025-02-25  8:41 ` [PATCH v15 05/29] net/rnp: add device init and uninit Wenbo Cao
2025-02-25  8:41 ` [PATCH v15 06/29] net/rnp: add get device information operation Wenbo Cao
2025-02-25  8:41 ` [PATCH v15 07/29] net/rnp: add support MAC promisc mode Wenbo Cao
2025-02-25  8:41 ` [PATCH v15 08/29] net/rnp: add queue setup and release operations Wenbo Cao
2025-02-25  8:41 ` [PATCH v15 09/29] net/rnp: add queue stop and start operations Wenbo Cao
2025-02-25 16:08   ` Stephen Hemminger
2025-02-26  1:40     ` 11 [this message]
2025-02-25  8:41 ` [PATCH v15 10/29] net/rnp: add support device start stop operations Wenbo Cao
2025-02-25  8:41 ` [PATCH v15 11/29] net/rnp: add RSS support operations Wenbo Cao
2025-02-25  8:41 ` [PATCH v15 12/29] net/rnp: add support link update operations Wenbo Cao
2025-02-25  8:41 ` [PATCH v15 13/29] net/rnp: add support link setup operations Wenbo Cao
2025-02-25  8:41 ` [PATCH v15 14/29] net/rnp: add Rx burst simple support Wenbo Cao
2025-02-25  8:41 ` [PATCH v15 15/29] net/rnp: add Tx " Wenbo Cao
2025-02-25  8:41 ` [PATCH v15 16/29] net/rnp: add MTU set operation Wenbo Cao
2025-02-25  8:41 ` [PATCH v15 17/29] net/rnp: add Rx scatter segment version Wenbo Cao
2025-02-25  8:41 ` [PATCH v15 18/29] net/rnp: add Tx multiple " Wenbo Cao
2025-02-25  8:41 ` [PATCH v15 19/29] net/rnp: add support basic stats operation Wenbo Cao
2025-02-25  8:41 ` [PATCH v15 20/29] net/rnp: add support xstats operation Wenbo Cao
2025-02-25  8:41 ` [PATCH v15 21/29] net/rnp: add unicast MAC filter operation Wenbo Cao
2025-02-25  8:41 ` [PATCH v15 22/29] net/rnp: add supported packet types Wenbo Cao
2025-02-25  8:41 ` [PATCH v15 23/29] net/rnp: add support Rx checksum offload Wenbo Cao
2025-02-25  8:41 ` [PATCH v15 24/29] net/rnp: add support Tx TSO offload Wenbo Cao
2025-02-25  8:41 ` [PATCH v15 25/29] net/rnp: support VLAN offloads Wenbo Cao
2025-02-25  8:41 ` [PATCH v15 26/29] net/rnp: add support VLAN filters operations Wenbo Cao
2025-02-25  8:41 ` [PATCH v15 27/29] net/rnp: add queue info operation Wenbo Cao
2025-02-25  8:41 ` [PATCH v15 28/29] net/rnp: support Rx/Tx burst mode info Wenbo Cao
2025-02-25  8:41 ` [PATCH v15 29/29] net/rnp: add multicast MAC filter operation Wenbo Cao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='13605C9495387658+000001db87ef$635d1620$2a174260$@mucse.com' \
    --to=caowenbo@mucse.com \
    --cc=dev@dpdk.org \
    --cc=stephen@networkplumber.org \
    --cc=thomas@monjalon.net \
    --cc=yaojun@mucse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).