net/mlx4: refactor RSS conversion functions
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Mon, 21 May 2018 15:50:12 +0000 (17:50 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 22 May 2018 22:35:01 +0000 (00:35 +0200)
commitb7abc67c2818ea060a0484441b8fb481484310f1
tree2c24257200beea199b9c1abea9f5b2bca38cd641
parent27bdbbef1a5215b768186be5a59a09c3d0517de0
net/mlx4: refactor RSS conversion functions

Since commit 97b2217ae5bc ("net/mlx4: advertise supported RSS hash
functions"), this PMD includes two similar-looking functions that convert
RSS hash fields between Verbs and DPDK formats.

This patch refactors them as a single two-way function and gets rid of
redundant helper macros.

Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx4/mlx4_ethdev.c
drivers/net/mlx4/mlx4_flow.c
drivers/net/mlx4/mlx4_flow.h