[LTP] [PATCH 2/2] testcases: netns: Handle "Operation not supported" error
Alexey Kodanev
alexey.kodanev@oracle.com
Wed Aug 8 15:53:17 CEST 2018
On 08/08/2018 04:05 PM, Cyril Hrubis wrote:
> Hi!
>> Not sure if the same should be here. The test-cases with IPsec involve
>> various crypto drivers that are much easier and better to check with
>> ip/netlink, and we also check both: the support in iproute and kernel.
>> I guess, veth and dummy virtual drivers could be checked with:
>>
>> modprobe -q veth || tst_brkm TCONF ...
>
> That will possibly break on embedded systems that have everything
> compiled-in kernel, not sure if there are any out there.
modprobe looks for modules.builtin as well and will just return 0 if
it finds the driver there. But it might not be available for kernels
before 2.6.33: bc081dd6e9f6 ("kbuild: generate modules.builtin").
>
>> Perhaps, we could add tst_drivers_available() helper to the library.
>
> That's a good idea, that way it could be at least tweaked in a single
> place.
>
More information about the ltp
mailing list