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