WARNING: line length of 86 exceeds 80 columns #113: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:41: + echo " --num-addrs N Number of IPv4 addresses to add (default: $NUM_ADDRS)" WARNING: line length of 84 exceeds 80 columns #114: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:42: + echo " --rounds N Measurement rounds for benchmark (default: $ROUNDS)" WARNING: line length of 83 exceeds 80 columns #115: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:43: + echo " --duration S Seconds per measurement round (default: $DURATION)" WARNING: line length of 87 exceeds 80 columns #118: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:46: + echo " --bpftrace Trace __ip_dev_find latency (minimal overhead for A/B)" WARNING: line length of 86 exceeds 80 columns #119: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:47: + echo " --sink Use C receiver to count packets (adds CPU overhead)" WARNING: line length of 87 exceeds 80 columns #120: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:48: + echo " --threaded-napi Move veth RX to separate CPU (cleaner perf profiles)" WARNING: line length of 88 exceeds 80 columns #121: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:49: + echo " --bpftrace-debug Trace all code paths (lookup, insert, remove, resize)" WARNING: line length of 96 exceeds 80 columns #182: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:110: + bta_sym=$(grep -oP 'bucket_table_alloc\S*' "$aff" 2>/dev/null | head -1) WARNING: line length of 82 exceeds 80 columns #211: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:139: + # old kernel: inet_hash_insert does hlist hash+insert, visible to kprobe WARNING: line length of 82 exceeds 80 columns #218: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:146: + log " detected NEW kernel (inet_hash_insert inlined -> rhltable)" WARNING: line length of 81 exceeds 80 columns #224: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:152: + if [ "$BPFTRACE_DEBUG" -eq 1 ] && [ "$has_rhltable" -eq 1 ]; then WARNING: line length of 89 exceeds 80 columns #225: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:153: + # New kernel: read rhltable bucket count via BTF to detect resize WARNING: line length of 82 exceeds 80 columns #467: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:395: + elif grep -q 'COMPARISON: __ip_dev_find' "$BPFTRACE_LOG" 2>/dev/null; then WARNING: line length of 83 exceeds 80 columns #472: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:400: + elif grep -q 'RESIZE.*bucket_table_alloc' "$BPFTRACE_LOG" 2>/dev/null; then WARNING: line length of 88 exceeds 80 columns #475: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:403: + echo "INFO: no resize observed (use --bpftrace-debug to detect via BTF)" WARNING: line length of 81 exceeds 80 columns #516: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:444: +# Helper: generate address from index (spreads across octets to avoid /24 limits) WARNING: line length of 84 exceeds 80 columns #543: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:471: + # Move veth RX to a separate NAPI kthread for cleaner perf profiles. WARNING: line length of 82 exceeds 80 columns #545: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:473: + # veth ptr_ring (256 entries), enable GRO on dst for NAPI polling. WARNING: line length of 87 exceeds 80 columns #546: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:474: + ip netns exec "$NS_SRC" ethtool -K veth_src tso off 2>/dev/null || true WARNING: line length of 86 exceeds 80 columns #547: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:475: + ip netns exec "$NS_DST" ethtool -K veth_dst gro on 2>/dev/null || true WARNING: line length of 95 exceeds 80 columns #549: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:477: + bash -c 'echo 1 > /sys/class/net/veth_dst/threaded' 2>/dev/null || true WARNING: line length of 93 exceeds 80 columns #550: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:478: + log_config "threaded-napi: veth_dst (TSO off, GRO on, NAPI kthread on CPU 0)" WARNING: line length of 91 exceeds 80 columns #579: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:507: + echo "addr add 10.$(( (i >> 8) & 0xff )).$(( i & 0xff )).1/32 dev veth_src" WARNING: line length of 84 exceeds 80 columns #586: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:514: + count=$(ip -n "$NS_SRC" -4 addr show dev veth_src | grep -c "inet " || true) WARNING: line length of 84 exceeds 80 columns #606: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:534: + if ! ip netns exec "$NS_SRC" ping -c 1 -W 1 -I "$addr" 192.168.1.2 \ WARNING: line length of 114 exceeds 80 columns #626: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:554: + echo "Test: UDP sendmsg bench ($NUM_ADDRS addrs, ${ROUNDS}x${DURATION}s + 1s warmup = ~${total_time}s)..." WARNING: line length of 83 exceeds 80 columns #639: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:567: + echo "SKIP: ipv4_addr_lookup_udp_sender not found (run make first)" WARNING: line length of 84 exceeds 80 columns #655: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:583: + # Default: iptables DROP -- zero userspace overhead in perf profiles WARNING: line length of 81 exceeds 80 columns #670: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:598: + # Snapshot softnet_stat before sending (per-CPU: processed, time_squeeze) WARNING: line length of 85 exceeds 80 columns #676: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:604: + # Each sendto() triggers ip_route_output -> __ip_dev_find -> rhltable_lookup. WARNING: line length of 91 exceeds 80 columns #685: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:613: + taskset -c 1 "$sender_bin" "$NUM_ADDRS" "$ROUNDS" "$DURATION" $sndbuf_arg \ WARNING: line length of 81 exceeds 80 columns #706: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:634: + [ "$dp" -gt 0 ] && active_cpus="${active_cpus} cpu${cpu}(+${dp})" WARNING: line length of 86 exceeds 80 columns #724: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:652: + # Verify no packet drops: sent (includes warmup) should equal received WARNING: line length of 89 exceeds 80 columns #726: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:654: + total_sent=$(sed -n 's/.*sent=\([0-9]*\).*/\1/p' "$sender_log" | head -1) WARNING: line length of 94 exceeds 80 columns #727: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:655: + sink_received=$(sed -n 's/.*received=\([0-9]*\).*/\1/p' "$sink_log" | head -1) WARNING: line length of 85 exceeds 80 columns #732: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:660: + echo " Sink received: $sink_received (matches sent)" WARNING: line length of 109 exceeds 80 columns #735: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:663: + echo " WARN: sent=$total_sent but sink received=$sink_received (diff=$diff)" WARNING: line length of 81 exceeds 80 columns #740: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:668: + iptables -D INPUT -p udp --dport 9000 -j DROP 2>/dev/null WARNING: line length of 83 exceeds 80 columns #765: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:693: + ip -n "$NS_SRC" addr add "${dup_addr}/32" dev veth_src2 2>/dev/null || true WARNING: line length of 90 exceeds 80 columns #777: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:705: + log "ping from duplicate addr failed (expected -- routing may prefer one)" WARNING: line length of 83 exceeds 80 columns #781: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:709: + ip -n "$NS_SRC" addr del "${dup_addr}/32" dev veth_src2 2>/dev/null || true WARNING: line length of 91 exceeds 80 columns #799: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:727: + echo "addr del 10.$(( (i >> 8) & 0xff )).$(( i & 0xff )).1/32 dev veth_src" WARNING: line length of 84 exceeds 80 columns #806: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:734: + count=$(ip -n "$NS_SRC" -4 addr show dev veth_src | grep -c "inet " || true) WARNING: line length of 90 exceeds 80 columns #828: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:756: + exists=$(ip -n "$NS_SRC" -4 addr show dev veth_src | grep -c "10.99.99.1" || true) WARNING: line length of 85 exceeds 80 columns #829: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:757: + [ "$exists" -ge 1 ] || { rc=1; check_result "address lifetime" $rc; return; } WARNING: line length of 90 exceeds 80 columns #836: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test.sh:764: + exists=$(ip -n "$NS_SRC" -4 addr show dev veth_src | grep -c "10.99.99.1" || true) WARNING: line length of 81 exceeds 80 columns #896: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test_virtme.sh:14: +# Sets scaling_min_freq=scaling_max_freq for thermal stability. WARNING: It's generally not useful to have the filename in the file #919: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test_virtme.sh:37: +# ./tools/testing/selftests/net/ipv4_addr_lookup_test_virtme.sh WARNING: line length of 88 exceeds 80 columns #1002: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test_virtme.sh:120: + echo " sudo systemctl set-property --runtime bench.slice AllowedCPUs=12-19" >&2 WARNING: line length of 86 exceeds 80 columns #1003: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test_virtme.sh:121: + echo " sudo systemctl set-property --runtime user.slice AllowedCPUs=0-11" >&2 WARNING: line length of 88 exceeds 80 columns #1004: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test_virtme.sh:122: + echo " sudo systemctl set-property --runtime system.slice AllowedCPUs=0-11" >&2 WARNING: line length of 86 exceeds 80 columns #1005: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test_virtme.sh:123: + echo " sudo systemctl set-property --runtime init.scope AllowedCPUs=0-11" >&2 WARNING: line length of 81 exceeds 80 columns #1028: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test_virtme.sh:146: + echo $$ | sudo tee /sys/fs/cgroup/bench.slice/cgroup.procs >/dev/null WARNING: line length of 95 exceeds 80 columns #1031: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test_virtme.sh:149: + echo "ERROR: taskset to CPUs $TASKSET_CPUS failed and no bench.slice available" >&2 WARNING: line length of 114 exceeds 80 columns #1047: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test_virtme.sh:165: + echo "$freq" | sudo tee /sys/devices/system/cpu/cpu"$cpu"/cpufreq/scaling_max_freq >/dev/null 2>&1 || true WARNING: line length of 114 exceeds 80 columns #1048: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test_virtme.sh:166: + echo "$freq" | sudo tee /sys/devices/system/cpu/cpu"$cpu"/cpufreq/scaling_min_freq >/dev/null 2>&1 || true WARNING: line length of 83 exceeds 80 columns #1056: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test_virtme.sh:174: + echo "$ORIG_PARTITION" | sudo tee "$PARTITION_PATH" >/dev/null 2>&1 || true WARNING: line length of 96 exceeds 80 columns #1099: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test_virtme.sh:217: + echo "$PIN_FREQ_KHZ" | sudo tee "$freq_dir/scaling_max_freq" >/dev/null 2>&1 || true WARNING: line length of 96 exceeds 80 columns #1100: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test_virtme.sh:218: + echo "$PIN_FREQ_KHZ" | sudo tee "$freq_dir/scaling_min_freq" >/dev/null 2>&1 || true WARNING: line length of 107 exceeds 80 columns #1102: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test_virtme.sh:220: + log_config "CPU frequency pinned to ${PIN_FREQ_MHZ} MHz on CPUs: $FREQ_CPUS (will restore on exit)" WARNING: line length of 84 exceeds 80 columns #1152: FILE: tools/testing/selftests/net/ipv4_addr_lookup_test_virtme.sh:270: + WARN_LINES=$(grep -cE "$WARN_PATTERN" "$CONSOLELOG" 2>/dev/null) || WARN_LINES=0 WARNING: Missing or malformed SPDX-License-Identifier tag in line 2 #1172: FILE: tools/testing/selftests/net/ipv4_addr_lookup_trace.bt:2: +/* CHECK: spaces preferred around that '-' (ctx:VxV) #1408: FILE: tools/testing/selftests/net/ipv4_addr_lookup_udp_sender.c:54: + (b->tv_nsec - a->tv_nsec) * 1e-9; ^ WARNING: Use of volatile is usually wrong: see Documentation/process/volatile-considered-harmful.rst #1455: FILE: tools/testing/selftests/net/ipv4_addr_lookup_udp_sender.c:101: +static volatile int sink_running = 1; WARNING: quoted string split across lines #1632: FILE: tools/testing/selftests/net/ipv4_addr_lookup_udp_sender.c:278: + printf("sent=%lld warmup=%lld errors=%lld rounds=%d " + "rate=%.0f pkt/s median=%.0f min=%.0f max=%.0f stdev=%.0f\n", WARNING: line length of 82 exceeds 80 columns #1697: FILE: tools/testing/selftests/net/ipv4_addr_lookup_udp_sender.c:343: + fprintf(stderr, "setup: cpu_dma_latency=0 (C-states disabled)\n"); total: 0 errors, 65 warnings, 1 checks, 1687 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. Commit 6fee4a0e0fe7 ("selftests: net: add IPv4 address lookup stress test") has style problems, please review. NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT BAD_REPORTED_BY_LINK CAMELCASE COMMIT_LOG_LONG_LINE FILE_PATH_CHANGES GIT_COMMIT_ID MACRO_ARG_REUSE NO_AUTHOR_SIGN_OFF NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. total: 0 errors, 65 warnings, 1 checks, 1687 lines checked