ethtool: Fix check in ethtool_rx_flow_rule_create

Fix check in ethtool_rx_flow_rule_create

Fixes: eca4205f9e ("ethtool: add ethtool_rx_flow_spec to flow_rule structure translator")
Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: hongrongxuan <hongrongxuan@huawei.com>
This commit is contained in:
Gaurav Singh 2020-06-21 11:30:17 -04:00 committed by Jianping Liu
parent 7a28153948
commit 3af50f62c5
1 changed files with 1 additions and 1 deletions

View File

@ -2942,7 +2942,7 @@ ethtool_rx_flow_rule_create(const struct ethtool_rx_flow_spec_input *input)
sizeof(match->mask.ipv6.dst)); sizeof(match->mask.ipv6.dst));
} }
if (memcmp(v6_m_spec->ip6src, &zero_addr, sizeof(zero_addr)) || if (memcmp(v6_m_spec->ip6src, &zero_addr, sizeof(zero_addr)) ||
memcmp(v6_m_spec->ip6src, &zero_addr, sizeof(zero_addr))) { memcmp(v6_m_spec->ip6dst, &zero_addr, sizeof(zero_addr))) {
match->dissector.used_keys |= match->dissector.used_keys |=
BIT(FLOW_DISSECTOR_KEY_IPV6_ADDRS); BIT(FLOW_DISSECTOR_KEY_IPV6_ADDRS);
match->dissector.offset[FLOW_DISSECTOR_KEY_IPV6_ADDRS] = match->dissector.offset[FLOW_DISSECTOR_KEY_IPV6_ADDRS] =