net/mlx5: use static assert for compile-time sanity checks
authorYongseok Koh <yskoh@mellanox.com>
Mon, 9 Oct 2017 18:46:56 +0000 (11:46 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 12 Oct 2017 00:36:58 +0000 (01:36 +0100)
commit5bfc9fc112dd3c0f239af2488a7d8801f44ed3a3
treef7a55f80ae0587983f3f5f56e5391a9d62f01cf5
parentf0d2114f910218bae1431430027ddacc87f126f3
net/mlx5: use static assert for compile-time sanity checks

Replace compile-time sanity check with static_assert() as c11 standard
has been set. Add mlx5_rxtx_vec.h and move the sanity checks to the file

Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx5/mlx5_rxtx_vec.c
drivers/net/mlx5/mlx5_rxtx_vec.h [new file with mode: 0644]