aboutsummaryrefslogtreecommitdiffstats
path: root/net/openvswitch
diff options
context:
space:
mode:
Diffstat (limited to 'net/openvswitch')
-rw-r--r--net/openvswitch/flow_netlink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/openvswitch/flow_netlink.c b/net/openvswitch/flow_netlink.c
index 089b195c064a..918e96645b05 100644
--- a/net/openvswitch/flow_netlink.c
+++ b/net/openvswitch/flow_netlink.c
@@ -145,7 +145,7 @@ static bool match_validate(const struct sw_flow_match *match,
145 if (match->key->eth.type == htons(ETH_P_ARP) 145 if (match->key->eth.type == htons(ETH_P_ARP)
146 || match->key->eth.type == htons(ETH_P_RARP)) { 146 || match->key->eth.type == htons(ETH_P_RARP)) {
147 key_expected |= 1 << OVS_KEY_ATTR_ARP; 147 key_expected |= 1 << OVS_KEY_ATTR_ARP;
148 if (match->mask && (match->mask->key.tp.src == htons(0xff))) 148 if (match->mask && (match->mask->key.eth.type == htons(0xffff)))
149 mask_allowed |= 1 << OVS_KEY_ATTR_ARP; 149 mask_allowed |= 1 << OVS_KEY_ATTR_ARP;
150 } 150 }
151 151
@@ -220,7 +220,7 @@ static bool match_validate(const struct sw_flow_match *match,
220 htons(NDISC_NEIGHBOUR_SOLICITATION) || 220 htons(NDISC_NEIGHBOUR_SOLICITATION) ||
221 match->key->tp.src == htons(NDISC_NEIGHBOUR_ADVERTISEMENT)) { 221 match->key->tp.src == htons(NDISC_NEIGHBOUR_ADVERTISEMENT)) {
222 key_expected |= 1 << OVS_KEY_ATTR_ND; 222 key_expected |= 1 << OVS_KEY_ATTR_ND;
223 if (match->mask && (match->mask->key.tp.src == htons(0xffff))) 223 if (match->mask && (match->mask->key.tp.src == htons(0xff)))
224 mask_allowed |= 1 << OVS_KEY_ATTR_ND; 224 mask_allowed |= 1 << OVS_KEY_ATTR_ND;
225 } 225 }
226 } 226 }