summaryrefslogtreecommitdiff
path: root/include/net/mctp.h
diff options
context:
space:
mode:
authorJeremy Kerr <jk@codeconstruct.com.au>2021-08-10 05:38:34 +0300
committerJakub Kicinski <kuba@kernel.org>2021-08-12 02:01:17 +0300
commit83f0a0b7285b299e006b0698a0ddc1ffacff3e43 (patch)
tree299487a6b4deeabc386740e3ae3778a6758dc660 /include/net/mctp.h
parentddccc5e368a33daeb6862192d4dca8e59af9234a (diff)
downloadlinux-83f0a0b7285b299e006b0698a0ddc1ffacff3e43.tar.xz
mctp: Specify route types, require rtm_type in RTM_*ROUTE messages
This change adds a 'type' attribute to routes, which can be parsed from a RTM_NEWROUTE message. This will help to distinguish local vs. peer routes in a future change. This means userspace will need to set a correct rtm_type in RTM_NEWROUTE and RTM_DELROUTE messages; we currently only accept RTN_UNICAST. Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au> Link: https://lore.kernel.org/r/20210810023834.2231088-1-jk@codeconstruct.com.au Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/mctp.h')
-rw-r--r--include/net/mctp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/mctp.h b/include/net/mctp.h
index 54bbe042c973..a824d47c3c6d 100644
--- a/include/net/mctp.h
+++ b/include/net/mctp.h
@@ -173,6 +173,7 @@ struct mctp_route {
struct mctp_dev *dev;
unsigned int mtu;
+ unsigned char type;
int (*output)(struct mctp_route *route,
struct sk_buff *skb);