diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2007-07-20 02:30:25 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-07-20 17:14:30 -0700 |
commit | 028ebff26915df18ab0cda664e2f0582650af155 (patch) | |
tree | 9b15fa56de4c8956479b14a8b150b10eeaac1f8c /drivers/net/sunvnet.h | |
parent | 5fc986100cb253897b4e16992e805343d30a819e (diff) | |
download | linux-3.10-028ebff26915df18ab0cda664e2f0582650af155.tar.gz linux-3.10-028ebff26915df18ab0cda664e2f0582650af155.tar.bz2 linux-3.10-028ebff26915df18ab0cda664e2f0582650af155.zip |
[SPARC64]: Add proper multicast support to VNET driver.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sunvnet.h')
-rw-r--r-- | drivers/net/sunvnet.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/sunvnet.h b/drivers/net/sunvnet.h index 7d3a0cac727..d347a5bf24b 100644 --- a/drivers/net/sunvnet.h +++ b/drivers/net/sunvnet.h @@ -30,6 +30,8 @@ struct vnet_port { struct hlist_node hash; u8 raddr[ETH_ALEN]; + u8 switch_port; + u8 __pad; struct vnet *vp; @@ -53,6 +55,13 @@ static inline unsigned int vnet_hashfn(u8 *mac) return val & (VNET_PORT_HASH_MASK); } +struct vnet_mcast_entry { + u8 addr[ETH_ALEN]; + u8 sent; + u8 hit; + struct vnet_mcast_entry *next; +}; + struct vnet { /* Protects port_list and port_hash. */ spinlock_t lock; @@ -65,6 +74,8 @@ struct vnet { struct hlist_head port_hash[VNET_PORT_HASH_SIZE]; + struct vnet_mcast_entry *mcast_list; + struct list_head list; u64 local_mac; }; |