diff options
author | Gaurav Singh <gaurav1086@gmail.com> | 2020-06-21 18:30:17 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-23 06:48:12 +0300 |
commit | 21a739c64d3e9871186483a0cc3e7b52638c3d59 (patch) | |
tree | 1b91bda856a496ae472df2dbc7e2028b5e839282 /net/ethtool/ioctl.c | |
parent | de0083c7ed7dba036d1ed6e012157649d45313c8 (diff) | |
download | linux-21a739c64d3e9871186483a0cc3e7b52638c3d59.tar.xz |
ethtool: Fix check in ethtool_rx_flow_rule_create
Fix check in ethtool_rx_flow_rule_create
Fixes: eca4205f9ec3 ("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>
Diffstat (limited to 'net/ethtool/ioctl.c')
-rw-r--r-- | net/ethtool/ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ethtool/ioctl.c b/net/ethtool/ioctl.c index b5df90c981c2..21d5fc0f6bb3 100644 --- a/net/ethtool/ioctl.c +++ b/net/ethtool/ioctl.c @@ -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] = |