/linux/drivers/net/mctp/ |
H A D | Kconfig | 2 if MCTP 4 menu "MCTP Device Drivers" 7 tristate "MCTP serial transport" 11 This driver provides an MCTP-over-serial interface, through a 13 MCTP Serial Transport Binding". By attaching the ldisc to a serial 14 device, we get a new net device to transport MCTP packets. 16 This allows communication with external MCTP endpoints which use 18 provide MCTP connectivity between virtual machines, by forwarding 21 Say y here if you need to connect to MCTP endpoints over serial. To 22 compile as a module, use m; the module will be called mctp-serial. [all …]
|
H A D | Makefile | 1 obj-$(CONFIG_MCTP_SERIAL) += mctp-serial.o 2 obj-$(CONFIG_MCTP_TRANSPORT_I2C) += mctp-i2c.o 3 obj-$(CONFIG_MCTP_TRANSPORT_I3C) += mctp-i3c.o
|
H A D | mctp-serial.c | 3 * Management Component Transport Protocol (MCTP) - serial transport 5 * "DSP0253 - Management Component Transport Protocol (MCTP) Serial Transport 10 * This driver provides DSP0253-type MCTP-over-serial transport using a Linux 24 #include <linux/mctp.h> 25 #include <net/mctp.h> 29 #define MCTP_SERIAL_MTU 68 /* base mtu (64) + mctp header */ 425 /* we limit at the fixed MTU, which is also the MCTP-standard in mctp_serial_setup() 503 .name = "mctp", 525 MODULE_DESCRIPTION("MCTP Serial transport");
|
/linux/Documentation/devicetree/bindings/net/ |
H A D | mctp-i2c-controller.yaml | 4 $id: http://devicetree.org/schemas/net/mctp-i2c-controller.yaml# 7 title: MCTP I2C transport 13 An mctp-i2c-controller defines a local MCTP endpoint on an I2C controller. 14 MCTP I2C is specified by DMTF DSP0237. 16 An mctp-i2c-controller must be attached to an I2C adapter which supports 18 busses) are attached to the mctp-i2c-controller with a 'mctp-controller' 19 property on each used bus. Each mctp-controller I2C bus will be presented 20 to the host system as a separate MCTP I2C instance. 24 const: mctp-i2c-controller 47 mctp-controller; [all …]
|
/linux/net/mctp/ |
H A D | Kconfig | 2 menuconfig MCTP config 4 bool "MCTP core protocol support" 6 Management Component Transport Protocol (MCTP) is an in-system 11 This option enables core MCTP support. For communicating with other 16 bool "MCTP core tests" if !KUNIT_ALL_TESTS 18 depends on MCTP=y && KUNIT=y 23 depends on MCTP
|
H A D | neigh.c | 3 * Management Component Transport Protocol (MCTP) - routing 14 #include <linux/mctp.h> 19 #include <net/mctp.h> 32 mutex_lock(&net->mctp.neigh_lock); in mctp_neigh_add() 55 list_add_rcu(&neigh->list, &net->mctp.neighbours); in mctp_neigh_add() 58 mutex_unlock(&net->mctp.neigh_lock); in mctp_neigh_add() 76 mutex_lock(&net->mctp.neigh_lock); in mctp_neigh_remove_dev() 77 list_for_each_entry_safe(neigh, tmp, &net->mctp.neighbours, list) { in mctp_neigh_remove_dev() 85 mutex_unlock(&net->mctp.neigh_lock); in mctp_neigh_remove_dev() 95 mutex_lock(&net->mctp.neigh_lock); in mctp_neigh_remove() [all …]
|
H A D | af_mctp.c | 3 * Management Component Transport Protocol (MCTP) 12 #include <linux/mctp.h> 16 #include <net/mctp.h> 21 #include <trace/events/mctp.h> 68 /* it's a valid sockaddr for MCTP, cast and do protocol checks */ in mctp_bind() 286 __must_hold(&net->mctp.keys_lock) in __mctp_key_remove() 455 spin_lock_irqsave(&net->mctp.keys_lock, flags); in mctp_ioctl_alloctag() 459 spin_unlock_irqrestore(&net->mctp.keys_lock, flags); in mctp_ioctl_alloctag() 492 spin_lock_irqsave(&net->mctp.keys_lock, flags); in mctp_ioctl_droptag() 509 spin_unlock_irqrestore(&net->mctp.keys_lock, flags); in mctp_ioctl_droptag() [all …]
|
H A D | route.c | 3 * Management Component Transport Protocol (MCTP) - routing 15 #include <linux/mctp.h> 22 #include <net/mctp.h> 27 #include <trace/events/mctp.h> 58 sk_for_each_rcu(sk, &net->mctp.binds) { in mctp_lookup_bind() 78 * struct net->mctp.keys contains our set of currently-allocated keys for 79 * MCTP tag management. The lookup tuple for these is the peer EID, 80 * local EID and MCTP tag. 145 spin_lock_irqsave(&net->mctp.keys_lock, flags); in mctp_lookup_key() 147 hlist_for_each_entry(key, &net->mctp.keys, hlist) { in mctp_lookup_key() [all …]
|
H A D | Makefile | 2 obj-$(CONFIG_MCTP) += mctp.o 3 mctp-objs := af_mctp.o device.o route.o neigh.o
|
H A D | device.c | 3 * Management Component Transport Protocol (MCTP) - device implementation. 11 #include <linux/mctp.h> 18 #include <net/mctp.h> 421 /* Matches netdev types that should have MCTP handling */
|
/linux/Documentation/networking/ |
H A D | mctp.rst | 4 Management Component Transport Protocol (MCTP) 7 net/mctp/ contains protocol support for MCTP, as defined by DMTF standard 9 provided in drivers/net/mctp/. 11 The core code provides a socket-based interface to send and receive MCTP 17 The kernel models the local MCTP topology through two items: interfaces and 20 An interface (or "link") is an instance of an MCTP physical transport binding 24 A network defines a unique address space for MCTP endpoints by endpoint-ID 41 MCTP uses ``AF_MCTP`` / ``PF_MCTP`` for the address- and protocol- families. 42 Since MCTP is message-based, only ``SOCK_DGRAM`` sockets are supported. 76 The following sections describe the MCTP-specific behaviours of the standard [all …]
|
H A D | index.rst | 76 mctp
|
/linux/include/net/ |
H A D | mctp.h | 3 * Management Component Transport Protocol (MCTP) 13 #include <linux/mctp.h> 18 /* MCTP packet definitions */ 227 * These are held in the pernet->mctp.routes list, with RCU protection for 301 /* MCTP IDs and Codes from DMTF specification 302 * "DSP0239 Management Component Transport Protocol (MCTP) IDs and Codes"
|
H A D | net_namespace.h | 39 #include <net/netns/mctp.h> 183 struct netns_mctp mctp; member
|
/linux/include/net/netns/ |
H A D | mctp.h | 3 * MCTP per-net structures 29 /* MCTP network */
|
/linux/net/mctp/test/ |
H A D | utils.c | 4 #include <linux/mctp.h> 7 #include <net/mctp.h>
|
H A D | route-test.c | 58 list_add_rcu(&rt->rt.list, &net->mctp.routes); in mctp_test_create_route() 575 mns = &sock_net(sock->sk)->mctp; in mctp_test_route_input_sk_keys() 777 mns = &sock_net(t->sock->sk)->mctp; in mctp_test_route_input_multiple_nets_key_init() 945 /* Assign a single EID. ->addrs is freed on mctp netdev release */ in mctp_test_flow_init() 972 /* test that an outgoing skb has the correct MCTP extension data set */ 1003 /* test that outgoing skbs, after fragmentation, all have the correct MCTP 1096 mns = &sock_net(sock->sk)->mctp; in mctp_test_route_output_key_create() 1151 .name = "mctp",
|
/linux/include/uapi/linux/ |
H A D | mctp.h | 3 * Management Component Transport Protocol (MCTP) 57 * MCTP network ID as part of the allocated tag. Using this assumes the default
|
H A D | tty.h | 39 #define N_MCTP 28 /* MCTP-over-serial */
|
/linux/arch/arm/boot/dts/aspeed/ |
H A D | aspeed-bmc-facebook-greatlakes.dts | 159 mctp-controller; 169 mctp@10 { 170 compatible = "mctp-i2c-controller";
|
H A D | aspeed-bmc-facebook-harma.dts | 381 mctp-controller; 384 mctp@10 { 385 compatible = "mctp-i2c-controller";
|
/linux/Documentation/devicetree/bindings/i3c/ |
H A D | i3c.yaml | 58 mctp-controller: 62 MCTP over I3C transport.
|
/linux/include/trace/events/ |
H A D | mctp.h | 4 #define TRACE_SYSTEM mctp
|
/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_fw_hdr.h | 53 CODE_MCTP_PASSTHRU, /* 7 - NCSI / MCTP Passt-hrough firmware */
|
/linux/Documentation/netlink/specs/ |
H A D | rt_link.yaml | 1165 name: "mctp" 1168 nested-attributes: mctp-attrs 2084 name: mctp-attrs 2087 name: mctp-net
|