diff options
| author | Jeremy Kerr <[email protected]> | 2025-07-02 06:20:12 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2025-07-08 10:39:24 +0000 |
| commit | 28ddbb2abe13776d3835f4bda535edd46336870a (patch) | |
| tree | be7d78ea02badffe154c7021a70dd13540f30abc /net/mctp/test/utils.c | |
| parent | net: mctp: remove routes by netid, not by device (diff) | |
| download | kernel-28ddbb2abe13776d3835f4bda535edd46336870a.tar.gz kernel-28ddbb2abe13776d3835f4bda535edd46336870a.zip | |
net: mctp: allow NL parsing directly into a struct mctp_route
The netlink route parsing functions end up setting a bunch of output
variables from the rt attributes. This will get messy when the routes
become more complex.
So, split the rt parsing into two types: a lookup (returning route
target data suitable for a route lookup, like when deleting a route) and
a populate (setting fields of a struct mctp_route).
In doing this, we need to separate the route allocation from
mctp_route_add, so add some comments on the lifetime semantics for the
latter.
Signed-off-by: Jeremy Kerr <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/mctp/test/utils.c')
0 files changed, 0 insertions, 0 deletions
