Skip to content

Commit

Permalink
mctp: Add initial driver infrastructure
Browse files Browse the repository at this point in the history
Add an empty drivers/net/mctp/, for future interface drivers.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
jk-ozlabs authored and davem330 committed Jul 29, 2021
1 parent 60fc639 commit 4b2e693
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions MAINTAINERS
Expand Up @@ -11037,6 +11037,7 @@ M: Jeremy Kerr <jk@codeconstruct.com.au>
M: Matt Johnston <matt@codeconstruct.com.au>
L: netdev@vger.kernel.org
S: Maintained
F: drivers/net/mctp/
F: include/net/mctp.h
F: net/mctp/

Expand Down
2 changes: 2 additions & 0 deletions drivers/net/Kconfig
Expand Up @@ -483,6 +483,8 @@ config NET_SB1000

source "drivers/net/phy/Kconfig"

source "drivers/net/mctp/Kconfig"

source "drivers/net/mdio/Kconfig"

source "drivers/net/pcs/Kconfig"
Expand Down
1 change: 1 addition & 0 deletions drivers/net/Makefile
Expand Up @@ -69,6 +69,7 @@ obj-$(CONFIG_WAN) += wan/
obj-$(CONFIG_WLAN) += wireless/
obj-$(CONFIG_IEEE802154) += ieee802154/
obj-$(CONFIG_WWAN) += wwan/
obj-$(CONFIG_MCTP) += mctp/

obj-$(CONFIG_VMXNET3) += vmxnet3/
obj-$(CONFIG_XEN_NETDEV_FRONTEND) += xen-netfront.o
Expand Down
8 changes: 8 additions & 0 deletions drivers/net/mctp/Kconfig
@@ -0,0 +1,8 @@

if MCTP

menu "MCTP Device Drivers"

endmenu

endif
Empty file added drivers/net/mctp/Makefile
Empty file.
1 change: 1 addition & 0 deletions include/uapi/linux/if_arp.h
Expand Up @@ -54,6 +54,7 @@
#define ARPHRD_X25 271 /* CCITT X.25 */
#define ARPHRD_HWX25 272 /* Boards with X.25 in firmware */
#define ARPHRD_CAN 280 /* Controller Area Network */
#define ARPHRD_MCTP 290
#define ARPHRD_PPP 512
#define ARPHRD_CISCO 513 /* Cisco HDLC */
#define ARPHRD_HDLC ARPHRD_CISCO
Expand Down

0 comments on commit 4b2e693

Please sign in to comment.