Skip to content

Commit 21a739c

Browse files
gaurav1086davem330
authored andcommitted
ethtool: Fix check in ethtool_rx_flow_rule_create
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]>
1 parent de0083c commit 21a739c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ethtool/ioctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2978,7 +2978,7 @@ ethtool_rx_flow_rule_create(const struct ethtool_rx_flow_spec_input *input)
29782978
sizeof(match->mask.ipv6.dst));
29792979
}
29802980
if (memcmp(v6_m_spec->ip6src, &zero_addr, sizeof(zero_addr)) ||
2981-
memcmp(v6_m_spec->ip6src, &zero_addr, sizeof(zero_addr))) {
2981+
memcmp(v6_m_spec->ip6dst, &zero_addr, sizeof(zero_addr))) {
29822982
match->dissector.used_keys |=
29832983
BIT(FLOW_DISSECTOR_KEY_IPV6_ADDRS);
29842984
match->dissector.offset[FLOW_DISSECTOR_KEY_IPV6_ADDRS] =

0 commit comments

Comments
 (0)