Re: [dpdk-dev] [PATCH v6 3/4] net/ixgbe: cleanup Tx buffers

2020-01-08 Thread Ananyev, Konstantin
ors will be cleaned */ > if (last_desc_cleaned > desc_to_clean_to) > nb_tx_to_clean = (uint16_t)((nb_tx_desc - last_desc_cleaned) + > desc_to_clean_to); > else > nb_tx_to_clean = (uint

Re: [dpdk-dev] [PATCH v6 3/4] net/ixgbe: cleanup Tx buffers

2020-01-08 Thread Di, ChenxuX
ary 7, 2020 10:10 PM > To: Di, ChenxuX ; dev@dpdk.org > Cc: Yang, Qiming > Subject: RE: [dpdk-dev] [PATCH v6 3/4] net/ixgbe: cleanup Tx buffers > > > Hi Chenxu, > > > > > > > > > + * tx_tail is the last sent packet on the sw_ring. Goto > > > &

Re: [dpdk-dev] [PATCH v6 3/4] net/ixgbe: cleanup Tx buffers

2020-01-07 Thread Ananyev, Konstantin
Hi Chenxu, > > > > > > > + * tx_tail is the last sent packet on the sw_ring. Goto the > > > > > > > + end > > > > > > > + * of that packet (the last segment in the packet chain) and > > > > > > > + * then the next segment will be the start of the oldest > > > > > > > + segment > > > > > > > + * i

Re: [dpdk-dev] [PATCH v6 3/4] net/ixgbe: cleanup Tx buffers

2020-01-07 Thread Di, ChenxuX
Hi > -Original Message- > From: Ananyev, Konstantin > Sent: Monday, January 6, 2020 9:26 PM > To: Di, ChenxuX ; dev@dpdk.org > Cc: Yang, Qiming > Subject: RE: [dpdk-dev] [PATCH v6 3/4] net/ixgbe: cleanup Tx buffers > > > > > > > > > + * t

Re: [dpdk-dev] [PATCH v6 3/4] net/ixgbe: cleanup Tx buffers

2020-01-06 Thread Ananyev, Konstantin
> > > > > + * tx_tail is the last sent packet on the sw_ring. Goto the end > > > > > + * of that packet (the last segment in the packet chain) and > > > > > + * then the next segment will be the start of the oldest segment > > > > > + * in the sw_ring. > > > > > > > > Not sure I understand the se

Re: [dpdk-dev] [PATCH v6 3/4] net/ixgbe: cleanup Tx buffers

2020-01-06 Thread Di, ChenxuX
> -Original Message- > From: Ananyev, Konstantin > Sent: Monday, January 6, 2020 7:36 AM > To: Di, ChenxuX ; dev@dpdk.org > Cc: Yang, Qiming > Subject: RE: [dpdk-dev] [PATCH v6 3/4] net/ixgbe: cleanup Tx buffers > > > > > > Add sup

Re: [dpdk-dev] [PATCH v6 3/4] net/ixgbe: cleanup Tx buffers

2020-01-05 Thread Ananyev, Konstantin
> > > Add support to the ixgbe driver for the API rte_eth_tx_done_cleanup to > > > force free consumed buffers on Tx ring. > > > > > > Signed-off-by: Chenxu Di > > > --- > > > drivers/net/ixgbe/ixgbe_ethdev.c | 2 + > > > drivers/net/ixgbe/ixgbe_rxtx.c | 116 +++

Re: [dpdk-dev] [PATCH v6 3/4] net/ixgbe: cleanup Tx buffers

2020-01-03 Thread Di, ChenxuX
Hi, > -Original Message- > From: Ananyev, Konstantin > Sent: Monday, December 30, 2019 8:54 PM > To: Di, ChenxuX ; dev@dpdk.org > Cc: Yang, Qiming ; Di, ChenxuX > > Subject: RE: [dpdk-dev] [PATCH v6 3/4] net/ixgbe: cleanup Tx buffers > > Hi, > > >

Re: [dpdk-dev] [PATCH v6 3/4] net/ixgbe: cleanup Tx buffers

2019-12-30 Thread Ananyev, Konstantin
Hi, > Add support to the ixgbe driver for the API rte_eth_tx_done_cleanup > to force free consumed buffers on Tx ring. > > Signed-off-by: Chenxu Di > --- > drivers/net/ixgbe/ixgbe_ethdev.c | 2 + > drivers/net/ixgbe/ixgbe_rxtx.c | 116 +++ > drivers/net/ixgbe/ixg

[dpdk-dev] [PATCH v6 3/4] net/ixgbe: cleanup Tx buffers

2019-12-30 Thread Chenxu Di
Add support to the ixgbe driver for the API rte_eth_tx_done_cleanup to force free consumed buffers on Tx ring. Signed-off-by: Chenxu Di --- drivers/net/ixgbe/ixgbe_ethdev.c | 2 + drivers/net/ixgbe/ixgbe_rxtx.c | 116 +++ drivers/net/ixgbe/ixgbe_rxtx.h | 2 +