route.c (b022f8866ea5014d39ae569897c271e41f5c9799) | route.c (161eba50e183ed4ca20f6d8dec19bdc526d2b2b9) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Management Component Transport Protocol (MCTP) - routing 4 * implementation. 5 * 6 * This is currently based on a simple routing table, with no dst cache. The 7 * number of routes should stay fairly small, so the lookup cost is small. 8 * 9 * Copyright (c) 2021 Code Construct 10 * Copyright (c) 2021 Google 11 */ 12 13#include <linux/idr.h> | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Management Component Transport Protocol (MCTP) - routing 4 * implementation. 5 * 6 * This is currently based on a simple routing table, with no dst cache. The 7 * number of routes should stay fairly small, so the lookup cost is small. 8 * 9 * Copyright (c) 2021 Code Construct 10 * Copyright (c) 2021 Google 11 */ 12 13#include <linux/idr.h> |
14#include <linux/kconfig.h> |
|
14#include <linux/mctp.h> 15#include <linux/netdevice.h> 16#include <linux/rtnetlink.h> 17#include <linux/skbuff.h> 18 19#include <uapi/linux/if_arp.h> 20 21#include <net/mctp.h> --- 1201 unchanged lines hidden (view full) --- 1223void __exit mctp_routes_exit(void) 1224{ 1225 unregister_pernet_subsys(&mctp_net_ops); 1226 rtnl_unregister(PF_MCTP, RTM_DELROUTE); 1227 rtnl_unregister(PF_MCTP, RTM_NEWROUTE); 1228 rtnl_unregister(PF_MCTP, RTM_GETROUTE); 1229 dev_remove_pack(&mctp_packet_type); 1230} | 15#include <linux/mctp.h> 16#include <linux/netdevice.h> 17#include <linux/rtnetlink.h> 18#include <linux/skbuff.h> 19 20#include <uapi/linux/if_arp.h> 21 22#include <net/mctp.h> --- 1201 unchanged lines hidden (view full) --- 1224void __exit mctp_routes_exit(void) 1225{ 1226 unregister_pernet_subsys(&mctp_net_ops); 1227 rtnl_unregister(PF_MCTP, RTM_DELROUTE); 1228 rtnl_unregister(PF_MCTP, RTM_NEWROUTE); 1229 rtnl_unregister(PF_MCTP, RTM_GETROUTE); 1230 dev_remove_pack(&mctp_packet_type); 1231} |
1232 1233#if IS_ENABLED(CONFIG_MCTP_TEST) 1234#include "test/route-test.c" 1235#endif |
|