diff options
author | Jeremy Kerr <jk@codeconstruct.com.au> | 2025-07-02 14:20:12 +0800 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2025-07-08 12:39:24 +0200 |
commit | 28ddbb2abe13776d3835f4bda535edd46336870a (patch) | |
tree | be7d78ea02badffe154c7021a70dd13540f30abc /net/unix | |
parent | 4a1de053d7f0940936f6602ad53fe077bb10ff7f (diff) |
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 <jk@codeconstruct.com.au>
Link: https://patch.msgid.link/20250702-dev-forwarding-v5-12-1468191da8a4@codeconstruct.com.au
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/unix')
0 files changed, 0 insertions, 0 deletions