summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_rxtx_vec.h
diff options
context:
space:
mode:
authorYongseok Koh <yskoh@mellanox.com>2017-10-09 11:47:00 -0700
committerFerruh Yigit <ferruh.yigit@intel.com>2017-10-12 01:36:58 +0100
commit570acdb1da8ade1a618a736b5db35f3a1379ff71 (patch)
tree02dd5ed93bcc6319fe6d828d2017d00f9ff3aab8 /drivers/net/mlx5/mlx5_rxtx_vec.h
parent523f5a742102f8f16899991962ab99db1571e70f (diff)
downloaddpdk-next-eventdev-570acdb1da8ade1a618a736b5db35f3a1379ff71.zip
dpdk-next-eventdev-570acdb1da8ade1a618a736b5db35f3a1379ff71.tar.gz
dpdk-next-eventdev-570acdb1da8ade1a618a736b5db35f3a1379ff71.tar.xz
net/mlx5: add vectorized Rx/Tx burst for ARM
Brings vectorization through NEON instructions. Signed-off-by: Yongseok Koh <yskoh@mellanox.com> Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_rxtx_vec.h')
-rw-r--r--drivers/net/mlx5/mlx5_rxtx_vec.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/mlx5/mlx5_rxtx_vec.h b/drivers/net/mlx5/mlx5_rxtx_vec.h
index 9656fb7..4261690 100644
--- a/drivers/net/mlx5/mlx5_rxtx_vec.h
+++ b/drivers/net/mlx5/mlx5_rxtx_vec.h
@@ -68,7 +68,11 @@ S_ASSERT_RTE_MBUF(offsetof(struct rte_mbuf, pkt_len) ==
offsetof(struct rte_mbuf, rx_descriptor_fields1) + 4);
S_ASSERT_RTE_MBUF(offsetof(struct rte_mbuf, data_len) ==
offsetof(struct rte_mbuf, rx_descriptor_fields1) + 8);
+#if (RTE_CACHE_LINE_SIZE == 128)
+S_ASSERT_MLX5_CQE(offsetof(struct mlx5_cqe, pkt_info) == 64);
+#else
S_ASSERT_MLX5_CQE(offsetof(struct mlx5_cqe, pkt_info) == 0);
+#endif
S_ASSERT_MLX5_CQE(offsetof(struct mlx5_cqe, rx_hash_res) ==
offsetof(struct mlx5_cqe, pkt_info) + 12);
S_ASSERT_MLX5_CQE(offsetof(struct mlx5_cqe, rsvd1) +