[dpdk-dev] [PATCH 4/4] netvsc: implement tx_done_cleanup
Ferruh Yigit
ferruh.yigit at intel.com
Thu Aug 23 16:46:04 CEST 2018
On 8/9/2018 6:50 PM, Stephen Hemminger wrote:
> Add tx_done_cleanup ethdev hook to allow application to
> control if/when it wants completions to be handled.
>
> Signed-off-by: Stephen Hemminger <sthemmin at microsoft.com>
> ---
> drivers/net/netvsc/hn_ethdev.c | 1 +
> drivers/net/netvsc/hn_rndis.c | 2 +-
> drivers/net/netvsc/hn_rxtx.c | 26 +++++++++++++++++++++-----
> drivers/net/netvsc/hn_var.h | 4 +++-
> 4 files changed, 26 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/net/netvsc/hn_ethdev.c b/drivers/net/netvsc/hn_ethdev.c
> index 148e6a33d682..2200ee319f98 100644
> --- a/drivers/net/netvsc/hn_ethdev.c
> +++ b/drivers/net/netvsc/hn_ethdev.c
> @@ -547,6 +547,7 @@ static const struct eth_dev_ops hn_eth_dev_ops = {
> .allmulticast_disable = hn_dev_allmulticast_disable,
> .tx_queue_setup = hn_dev_tx_queue_setup,
> .tx_queue_release = hn_dev_tx_queue_release,
> + .tx_done_cleanup = hn_dev_tx_done_cleanup,
This requires "Free Tx mbuf on demand" feature advertised as supported on
doc/guides/nics/features/netvsc.ini document. Will add while merging.
More information about the dev
mailing list