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

Ferruh Yigit ferruh.yigit at intel.com
Wed May 27 20:14:49 CEST 2020


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.


More information about the dev mailing list