mbox series

[v4,0/4] some fixes for AF_XDP pmd

Message ID 20190417134946.1250-1-xiaolong.ye@intel.com (mailing list archive)
Headers
Series some fixes for AF_XDP pmd |

Message

Xiaolong Ye April 17, 2019, 1:49 p.m. UTC
  This patchset provides some fixes to af_xdp pmd, at first, I just added
a simple error handling when Tx queue allocation fails, then David
suggested a better way to do it and pointed out the inconsistent issue
of reserve/submit ops (for Tx queue) and peek/release ops (for Rx
queue), the third patch addressed this.

v4 changes:

- remove unnecessary mtu valid check in eth_dev_mtu_set
- add Reported-by and Reviewed-by tags of David

v3 changes:

- address David's review comments
- add one patch to specify the mtu range
- add one fix patch for typo

v2 changes:

- adopt David's suggestion to refactor the code

Xiaolong Ye (4):
  net/af_xdp: enqueue buf ring when allocate Tx queue fails
  net/af_xdp: specify minimal and maximal MTU
  net/af_xdp: make reserve/submit peek/release consistent
  net/af_xdp: fix typos in Rx function

 drivers/net/af_xdp/rte_eth_af_xdp.c | 87 +++++++++++++++--------------
 1 file changed, 46 insertions(+), 41 deletions(-)
  

Comments

David Marchand April 17, 2019, 2:02 p.m. UTC | #1
On Wed, Apr 17, 2019 at 3:55 PM Xiaolong Ye <xiaolong.ye@intel.com> wrote:

> This patchset provides some fixes to af_xdp pmd, at first, I just added
> a simple error handling when Tx queue allocation fails, then David
> suggested a better way to do it and pointed out the inconsistent issue
> of reserve/submit ops (for Tx queue) and peek/release ops (for Rx
> queue), the third patch addressed this.
>
> v4 changes:
>
> - remove unnecessary mtu valid check in eth_dev_mtu_set
> - add Reported-by and Reviewed-by tags of David
>
> v3 changes:
>
> - address David's review comments
> - add one patch to specify the mtu range
> - add one fix patch for typo
>
> v2 changes:
>
> - adopt David's suggestion to refactor the code
>
> Xiaolong Ye (4):
>   net/af_xdp: enqueue buf ring when allocate Tx queue fails
>   net/af_xdp: specify minimal and maximal MTU
>   net/af_xdp: make reserve/submit peek/release consistent
>   net/af_xdp: fix typos in Rx function
>
>  drivers/net/af_xdp/rte_eth_af_xdp.c | 87 +++++++++++++++--------------
>  1 file changed, 46 insertions(+), 41 deletions(-)
>
> --
> 2.17.1
>
>
LGTM.
Thanks Xiaolong.
  
Xiaolong Ye April 17, 2019, 3:27 p.m. UTC | #2
On 04/17, David Marchand wrote:
>On Wed, Apr 17, 2019 at 3:55 PM Xiaolong Ye <xiaolong.ye@intel.com> wrote:
>
>> This patchset provides some fixes to af_xdp pmd, at first, I just added
>> a simple error handling when Tx queue allocation fails, then David
>> suggested a better way to do it and pointed out the inconsistent issue
>> of reserve/submit ops (for Tx queue) and peek/release ops (for Rx
>> queue), the third patch addressed this.
>>
>> v4 changes:
>>
>> - remove unnecessary mtu valid check in eth_dev_mtu_set
>> - add Reported-by and Reviewed-by tags of David
>>
>> v3 changes:
>>
>> - address David's review comments
>> - add one patch to specify the mtu range
>> - add one fix patch for typo
>>
>> v2 changes:
>>
>> - adopt David's suggestion to refactor the code
>>
>> Xiaolong Ye (4):
>>   net/af_xdp: enqueue buf ring when allocate Tx queue fails
>>   net/af_xdp: specify minimal and maximal MTU
>>   net/af_xdp: make reserve/submit peek/release consistent
>>   net/af_xdp: fix typos in Rx function
>>
>>  drivers/net/af_xdp/rte_eth_af_xdp.c | 87 +++++++++++++++--------------
>>  1 file changed, 46 insertions(+), 41 deletions(-)
>>
>> --
>> 2.17.1
>>
>>
>LGTM.
>Thanks Xiaolong.

Thanks a lot for your guidance. :)

>
>
>-- 
>David Marchand
  
Ferruh Yigit April 17, 2019, 4:38 p.m. UTC | #3
On 4/17/2019 3:02 PM, David Marchand wrote:
> On Wed, Apr 17, 2019 at 3:55 PM Xiaolong Ye <xiaolong.ye@intel.com
> <mailto:xiaolong.ye@intel.com>> wrote:
> 
>     This patchset provides some fixes to af_xdp pmd, at first, I just added
>     a simple error handling when Tx queue allocation fails, then David
>     suggested a better way to do it and pointed out the inconsistent issue
>     of reserve/submit ops (for Tx queue) and peek/release ops (for Rx
>     queue), the third patch addressed this.
> 
>     v4 changes:
> 
>     - remove unnecessary mtu valid check in eth_dev_mtu_set
>     - add Reported-by and Reviewed-by tags of David
> 
>     v3 changes:
> 
>     - address David's review comments
>     - add one patch to specify the mtu range
>     - add one fix patch for typo
> 
>     v2 changes:
> 
>     - adopt David's suggestion to refactor the code
> 
>     Xiaolong Ye (4):
>       net/af_xdp: enqueue buf ring when allocate Tx queue fails
>       net/af_xdp: specify minimal and maximal MTU
>       net/af_xdp: make reserve/submit peek/release consistent
>       net/af_xdp: fix typos in Rx function
> 
>      drivers/net/af_xdp/rte_eth_af_xdp.c | 87 +++++++++++++++--------------
>      1 file changed, 46 insertions(+), 41 deletions(-)
> 
>     -- 
>     2.17.1
> 
> 
> LGTM.
> Thanks Xiaolong.

Series applied to dpdk-next-net/master, thanks.