1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo * CDDL HEADER START
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo * The contents of this file are subject to the terms of the
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo * Common Development and Distribution License (the "License").
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo * You may not use this file except in compliance with the License.
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo * See the License for the specific language governing permissions
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo * and limitations under the License.
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo * When distributing Covered Code, include this CDDL HEADER in each
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo * If applicable, add the following below this CDDL HEADER, with the
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo * fields enclosed by brackets "[]" replaced with your own identifying
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo * information: Portions Copyright [yyyy] [name of copyright owner]
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo * CDDL HEADER END
c1c61f44e88f4c8c155272ee56d868043146096asb * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo * Use is subject to license terms.
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo#pragma ident "%Z%%M% %I% %E% SMI"
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppoextern "C" {
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo * Convert ethernet (mac) address to hash table key.
c1c61f44e88f4c8c155272ee56d868043146096asb (key = ((((uint64_t)(addr)->ether_addr_octet[0]) << 40) | \
c1c61f44e88f4c8c155272ee56d868043146096asb#define VLAN_ID_KEY(key) ((mod_hash_key_t)(uintptr_t)(key))
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo * Multicast forwarding database (mFDB) is a hashtable
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo * keyed off the mac address, with the value being a linked
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo * list of mfdb_ent_t structures, each of which is a destination
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo * (either a vsw_port or the vsw instance itself when plumbed as
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo * a network device) to which the multicast pkt should be forwarded.
c1c61f44e88f4c8c155272ee56d868043146096asb * Forwarding database entry. Each member port of a vsw will have an entry in
c1c61f44e88f4c8c155272ee56d868043146096asb * the vsw's fdb. Ref count is bumped up while sending a packet destined to a
c1c61f44e88f4c8c155272ee56d868043146096asb * port corresponding to the fdb entry.
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo#endif /* _VSW_FDB_H */