Re: [PATCH rdma-core 4/4] mlx5: Report MPLS tunnel offload capabilities through mlx5 direct verbs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 16, 2018 at 04:31:10PM +0300, Yishai Hadas wrote:
> From: Ariel Levkovich <lariel@xxxxxxxxxxxx>
> 
> This patch exposes the mlx5 device's capability to offload MPLS based
> tunnel protocols via DV API.
> The possible protocols are:
> - Control word + MPLS over GRE.
> - Control word + MPLS over UDP.
> 
> Signed-off-by: Ariel Levkovich <lariel@xxxxxxxxxxxx>
> Signed-off-by: Yishai Hadas <yishaih@xxxxxxxxxxxx>
>  providers/mlx5/mlx5dv.h | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
> 
> diff --git a/providers/mlx5/mlx5dv.h b/providers/mlx5/mlx5dv.h
> index 2c31988..41493a6 100644
> +++ b/providers/mlx5/mlx5dv.h
> @@ -92,9 +92,11 @@ struct mlx5dv_striding_rq_caps {
>  };
>  
>  enum mlx5dv_tunnel_offloads {
> -	MLX5DV_RAW_PACKET_CAP_TUNNELED_OFFLOAD_VXLAN	= 1 << 0,
> -	MLX5DV_RAW_PACKET_CAP_TUNNELED_OFFLOAD_GRE	= 1 << 1,
> -	MLX5DV_RAW_PACKET_CAP_TUNNELED_OFFLOAD_GENEVE	= 1 << 2,
> +	MLX5DV_RAW_PACKET_CAP_TUNNELED_OFFLOAD_VXLAN		= 1 << 0,
> +	MLX5DV_RAW_PACKET_CAP_TUNNELED_OFFLOAD_GRE		= 1 << 1,
> +	MLX5DV_RAW_PACKET_CAP_TUNNELED_OFFLOAD_GENEVE		= 1 << 2,
> +	MLX5DV_RAW_PACKET_CAP_TUNNELED_OFFLOAD_CW_MPLS_OVER_GRE	= 1 << 3,
> +	MLX5DV_RAW_PACKET_CAP_TUNNELED_OFFLOAD_CW_MPLS_OVER_UDP	= 1 << 4,
>  };

Bleck, I dislike this mindless whitespace change and this is part of
why I so dislike the 'column' alignment so much code is fond of...

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux