Skip to contentSkip to conversation

Fix check in ethtool_rx_flow_rule_create

PATCH In review Gaurav Singh 2 participants 2 messages Jun 21, 2020 – Jun 23, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix check in ethtool_rx_flow_rule_create

Fix check in ethtool_rx_flow_rule_create

---
 net/ethtool/ioctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/ethtool/ioctl.c +1 -1
index b5df90c981c2..21d5fc0f6bb3 100644
@@ -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] =
Signature · 1 line
2.17.1
maintainer
#1 lore raw

From: Gaurav Singh <[email protected]>
Date: Sun, 21 Jun 2020 11:30:17 -0400

Quoted 3 lines

Fix check in ethtool_rx_flow_rule_create

Applied and queued up for -stable with the following Fixes: tag added:

Fixes eca4205f9ec3 ("ethtool: add ethtool_rx_flow_spec to flow_rule structure translator")

Thank you.