On 1/13/2020 9:57 AM, Chenxu Di wrote: > Add support to the ice driver for the API rte_eth_tx_done_cleanup > to force free consumed buffers on Tx ring. > > Signed-off-by: Chenxu Di <chenxux...@intel.com> > --- > drivers/net/ice/ice_ethdev.c | 1 + > drivers/net/ice/ice_rxtx.c | 111 +++++++++++++++++++++++++++++++++++ > drivers/net/ice/ice_rxtx.h | 2 + > 3 files changed, 114 insertions(+) > > diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c > index de189daba..b55cdbf74 100644 > --- a/drivers/net/ice/ice_ethdev.c > +++ b/drivers/net/ice/ice_ethdev.c > @@ -220,6 +220,7 @@ static const struct eth_dev_ops ice_eth_dev_ops = { > .filter_ctrl = ice_dev_filter_ctrl, > .udp_tunnel_port_add = ice_dev_udp_tunnel_port_add, > .udp_tunnel_port_del = ice_dev_udp_tunnel_port_del, > + .tx_done_cleanup = ice_tx_done_cleanup, > }; > > /* store statistics names and its offset in stats structure */ > diff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rxtx.c > index 2db174456..8f12df807 100644 > --- a/drivers/net/ice/ice_rxtx.c > +++ b/drivers/net/ice/ice_rxtx.c > @@ -863,6 +863,9 @@ ice_fdir_tx_queue_stop(struct rte_eth_dev *dev, uint16_t > tx_queue_id) > return 0; > } > > + > + > +
These empty lines removed on next-net, fyi.