From: Valentine Fatiev <valentinef@nvidia.com>
Subject: [PATCH] BACKPORT: drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.c

Change-Id: I8c0c40f256e4af2c39779c049c31e5655ff97199
---
 drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- a/drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.c
@@ -548,7 +548,6 @@ void mlx5e_rx_res_channels_activate(stru
 
 		if (!(res->features & MLX5E_RX_RES_FEATURE_XSK))
 			continue;
-
 		if (!mlx5e_channels_get_xsk_rqn(chs, ix, &rqn))
 			rqn = res->drop_rqn;
 		err = mlx5e_rqt_redirect_direct(&res->channels[ix].xsk_rqt, rqn);
@@ -621,6 +620,7 @@ void mlx5e_rx_res_channels_deactivate(st
 	}
 }
 
+#ifdef HAVE_XSK_ZERO_COPY_SUPPORT
 int mlx5e_rx_res_xsk_activate(struct mlx5e_rx_res *res, struct mlx5e_channels *chs,
 			      unsigned int ix)
 {
@@ -649,6 +649,7 @@ int mlx5e_rx_res_xsk_deactivate(struct m
 			       res->drop_rqn, ix, err);
 	return err;
 }
+#endif
 
 int mlx5e_rx_res_packet_merge_set_param(struct mlx5e_rx_res *res,
 					struct mlx5e_packet_merge_param *pkt_merge_param)
