summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/odp-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/odp-util.c b/lib/odp-util.c
index fcc3758b0..778c00ee8 100644
--- a/lib/odp-util.c
+++ b/lib/odp-util.c
@@ -2712,7 +2712,7 @@ odp_nsh_key_from_attr(const struct nlattr *attr, struct ovs_key_nsh *nsh,
return ODP_FIT_TOO_MUCH;
}
- if (has_md1 && nsh->mdtype != NSH_M_TYPE1) {
+ if (has_md1 && nsh->mdtype != NSH_M_TYPE1 && !nsh_mask) {
return ODP_FIT_ERROR;
}