diff options
| author | Jeremy Kerr <jk@codeconstruct.com.au> | 2024-02-19 17:51:55 +0800 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2024-02-22 13:32:55 +0100 |
| commit | 109a5331143da79eb2b63dee9c65188784edfbce (patch) | |
| tree | 257938161cfe2341ceb88b59f017f98c968dcc3d /net/mctp/Kconfig | |
| parent | 1394c1dec1c619a46867ed32791a29695372bff8 (diff) | |
| download | linux-next-109a5331143da79eb2b63dee9c65188784edfbce.tar.gz linux-next-109a5331143da79eb2b63dee9c65188784edfbce.zip | |
net: mctp: tests: Test that outgoing skbs have flow data populated
When CONFIG_MCTP_FLOWS is enabled, outgoing skbs should have their
SKB_EXT_MCTP extension set for drivers to consume.
Add two tests for local-to-output routing that check for the flow
extensions: one for the simple single-packet case, and one for
fragmentation.
We now make MCTP_TEST select MCTP_FLOWS, so we always get coverage of
these flow tests. The tests are skippable if MCTP_FLOWS is (otherwise)
disabled, but that would need manual config tweaking.
Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/mctp/Kconfig')
| -rw-r--r-- | net/mctp/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mctp/Kconfig b/net/mctp/Kconfig index 3a5c0e70da77..d8d3413a37f7 100644 --- a/net/mctp/Kconfig +++ b/net/mctp/Kconfig @@ -14,6 +14,7 @@ menuconfig MCTP config MCTP_TEST bool "MCTP core tests" if !KUNIT_ALL_TESTS + select MCTP_FLOWS depends on MCTP=y && KUNIT=y default KUNIT_ALL_TESTS |
