All of lore.kernel.org
 help / color / mirror / Atom feed
From: Saeed Mahameed <saeedm@mellanox.com>
To: "David S. Miller" <davem@davemloft.net>,
	Doug Ledford <dledford@redhat.com>
Cc: netdev@vger.kernel.org, linux-rdma@vger.kernel.org,
	Leon Romanovsky <leonro@mellanox.com>,
	Jason Gunthorpe <jgg@mellanox.com>,
	Aviad Yehezkel <aviadye@mellanox.com>,
	Matan Barak <matanb@mellanox.com>,
	Boris Pismenny <borisp@mellanox.com>,
	Saeed Mahameed <saeedm@mellanox.com>
Subject: [for-next 01/11] net/mlx5: Use MLX5_IPSEC_DEV macro for ipsec caps
Date: Wed,  7 Mar 2018 17:26:04 -0800	[thread overview]
Message-ID: <20180308012614.26451-2-saeedm@mellanox.com> (raw)
In-Reply-To: <20180308012614.26451-1-saeedm@mellanox.com>

Fix build break of mlx5_accel_ipsec_device_caps is not defined when
MLX5_ACCEL is not selected, use MLX5_IPSEC_DEV instead which handles
such case.

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Reported-by: Doug Ledford <dledford@redhat.com>
---
 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
index 4e456c292ce4..f836e6b76f65 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
@@ -2642,8 +2642,7 @@ int mlx5_init_fs(struct mlx5_core_dev *dev)
 			goto err;
 	}
 
-	if (mlx5_accel_ipsec_device_caps(steering->dev) &
-	    MLX5_ACCEL_IPSEC_DEVICE) {
+	if (MLX5_IPSEC_DEV(dev)) {
 		err = init_egress_root_ns(steering);
 		if (err)
 			goto err;
-- 
2.14.3

  reply	other threads:[~2018-03-08  1:26 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-08  1:26 [pull request][for-next 00/11] Mellanox, mlx5 IPSec updates 2018-02-28-2 (Part 2) Saeed Mahameed
2018-03-08  1:26 ` Saeed Mahameed [this message]
2018-03-08  1:26 ` [for-next 02/11] net/mlx5: IPSec, Generalize sandbox QP commands Saeed Mahameed
2018-03-08  1:26 ` [for-next 03/11] net/mlx5e: IPSec, Add support for ESP trailer removal by hardware Saeed Mahameed
2018-03-08  1:26 ` [for-next 04/11] net/mlx5: IPSec, Add command V2 support Saeed Mahameed
2018-03-08  1:26 ` [for-next 05/11] net/mlx5: Export ipsec capabilities Saeed Mahameed
2018-03-08  1:26 ` [for-next 06/11] net/mlx5: Added required metadata capability for ipsec Saeed Mahameed
2018-03-08  1:26 ` [for-next 07/11] net/mlx5: Refactor accel IPSec code Saeed Mahameed
2018-03-08  1:26 ` [for-next 08/11] net/mlx5: Add flow-steering commands for FPGA IPSec implementation Saeed Mahameed
2018-03-08  1:26 ` [for-next 09/11] net/mlx5e: Added common function for to_ipsec_sa_entry Saeed Mahameed
2018-03-08  1:26 ` [for-next 10/11] net/mlx5: IPSec, Add support for ESN Saeed Mahameed
2018-03-08  1:26 ` [for-next 11/11] net/mlx5: Fix wrongly assigned CQ reference counter Saeed Mahameed
2018-03-08 18:04 ` [pull request][for-next 00/11] Mellanox, mlx5 IPSec updates 2018-02-28-2 (Part 2) David Miller
2018-03-08 19:14   ` Doug Ledford
2018-03-08 19:38     ` Randy Dunlap
2018-03-08 19:42       ` Doug Ledford
2018-03-08 19:43       ` David Miller
2018-03-12 21:43     ` Saeed Mahameed
2018-03-13  1:43       ` Doug Ledford
2018-03-13 19:52         ` Doug Ledford

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180308012614.26451-2-saeedm@mellanox.com \
    --to=saeedm@mellanox.com \
    --cc=aviadye@mellanox.com \
    --cc=borisp@mellanox.com \
    --cc=davem@davemloft.net \
    --cc=dledford@redhat.com \
    --cc=jgg@mellanox.com \
    --cc=leonro@mellanox.com \
    --cc=linux-rdma@vger.kernel.org \
    --cc=matanb@mellanox.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.