Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prog: recognize ENOTSUPP in testRun()
Not all program types support PROG_TEST_RUN on all kernel versions. Previously, when testing a program type that didn't have a test runner implemented, the following error would be returned: Error when running: can't test program: can't run test: errno 524 Since this isn't overly descriptive, make it clear to the caller that the kernel supports test runs, just not for the particular program type. Also fixes haveProgTestRun on kernels between 4.12 (where PROG_TEST_RUN was introduced) and 4.16 (where sk_filter test runner was added). Signed-off-by: Timo Beckers <timo@isovalent.com>
- Loading branch information