Re: [PATCH 5/5] app/proc-info: support querying RSS hash algorithm

2023-09-08 Thread Jie Hai
Hi, Pattan, Reshma On 2023/9/6 1:07, Pattan, Reshma wrote: Instead of above function you can declare const array of strings as below to map hash function names. static const char * const hf_names[] = { [RTE_ETH_HASH_FUNCTION_SIMPLE_XOR] = " simple_xor ", [RTE_ETH_HASH_FUNCTI

RE: [PATCH 5/5] app/proc-info: support querying RSS hash algorithm

2023-09-05 Thread Pattan, Reshma
> -Original Message- > From: Jie Hai > > +static const char * > +rss_func_to_str(enum rte_eth_hash_function func) { > + switch (func) { > + case RTE_ETH_HASH_FUNCTION_SIMPLE_XOR: > + return "simple_xor"; > + case RTE_ETH_HASH_FUNCTION_TOEPLITZ: > + r

[PATCH 5/5] app/proc-info: support querying RSS hash algorithm

2023-09-04 Thread Jie Hai
Display RSS hash algorithm with command show-port as below. - RSS info -- hash algorithm : toeplitz Signed-off-by: Jie Hai Signed-off-by: Dongdong Liu --- app/proc-info/main.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/app/proc-info/main.c b/app/proc-in

[PATCH 5/5] app/proc-info: support querying RSS hash algorithm

2023-03-15 Thread Dongdong Liu
From: Jie Hai Display RSS hash algorithm with command show-port as below. - RSS info -- hash algorithm: toeplitz Signed-off-by: Jie Hai Signed-off-by: Dongdong Liu --- app/proc-info/main.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/app/proc-info/main.