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

Change-Id: Icc09bb0cfd65339a464c01360290902a25b3bda4
---
 drivers/net/ethernet/mellanox/mlx5/core/en/channels.c | 5 +++++
 1 file changed, 5 insertions(+)

--- a/drivers/net/ethernet/mellanox/mlx5/core/en/channels.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en/channels.c
@@ -22,6 +22,7 @@ void mlx5e_channels_get_regular_rqn(stru
 
 bool mlx5e_channels_get_xsk_rqn(struct mlx5e_channels *chs, unsigned int ix, u32 *rqn)
 {
+#ifdef HAVE_XSK_ZERO_COPY_SUPPORT
 	struct mlx5e_channel *c;
 
 	WARN_ON(ix >= mlx5e_channels_get_num(chs));
@@ -32,6 +33,10 @@ bool mlx5e_channels_get_xsk_rqn(struct m
 
 	*rqn = c->xskrq.rqn;
 	return true;
+#else
+	return false;
+#endif
+
 }
 
 bool mlx5e_channels_get_ptp_rqn(struct mlx5e_channels *chs, u32 *rqn)
