| 0de55a7d | 09-Feb-2022 |
Jeremy Kerr <jk@codeconstruct.com.au> |
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 <jk@codeconstruct.com.au> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
| c5755214 | 09-Feb-2022 |
Jeremy Kerr <jk@codeconstruct.com.au> |
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 <jk@codeconstruct.com.au> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
| 1e5e9250 | 03-Oct-2021 |
Jeremy Kerr <jk@codeconstruct.com.au> |
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 <jk@codeconstruct.com.au> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
| 8892c049 | 03-Oct-2021 |
Jeremy Kerr <jk@codeconstruct.com.au> |
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 <jk@codeconstruct.com.au> 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 <jk@codeconstruct.com.au> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
| b504db40 | 03-Oct-2021 |
Jeremy Kerr <jk@codeconstruct.com.au> |
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 <jk@codeconstruct.com.au> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|