Skip to content

Commit

Permalink
net/mlx5: Use MLX5_IPSEC_DEV macro for ipsec caps
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Saeed Mahameed committed Mar 7, 2018
1 parent e810bf5 commit d83a69c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d83a69c

Please sign in to comment.