/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 | mctp-i2c.c | 3 * Management Controller Transport Protocol (MCTP) 5 * "DSP0237 Management Component Transport Protocol (MCTP) SMBus/I2C 9 * A netdev is created for each I2C bus that handles MCTP. In the case of an I2C 14 * mctp-i2c-controller.yml devicetree binding has further details. 25 #include <net/mctp.h> 41 #define MCTP_I2C_OF_PROP "mctp-controller" 136 dev_err(&client->dev, "failed, MCTP requires a 7-bit I2C address, addr=0x%x\n", in mctp_i2c_new_client() 150 "A mctp-i2c-controller client cannot be placed on an I2C mux adapter.\n" in mctp_i2c_new_client() 152 " then set mctp-controller property on adapters to attach\n"); in mctp_i2c_new_client() 203 /* Switch the mctp i2c device to receive responses. [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-i3c.c | 4 * "DSP0233 Management Component Transport Protocol (MCTP) I3C Transport 17 #include <net/mctp.h> 24 /* 64 byte payload, 4 byte MCTP header */ 28 /* 4 byte MCTP header, no data, 1 byte PEC */ 42 static const char *MCTP_I3C_OF_PROP = "mctp-controller"; 186 /* Not a mctp-i3c interrupt, ignore it */ in mctp_i3c_ibi_handler() 250 /* Adds a new MCTP i3c_device to a bus */ 280 dev_warn(i3cdev_to_dev(i3c), "Error adding mctp-i3c device, %d\n", rc); in mctp_i3c_add_device() 298 /* probably no "mctp-controller" property on the i3c bus */ in mctp_i3c_probe() 640 /* Removes all mctp-i3c busses */ [all …]
|
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> 28 #define MCTP_SERIAL_MTU 68 /* base mtu (64) + mctp header */ 424 /* we limit at the fixed MTU, which is also the MCTP-standard in mctp_serial_setup() 502 .name = "mctp", 524 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> 418 /* 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 | 75 mctp
|
/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() 861 /* Assign a single EID. ->addrs is freed on mctp netdev release */ in mctp_test_flow_init() 888 /* test that an outgoing skb has the correct MCTP extension data set */ 919 /* test that outgoing skbs, after fragmentation, all have the correct MCTP 1012 mns = &sock_net(sock->sk)->mctp; in mctp_test_route_output_key_create() 1065 .name = "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
|
H A D | mctpdevice.h | 3 * Management Component Transport Protocol (MCTP) - device
|
/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";
|
/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/net/ |
H A D | Makefile | 80 obj-$(CONFIG_MCTP) += mctp/
|