diff options
| author | Jeremy Kerr <jk@codeconstruct.com.au> | 2025-07-02 14:20:04 +0800 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2025-07-08 12:39:23 +0200 |
| commit | 3007f90ec0385304ab5794e9585427b73f40e32f (patch) | |
| tree | 5d2a12bb7784ed2e890b145aff0a0bba165219d7 /include/net/mctp.h | |
| parent | 269936db5eb3962fe290b1dc4dbf1859cd5a04dd (diff) | |
net: mctp: separate cb from direct-addressing routing
Now that we have the dst->haddr populated by sendmsg (when extended
addressing is in use), we no longer need to stash the link-layer address
in the skb->cb.
Instead, only use skb->cb for incoming lladdr data.
While we're at it: remove cb->src, as was never used.
Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Link: https://patch.msgid.link/20250702-dev-forwarding-v5-4-1468191da8a4@codeconstruct.com.au
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/net/mctp.h')
| -rw-r--r-- | include/net/mctp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/mctp.h b/include/net/mctp.h index 6c9c5c48f59a..b3af0690f607 100644 --- a/include/net/mctp.h +++ b/include/net/mctp.h @@ -183,8 +183,8 @@ struct mctp_sk_key { struct mctp_skb_cb { unsigned int magic; unsigned int net; - int ifindex; /* extended/direct addressing if set */ - mctp_eid_t src; + /* fields below provide extended addressing for ingress to recvmsg() */ + int ifindex; unsigned char halen; unsigned char haddr[MAX_ADDR_LEN]; }; |