OrangePi_CM5/tools/testing/selftests
Vladimir Oltean b280877eab selftests: ocelot: tc_flower_chains: specify conform-exceed action for policer
commit 5a7c5f70c743c6cf32b44b05bd6b19d4ad82f49d upstream.

As discussed here with Ido Schimmel:
https://patchwork.kernel.org/project/netdevbpf/patch/20220224102908.5255-2-jianbol@nvidia.com/

the default conform-exceed action is "reclassify", for a reason we don't
really understand.

The point is that hardware can't offload that police action, so not
specifying "conform-exceed" was always wrong, even though the command
used to work in hardware (but not in software) until the kernel started
adding validation for it.

Fix the command used by the selftest by making the policer drop on
exceed, and pass the packet to the next action (goto) on conform.

Fixes: 8cd6b020b6 ("selftests: ocelot: add some example VCAP IS1, IS2 and ES0 tc offloads")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Link: https://lore.kernel.org/r/20220503121428.842906-1-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-05-12 12:25:42 +02:00
..
android
…
arm64 kselftest/arm64: signal: Skip tests if required features are missing 2021-09-30 10:11:03 +02:00
bpf selftests/bpf/test_lirc_mode2.sh: Exit with proper code 2022-04-08 14:40:22 +02:00
breakpoints
…
capabilities
…
cgroup selftests: cgroup: Test open-time cgroup namespace usage for migration checks 2022-04-13 21:01:10 +02:00
clone3 selftests: fixup build warnings in pidfd / clone3 tests 2022-02-23 12:01:06 +01:00
core selftests/core: fix conflicting types compile error for close_range() 2021-11-18 14:04:01 +01:00
cpu-hotplug
…
cpufreq
…
dmabuf-heaps
…
drivers selftests: ocelot: tc_flower_chains: specify conform-exceed action for policer 2022-05-12 12:25:42 +02:00
efivarfs
…
exec selftests/exec: Add non-regular to TEST_GEN_PROGS 2022-02-23 12:01:03 +01:00
filesystems
…
firmware selftests: firmware: Fix ignored return val of asprintf() warn 2021-09-18 13:40:20 +02:00
fpu
…
ftrace selftests/ftrace: make kprobe profile testcase description unique 2022-01-27 10:54:15 +01:00
futex selftests: futex: Use variable MAKE instead of make 2022-02-08 18:30:39 +01:00
gpio selftests/gpio: Fix build when source tree is read only 2021-06-03 09:00:31 +02:00
ia64
…
intel_pstate
…
ipc
…
ir
…
kcmp
…
kexec
…
kmod
…
kselftest tweewide: Fix most Shebang lines 2021-05-22 11:40:55 +02:00
kvm KVM: selftests: Make sure kvm_create_max_vcpus test won't hit RLIMIT_NOFILE 2021-12-22 09:30:50 +01:00
lib
…
livepatch
…
lkdtm selftests/lkdtm: Fix expected text for CR4 pinning 2021-07-19 09:45:00 +02:00
locking
…
media_tests
…
membarrier
…
memfd selftests/memfd: clean up mapping in mfd_fail_write 2022-03-16 14:16:01 +01:00
memory-hotplug
…
mincore selftests: skip mincore.check_file_mmap when fs lacks needed support 2022-02-23 12:00:59 +01:00
mount
…
mqueue testing/selftests/mqueue: Fix mq_perf_tests to free the allocated cpu set 2022-04-20 09:23:17 +02:00
net selftests: mirror_gre_bridge_1q: Avoid changing PVID while interface is operational 2022-05-12 12:25:41 +02:00
netfilter selftests: netfilter: fix exit value for nft_concat_range 2022-02-23 12:01:01 +01:00
nsfs
…
ntb
…
openat2 selftests: openat2: Skip testcases that fail with EOPNOTSUPP 2022-02-23 12:00:59 +01:00
pid_namespace
…
pidfd selftests: fixup build warnings in pidfd / clone3 tests 2022-02-23 12:01:06 +01:00
powerpc selftests/powerpc/spectre_v2: Return skip code when miss_percent is high 2022-01-27 10:54:23 +01:00
prctl
…
proc
…
pstore
…
ptp
…
ptrace
…
rcutorture
…
resctrl Revert "selftests/resctrl: Use resctrl/info for feature detection" 2021-08-15 14:00:25 +02:00
rseq
…
rtc selftests: rtc: Increase test timeout so that all tests run 2022-02-23 12:00:58 +01:00
safesetid
…
seccomp selftests/seccomp: Don't call read() on TTY from background pgrp 2022-05-12 12:25:39 +02:00
sigaltstack
…
size
…
sparc64
…
splice selftests: splice: Adjust for handler fallback removal 2021-07-14 16:56:42 +02:00
static_keys
…
sync
…
sysctl
…
tc-testing tc-testing: fix list handling 2021-07-14 16:56:26 +02:00
timens
…
timers selftests: timers: rtcpie: skip test if default RTC device does not exist 2021-07-20 16:05:42 +02:00
tmpfs
…
tpm2
…
uevent
…
user
…
vDSO
…
vm selftests, x86: fix how check_cc.sh is being invoked 2022-04-08 14:40:04 +02:00
watchdog
…
wireguard wireguard: device: reset peer src endpoint when netns exits 2021-12-08 09:03:22 +01:00
x86 selftests, x86: fix how check_cc.sh is being invoked 2022-04-08 14:40:04 +02:00
zram selftests/zram: Adapt the situation that /dev/zram0 is being used 2022-02-23 12:00:58 +01:00
.gitignore
…
Makefile
…
gen_kselftest_tar.sh
…
kselftest.h
…
kselftest_deps.sh
…
kselftest_harness.h kselftest: signal all child processes 2022-02-23 12:00:58 +01:00
kselftest_install.sh
…
kselftest_module.h
…
lib.mk selftests: be sure to make khdr before other targets 2021-10-09 14:40:57 +02:00
run_kselftest.sh
…