| 109a5331 | 19-Feb-2024 |
Jeremy Kerr <[email protected]> |
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 test
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 <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
show more ...
|
| 61b50531 | 19-Feb-2024 |
Jeremy Kerr <[email protected]> |
net: mctp: tests: Add netid argument to __mctp_route_test_init
We'll want to create net-specific test setups in an upcoming change, so allow the caller to provide a non-default netid.
Signed-off-by
net: mctp: tests: Add netid argument to __mctp_route_test_init
We'll want to create net-specific test setups in an upcoming change, so allow the caller to provide a non-default netid.
Signed-off-by: Jeremy Kerr <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
show more ...
|
| 43e67955 | 19-Feb-2024 |
Jeremy Kerr <[email protected]> |
net: mctp: separate key correlation across nets
Currently, we lookup sk_keys from the entire struct net_namespace, which may contain multiple MCTP net IDs. In those cases we want to distinguish betw
net: mctp: separate key correlation across nets
Currently, we lookup sk_keys from the entire struct net_namespace, which may contain multiple MCTP net IDs. In those cases we want to distinguish between endpoints with the same EID but different net ID.
Add the net ID data to the struct mctp_sk_key, populate on add and filter on this during route lookup.
For the ioctl interface, we use a default net of MCTP_INITIAL_DEFAULT_NET (ie., what will be in use for single-net configurations), but we'll extend the ioctl interface to provide net-specific tag allocation in an upcoming change.
Signed-off-by: Jeremy Kerr <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
show more ...
|
| 0de55a7d | 09-Feb-2022 |
Jeremy Kerr <[email protected]> |
mctp: Allow keys matching any local address
Currently, we require an exact match on an incoming packet's dest address, and the key's local_addr field.
In a future change, we may want to set up a ke
mctp: Allow keys matching any local address
Currently, we require an exact match on an incoming packet's dest address, and the key's local_addr field.
In a future change, we may want to set up a key before packets are routed, meaning we have no local address to match on.
This change allows key lookups to match on local_addr = MCTP_ADDR_ANY.
Signed-off-by: Jeremy Kerr <[email protected]> Signed-off-by: David S. Miller <[email protected]>
show more ...
|
| c5755214 | 09-Feb-2022 |
Jeremy Kerr <[email protected]> |
mctp: tests: Add key state tests
This change adds a few more tests to check the key/tag lookups on route input. We add a specific entry to the keys lists, route a packet with specific header values,
mctp: tests: Add key state tests
This change adds a few more tests to check the key/tag lookups on route input. We add a specific entry to the keys lists, route a packet with specific header values, and check for key match/mismatch.
Signed-off-by: Jeremy Kerr <[email protected]> Signed-off-by: David S. Miller <[email protected]>
show more ...
|
| 1e5e9250 | 03-Oct-2021 |
Jeremy Kerr <[email protected]> |
mctp: Add input reassembly tests
Add multi-packet route input tests, for message reassembly. These will feed packets to be received by a bound socket, or dropped.
Signed-off-by: Jeremy Kerr <jk@cod
mctp: Add input reassembly tests
Add multi-packet route input tests, for message reassembly. These will feed packets to be received by a bound socket, or dropped.
Signed-off-by: Jeremy Kerr <[email protected]> Signed-off-by: David S. Miller <[email protected]>
show more ...
|
| 8892c049 | 03-Oct-2021 |
Jeremy Kerr <[email protected]> |
mctp: Add route input to socket tests
Add a few tests for single-packet route inputs, testing the mctp_route_input function.
Signed-off-by: Jeremy Kerr <[email protected]> Signed-off-by: Davi
mctp: Add route input to socket tests
Add a few tests for single-packet route inputs, testing the mctp_route_input function.
Signed-off-by: Jeremy Kerr <[email protected]> Signed-off-by: David S. Miller <[email protected]>
show more ...
|
| b504db40 | 03-Oct-2021 |
Jeremy Kerr <[email protected]> |
mctp: Add packet rx tests
Add a few tests for the initial packet ingress through mctp_pkttype_receive function; mainly packet header sanity checks. Full input routing checks will be added as a separ
mctp: Add packet rx tests
Add a few tests for the initial packet ingress through mctp_pkttype_receive function; mainly packet header sanity checks. Full input routing checks will be added as a separate change.
Signed-off-by: Jeremy Kerr <[email protected]> Signed-off-by: David S. Miller <[email protected]>
show more ...
|