mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
mctp: Add device handling and netlink interface
This change adds the infrastructure for managing MCTP netdevices; we add a pointer to the AF_MCTP-specific data to struct netdevice, and hook up the rtnetlink operations for adding and removing addresses. Includes changes from Matt Johnston <matt@codeconstruct.com.au>. Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
4b2e69305c
commit
583be982d9
@@ -1823,6 +1823,7 @@ enum netdev_ml_priv_type {
|
||||
* @ieee802154_ptr: IEEE 802.15.4 low-rate Wireless Personal Area Network
|
||||
* device struct
|
||||
* @mpls_ptr: mpls_dev struct pointer
|
||||
* @mctp_ptr: MCTP specific data
|
||||
*
|
||||
* @dev_addr: Hw address (before bcast,
|
||||
* because most packets are unicast)
|
||||
@@ -2110,6 +2111,9 @@ struct net_device {
|
||||
#if IS_ENABLED(CONFIG_MPLS_ROUTING)
|
||||
struct mpls_dev __rcu *mpls_ptr;
|
||||
#endif
|
||||
#if IS_ENABLED(CONFIG_MCTP)
|
||||
struct mctp_dev __rcu *mctp_ptr;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Cache lines mostly used on receive path (including eth_type_trans())
|
||||
|
||||
Reference in New Issue
Block a user