Re: [PATCH net-next v2 2/2] net: ipa: fix IPA validation

From: Alex Elder
Date: Mon Mar 22 2021 - 20:04:38 EST

On 3/22/21 5:56 PM, Andrew Lunn wrote:
The solution is to create a user space tool inside the
drivers/net/ipa directory that will link with the kernel
source files and will perform all the basic one-time checks
I want to make.

Hi Alex

Have you found any other driver doing this? Where do they keep there

Could this be a selftest, put somewhere in tools/testing/selftests.

Or can this be a test kernel module. Eg. we have crypt/testmsg.c which
runs a number of tests on the crypto subsystem,
./kernel/time/test_udelay.c which runs times on udelay.

Rather than inventing something new, please follow other examples
already in the kernel.

I will. I did see the tools/testing directory and I'll
look at how people have done things there.

I need to try to get it working first, then I'll figure
out where it belongs. I think I'll be able to do a user
space test, but it's a little tricky to be sure it's
actually testing what I want. If that ends up being
too hard, I'll look into kernel test module.

Thanks for the suggestions.