[dpdk-dev] [PATCH v5 2/6] net/mlx5: fix build with Direct Verbs disabled

Ferruh Yigit ferruh.yigit at intel.com
Tue Nov 17 15:33:21 CET 2020


On 11/16/2020 2:02 PM, Gregory Etelson wrote:
> Tunnel offload API is implemented for Direct Verbs environment only.
> Current patch re-arranges tunnel related functions for compilation in
> non Direct Verbs setups to prevent compilation failures.  The patch
> does not introduce new functions.
> 
> Fixes: 4ec6360de37d ("net/mlx5: implement tunnel offload")
> 
> Signed-off-by: Gregory Etelson <getelson at nvidia.com>
> Acked-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>

<...>

> +void mlx5_release_tunnel_hub(__rte_unused struct mlx5_dev_ctx_shared *sh,
> +			     __rte_unused  uint16_t port_id)
> +{
> +	return;
> +}

There is a checkpatch warning about 'return' in the void funciton, will remove 
in next-net.

Also will fix the snytax and move function return type to one line above.


More information about the dev mailing list