1*d14abf15SRobert Mustacchi /*******************************************************************************
2*d14abf15SRobert Mustacchi  * CDDL HEADER START
3*d14abf15SRobert Mustacchi  *
4*d14abf15SRobert Mustacchi  * The contents of this file are subject to the terms of the
5*d14abf15SRobert Mustacchi  * Common Development and Distribution License (the "License").
6*d14abf15SRobert Mustacchi  * You may not use this file except in compliance with the License.
7*d14abf15SRobert Mustacchi  *
8*d14abf15SRobert Mustacchi  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*d14abf15SRobert Mustacchi  * or http://www.opensolaris.org/os/licensing.
10*d14abf15SRobert Mustacchi  * See the License for the specific language governing permissions
11*d14abf15SRobert Mustacchi  * and limitations under the License.
12*d14abf15SRobert Mustacchi  *
13*d14abf15SRobert Mustacchi  * When distributing Covered Code, include this CDDL HEADER in each
14*d14abf15SRobert Mustacchi  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*d14abf15SRobert Mustacchi  * If applicable, add the following below this CDDL HEADER, with the
16*d14abf15SRobert Mustacchi  * fields enclosed by brackets "[]" replaced with your own identifying
17*d14abf15SRobert Mustacchi  * information: Portions Copyright [yyyy] [name of copyright owner]
18*d14abf15SRobert Mustacchi  *
19*d14abf15SRobert Mustacchi  * CDDL HEADER END
20*d14abf15SRobert Mustacchi  *
21*d14abf15SRobert Mustacchi  * Copyright 2014 QLogic Corporation
22*d14abf15SRobert Mustacchi  * The contents of this file are subject to the terms of the
23*d14abf15SRobert Mustacchi  * QLogic End User License (the "License").
24*d14abf15SRobert Mustacchi  * You may not use this file except in compliance with the License.
25*d14abf15SRobert Mustacchi  *
26*d14abf15SRobert Mustacchi  * You can obtain a copy of the License at
27*d14abf15SRobert Mustacchi  * http://www.qlogic.com/Resources/Documents/DriverDownloadHelp/
28*d14abf15SRobert Mustacchi  * QLogic_End_User_Software_License.txt
29*d14abf15SRobert Mustacchi  * See the License for the specific language governing permissions
30*d14abf15SRobert Mustacchi  * and limitations under the License.
31*d14abf15SRobert Mustacchi  *
32*d14abf15SRobert Mustacchi  *
33*d14abf15SRobert Mustacchi  * Module Description:
34*d14abf15SRobert Mustacchi  *
35*d14abf15SRobert Mustacchi  *
36*d14abf15SRobert Mustacchi  *
37*d14abf15SRobert Mustacchi  ******************************************************************************/
38*d14abf15SRobert Mustacchi 
39*d14abf15SRobert Mustacchi 
40*d14abf15SRobert Mustacchi /* The dest MAC address of GVRP is 01-80-C2-00-00-21 */
41*d14abf15SRobert Mustacchi #define IS_GVRP_ADDR(_addr) \
42*d14abf15SRobert Mustacchi     (((_addr)[0] == 0x01) && ((_addr)[1] == 0x80) && ((_addr)[2] == 0xC2) && ((_addr)[3] == 0x00) && ((_addr)[4] == 0x00) && ((_addr)[5] == 0x21))
43*d14abf15SRobert Mustacchi 
44*d14abf15SRobert Mustacchi 
45*d14abf15SRobert Mustacchi /* The dest MAC address of LACP is 01-80-C2-00-00-02 */
46*d14abf15SRobert Mustacchi #define IS_LACP_ADDR(_addr) \
47*d14abf15SRobert Mustacchi     (((_addr)[0] == 0x01) && ((_addr)[1] == 0x80) && ((_addr)[2] == 0xC2) && ((_addr)[3] == 0x00) && ((_addr)[4] == 0x00) && ((_addr)[5] == 0x02))
48*d14abf15SRobert Mustacchi 
49*d14abf15SRobert Mustacchi 
50