Re: [dpdk-dev] [PATCH] net/mlx5: introduce mlx5 hash list

2019-11-06 Thread Raslan Darawsheh
: Tuesday, November 5, 2019 7:27 PM > To: Raslan Darawsheh > Cc: Bing Zhao ; Ori Kam ; > Slava Ovsiienko ; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH] net/mlx5: introduce mlx5 hash list > > On Tue, 5 Nov 2019 16:02:18 + > Raslan Darawsheh wrote: > > &

Re: [dpdk-dev] [PATCH] net/mlx5: introduce mlx5 hash list

2019-11-05 Thread Bing Zhao
Hi Stephen, Many thanks for your reviewing and comments. PSB. BR. Bing > -Original Message- > From: Stephen Hemminger > Sent: Wednesday, November 6, 2019 1:25 AM > To: Bing Zhao > Cc: Ori Kam ; Slava Ovsiienko > ; Raslan Darawsheh > ; dev@dpdk.org > Subject: Re

Re: [dpdk-dev] [PATCH] net/mlx5: introduce mlx5 hash list

2019-11-05 Thread Slava Ovsiienko
> -Original Message- > From: Stephen Hemminger > Sent: Tuesday, November 5, 2019 19:21 > To: Bing Zhao > Cc: Ori Kam ; Slava Ovsiienko > ; Raslan Darawsheh > ; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH] net/mlx5: introduce mlx5 hash list > > On Tue, 5

Re: [dpdk-dev] [PATCH] net/mlx5: introduce mlx5 hash list

2019-11-05 Thread Stephen Hemminger
On Tue, 5 Nov 2019 16:02:18 + Raslan Darawsheh wrote: > Hi, > > > -Original Message- > > From: Bing Zhao > > Sent: Tuesday, November 5, 2019 5:28 PM > > To: Ori Kam ; Slava Ovsiienko > > ; Raslan Darawsheh ; > > dev@dpdk.org > > Subject: [PATCH] net/mlx5: introduce mlx5 hash list >

Re: [dpdk-dev] [PATCH] net/mlx5: introduce mlx5 hash list

2019-11-05 Thread Stephen Hemminger
On Tue, 5 Nov 2019 17:28:00 +0200 Bing Zhao wrote: > +struct mlx5_hlist * > +mlx5_hlist_create(char *name, uint64_t size, mlx5_hlist_destroy_callback_fn > cb) Name is unused in rte_malloc, so why bother with it here? > +{ > + struct mlx5_hlist *h; > + uint64_t act_size; > + uint64_

Re: [dpdk-dev] [PATCH] net/mlx5: introduce mlx5 hash list

2019-11-05 Thread Stephen Hemminger
On Tue, 5 Nov 2019 17:28:00 +0200 Bing Zhao wrote: > Introduce simple hash list to the mlx5 utilities. User can define > its own data structure containing the mlx5_hlist_entry and create > the hash list table via the creation interface. Then the entry will > be inserted into the table and linked

Re: [dpdk-dev] [PATCH] net/mlx5: introduce mlx5 hash list

2019-11-05 Thread Raslan Darawsheh
Hi, > -Original Message- > From: Bing Zhao > Sent: Tuesday, November 5, 2019 5:28 PM > To: Ori Kam ; Slava Ovsiienko > ; Raslan Darawsheh ; > dev@dpdk.org > Subject: [PATCH] net/mlx5: introduce mlx5 hash list > > Introduce simple hash list to the mlx5 utilities. User can define its own d

Re: [dpdk-dev] [PATCH] net/mlx5: introduce mlx5 hash list

2019-11-05 Thread Slava Ovsiienko
> -Original Message- > From: Bing Zhao > Sent: Tuesday, November 5, 2019 17:28 > To: Ori Kam ; Slava Ovsiienko > ; Raslan Darawsheh > ; dev@dpdk.org > Subject: [PATCH] net/mlx5: introduce mlx5 hash list > > Introduce simple hash list to the mlx5 utilities. User can define its own data > s

[dpdk-dev] [PATCH] net/mlx5: introduce mlx5 hash list

2019-11-05 Thread Bing Zhao
Introduce simple hash list to the mlx5 utilities. User can define its own data structure containing the mlx5_hlist_entry and create the hash list table via the creation interface. Then the entry will be inserted into the table and linked to the corresponding list head. User should guarantee there i