aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/mctp.h
diff options
context:
space:
mode:
authorMatt Johnston <[email protected]>2022-04-01 02:48:44 +0000
committerDavid S. Miller <[email protected]>2022-04-01 11:04:15 +0000
commit4a9dda1c1da65beee994f0977a56a9a21c5db2a7 (patch)
treed83d15ecd2c40edc981b748a909ac3486e155c6e /include/net/mctp.h
parentmctp i2c: correct mctp_i2c_header_create result (diff)
downloadkernel-4a9dda1c1da65beee994f0977a56a9a21c5db2a7.tar.gz
kernel-4a9dda1c1da65beee994f0977a56a9a21c5db2a7.zip
mctp: Use output netdev to allocate skb headroom
Previously the skb was allocated with headroom MCTP_HEADER_MAXLEN, but that isn't sufficient if we are using devs that are not MCTP specific. This also adds a check that the smctp_halen provided to sendmsg for extended addressing is the correct size for the netdev. Fixes: 833ef3b91de6 ("mctp: Populate socket implementation") Reported-by: Matthew Rinaldi <[email protected]> Signed-off-by: Matt Johnston <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include/net/mctp.h')
-rw-r--r--include/net/mctp.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/net/mctp.h b/include/net/mctp.h
index d37268fe6825..82800d521c3d 100644
--- a/include/net/mctp.h
+++ b/include/net/mctp.h
@@ -36,8 +36,6 @@ struct mctp_hdr {
#define MCTP_HDR_TAG_SHIFT 0
#define MCTP_HDR_TAG_MASK GENMASK(2, 0)
-#define MCTP_HEADER_MAXLEN 4
-
#define MCTP_INITIAL_DEFAULT_NET 1
static inline bool mctp_address_unicast(mctp_eid_t eid)