On 2/24/25 5:49 PM, Jordan Rife wrote:
Add "scrub" option to configure IFLA_NETKIT_SCRUB and IFLA_NETKIT_PEER_SCRUB when setting up a link. Add "scrub" and "peer scrub" to device details as well when printing. $ sudo ./ip/ip link add jordan type netkit scrub default peer scrub none $ ./ip/ip -details link show jordan 43: jordan@nk0: <BROADCAST,MULTICAST,NOARP,M-DOWN> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff promiscuity 0 allmulti 0 minmtu 68 maxmtu 65535 netkit mode l3 type primary policy forward peer policy forward scrub default peer scrub none numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535 tso_max_size 524280 tso_max_segs 65535 gro_max_size 65536 gso_ipv4_max_size 65536 gro_ipv4_max_size 65536 v1->v2: Added some spaces around "scrub SCRUB" in the help message. Link: https://lore.kernel.org/netdev/20241004101335.117711-1-daniel@xxxxxxxxxxxxx/ Signed-off-by: Jordan Rife <jordan@xxxxxxxx>
lgtm, thanks! Acked-by: Daniel Borkmann <daniel@xxxxxxxxxxxxx>