Skip to content

Commit

Permalink
ethtool: Fix check in ethtool_rx_flow_rule_create
Browse files Browse the repository at this point in the history
Fix check in ethtool_rx_flow_rule_create

Fixes: eca4205 ("ethtool: add ethtool_rx_flow_spec to flow_rule structure translator")
Signed-off-by: Gaurav Singh <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
gaurav1086 authored and davem330 committed Jun 23, 2020
1 parent de0083c commit 21a739c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ethtool/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2978,7 +2978,7 @@ ethtool_rx_flow_rule_create(const struct ethtool_rx_flow_spec_input *input)
sizeof(match->mask.ipv6.dst));
}
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 |=
BIT(FLOW_DISSECTOR_KEY_IPV6_ADDRS);
match->dissector.offset[FLOW_DISSECTOR_KEY_IPV6_ADDRS] =
Expand Down

0 comments on commit 21a739c

Please sign in to comment.