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 <getel...@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viachesl...@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.

Reply via email to