X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fnet%2Fsunvnet.h;h=d347a5bf24b00d1f69e50dc78106086ae3e99eac;hb=62429f434091586d54b37b8dd46076e7c08b27b9;hp=1c887302d46dd4e76474ffd850768073243ce86e;hpb=492559af235eb56884d62553f191c0b5c4def990;p=linux-2.6 diff --git a/drivers/net/sunvnet.h b/drivers/net/sunvnet.h index 1c887302d4..d347a5bf24 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; @@ -60,11 +69,15 @@ struct vnet { struct net_device *dev; u32 msg_enable; - struct vio_dev *vdev; struct list_head port_list; struct hlist_head port_hash[VNET_PORT_HASH_SIZE]; + + struct vnet_mcast_entry *mcast_list; + + struct list_head list; + u64 local_mac; }; #endif /* _SUNVNET_H */