[dpdk-dev] [PATCH v3 2/7] net/netvsc: implement rx/tx descriptor status functions

Stephen Hemminger stephen at networkplumber.org
Wed May 27 23:00:56 CEST 2020


On Wed, 27 May 2020 19:14:49 +0100
Ferruh Yigit <ferruh.yigit at intel.com> wrote:

> On 5/19/2020 5:52 PM, Stephen Hemminger wrote:
> > These functions are useful for applications and debugging.
> > The netvsc PMD also transparently handles the rx/tx descriptor
> > functions for underlying VF device.
> > 
> > Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> > ---
> >  drivers/net/netvsc/hn_ethdev.c |  3 ++
> >  drivers/net/netvsc/hn_rxtx.c   | 57 ++++++++++++++++++++++++++++++++++
> >  drivers/net/netvsc/hn_var.h    |  5 +++
> >  3 files changed, 65 insertions(+)
> > 
> > diff --git a/drivers/net/netvsc/hn_ethdev.c b/drivers/net/netvsc/hn_ethdev.c
> > index b890fa3befa8..675a49e66a57 100644
> > --- a/drivers/net/netvsc/hn_ethdev.c
> > +++ b/drivers/net/netvsc/hn_ethdev.c
> > @@ -875,8 +875,11 @@ static const struct eth_dev_ops hn_eth_dev_ops = {
> >  	.tx_queue_setup		= hn_dev_tx_queue_setup,
> >  	.tx_queue_release	= hn_dev_tx_queue_release,
> >  	.tx_done_cleanup        = hn_dev_tx_done_cleanup,
> > +	.tx_descriptor_status	= hn_dev_tx_descriptor_status,
> >  	.rx_queue_setup		= hn_dev_rx_queue_setup,
> >  	.rx_queue_release	= hn_dev_rx_queue_release,
> > +	.rx_queue_count		= hn_dev_rx_queue_count,
> > +	.rx_descriptor_status   = hn_dev_rx_queue_status,  
> 
> I guess this should announce 'Rx descriptor status' & 'Tx descriptor status'
> features for NIC, in 'doc/guides/nics/features/netvsc.ini' file.
> 
> If so please send an incremental patch for it, I can squash it in the next-net.

Thanks, will do


More information about the dev mailing list