Thread (66 messages) 66 messages, 2 authors, 2025-11-19

Re: [PATCH net-next v11 10/12] virtio_net: Add support for IPv6 ethtool steering

From: Dan Jurgens <hidden>
Date: 2025-11-19 16:04:54
Also in: virtualization

On 11/18/25 3:48 PM, Michael S. Tsirkin wrote:
On Tue, Nov 18, 2025 at 08:39:00AM -0600, Daniel Jurgens wrote:
quoted
Implement support for IPV6_USER_FLOW type rules.

Example:
$ ethtool -U ens9 flow-type ip6 src-ip fe80::2 dst-ip fe80::4 action 3
Added rule with ID 0

The example rule will forward packets with the specified source and
destination IP addresses to RX ring 3.
quoted
+	if (!ipv6_addr_any((struct in6_addr *)l3_mask->ip6src)) {
+		memcpy(&mask->saddr, l3_mask->ip6src, sizeof(mask->saddr));
+		memcpy(&key->saddr, l3_val->ip6src, sizeof(key->saddr));
+	}
so this checks mask then copies but parse_ip4 copies unconditionally?
why?
Added a similar check in the previous patch.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help