aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorSaeed Mahameed <saeedm@mellanox.com>2020-05-27 23:41:03 -0700
committerSaeed Mahameed <saeedm@mellanox.com>2020-05-29 21:20:22 -0700
commitc51323ee7ab4132c80db198b7d0956fef957e6ab (patch)
treea3479b15dff8525c9626aee88b495d93808aa6cd
parentnet/mlx5: IPSec: Fix incorrect type for spi (diff)
downloadwireguard-linux-c51323ee7ab4132c80db198b7d0956fef957e6ab.tar.xz
wireguard-linux-c51323ee7ab4132c80db198b7d0956fef957e6ab.zip
net/mlx5e: en_tc: Fix incorrect type in initializer warnings
Fix some trivial warnings of the type: warning: incorrect type in initializer (different base types) Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Reviewed-by: Mark Bloch <markb@mellanox.com>
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/en_tc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
index ac19a61c5cbc..e866f209f252 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
@@ -1873,7 +1873,7 @@ enc_opts_is_dont_care_or_full_match(struct mlx5e_priv *priv,
memchr_inv(opt->opt_data, 0, opt->length * 4)) {
*dont_care = false;
- if (opt->opt_class != U16_MAX ||
+ if (opt->opt_class != htons(U16_MAX) ||
opt->type != U8_MAX) {
NL_SET_ERR_MSG(extack,
"Partial match of tunnel options in chain > 0 isn't supported");