Re: [dpdk-dev] [PATCH v3 2/2] net/mlx4: avoid constant recreations in functions

2018-05-12 Thread Shahaf Shuler
Thursday, May 10, 2018 5:22 PM, Ophir Munk: > Subject: [PATCH v3 2/2] net/mlx4: avoid constant recreations in functions > > Functions mlx4_ibv_to_rss_types() and mlx4_conv_rss_types() contain > constant arrays variables which are recreated with every call to the > functions. > By changing the arr

[dpdk-dev] [PATCH v3 2/2] net/mlx4: avoid constant recreations in functions

2018-05-10 Thread Ophir Munk
Functions mlx4_ibv_to_rss_types() and mlx4_conv_rss_types() contain constant arrays variables which are recreated with every call to the functions. By changing the arrays definitions from "const" to "static const" these recreations can be saved. Signed-off-by: Ophir Munk --- drivers/net/mlx4/mlx