net/mlx5: fix build with Direct Verbs disabled
authorGregory Etelson <getelson@nvidia.com>
Mon, 16 Nov 2020 14:02:19 +0000 (16:02 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 20 Nov 2020 20:10:04 +0000 (21:10 +0100)
commitbc1d90a3cf6f633ab976c3de18a8bd8e77db2fe1
treeeb6b84f8cf0830d9b2fa0c4d8beb47ef210550f5
parent8b11f9aa7bf12b097c8d7f049542e0e289eca79b
net/mlx5: fix build with Direct Verbs disabled

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@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_flow.c
drivers/net/mlx5/mlx5_flow.h