projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e810bf5
)
net/mlx5: Use MLX5_IPSEC_DEV macro for ipsec caps
author
Saeed Mahameed
<
[email protected]
>
Wed, 7 Mar 2018 23:44:48 +0000
(15:44 -0800)
committer
Saeed Mahameed
<
[email protected]
>
Wed, 7 Mar 2018 23:49:19 +0000
(15:49 -0800)
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 <
[email protected]
>
Reported-by: Doug Ledford <
[email protected]
>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
index 4e456c292ce469d71c2d22bfdbeadb3329e45d54..f836e6b76f652f07806c829997b748625571148b 100644
(file)
--- 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;