net/mlx5e: IPSec, Innova IPSec offload infrastructure
[linux-2.6-block.git] / include / linux / mlx5 / qp.h
index bef80d0a0e30bcfb446abf14417789a34eb28af8..6f41270d80c03128bdeb60e5c6fc1b6ca2b5fe54 100644 (file)
@@ -225,10 +225,20 @@ enum {
        MLX5_ETH_WQE_INSERT_VLAN        = 1 << 15,
 };
 
+enum {
+       MLX5_ETH_WQE_SWP_INNER_L3_IPV6  = 1 << 0,
+       MLX5_ETH_WQE_SWP_INNER_L4_UDP   = 1 << 1,
+       MLX5_ETH_WQE_SWP_OUTER_L3_IPV6  = 1 << 4,
+       MLX5_ETH_WQE_SWP_OUTER_L4_UDP   = 1 << 5,
+};
+
 struct mlx5_wqe_eth_seg {
-       u8              rsvd0[4];
+       u8              swp_outer_l4_offset;
+       u8              swp_outer_l3_offset;
+       u8              swp_inner_l4_offset;
+       u8              swp_inner_l3_offset;
        u8              cs_flags;
-       u8              rsvd1;
+       u8              swp_flags;
        __be16          mss;
        __be32          rsvd2;
        union {
@@ -569,8 +579,6 @@ int mlx5_core_alloc_q_counter(struct mlx5_core_dev *dev, u16 *counter_id);
 int mlx5_core_dealloc_q_counter(struct mlx5_core_dev *dev, u16 counter_id);
 int mlx5_core_query_q_counter(struct mlx5_core_dev *dev, u16 counter_id,
                              int reset, void *out, int out_size);
-int mlx5_core_query_out_of_buffer(struct mlx5_core_dev *dev, u16 counter_id,
-                                 u32 *out_of_buffer);
 
 static inline const char *mlx5_qp_type_str(int type)
 {