summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_prm.h
diff options
context:
space:
mode:
authorNĂ©lio Laranjeiro <nelio.laranjeiro@6wind.com>2016-11-24 17:03:32 +0100
committerFerruh Yigit <ferruh.yigit@intel.com>2017-01-17 19:40:53 +0100
commit9a7fa9f76d9eb94a7986338ae1898cd2cb4b6e4f (patch)
tree0949f7712f4321aac41fa513498e566f8bfa5057 /drivers/net/mlx5/mlx5_prm.h
parentfdcb0f53053be6e65b385a33b791e66a1760e833 (diff)
downloaddpdk-9a7fa9f76d9eb94a7986338ae1898cd2cb4b6e4f.zip
dpdk-9a7fa9f76d9eb94a7986338ae1898cd2cb4b6e4f.tar.gz
dpdk-9a7fa9f76d9eb94a7986338ae1898cd2cb4b6e4f.tar.xz
net/mlx5: use vector types to speed up processing
Let compiler automatically use the vector capabilities of the target machine to optimize instructions. Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_prm.h')
-rw-r--r--drivers/net/mlx5/mlx5_prm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/mlx5/mlx5_prm.h b/drivers/net/mlx5/mlx5_prm.h
index 3cc5af9..d9bb332 100644
--- a/drivers/net/mlx5/mlx5_prm.h
+++ b/drivers/net/mlx5/mlx5_prm.h
@@ -46,6 +46,7 @@
#pragma GCC diagnostic error "-Wpedantic"
#endif
+#include <rte_vect.h>
#include "mlx5_autoconf.h"
/* Get CQE owner bit. */
@@ -145,6 +146,12 @@ struct mlx5_wqe {
struct mlx5_wqe_eth_seg_small eseg;
};
+/* Vectorize WQE header. */
+struct mlx5_wqe_v {
+ rte_v128u32_t ctrl;
+ rte_v128u32_t eseg;
+};
+
/* WQE. */
struct mlx5_wqe64 {
struct mlx5_wqe hdr;