2 * Copyright (c) 2005-2009 Brocade Communications Systems, Inc.
6 * Linux driver for Brocade Fibre Channel Host Bus Adapter.
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License (GPL) Version 2 as
10 * published by the Free Software Foundation
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
18 #ifndef __BFA_DEFS_IM_TEAM_H__
19 #define __BFA_DEFS_IM_TEAM_H__
21 #include <protocol/types.h>
23 #define BFA_TEAM_MAX_PORTS 8
24 #define BFA_TEAM_NAME_LEN 256
25 #define BFA_MAX_NUM_TEAMS 16
26 #define BFA_TEAM_INVALID_DELAY -1
28 BFA_LACP_RATE_SLOW
= 1,
32 BFA_TEAM_MODE_FAIL_OVER
= 1,
33 BFA_TEAM_MODE_FAIL_BACK
,
38 BFA_XMIT_POLICY_L2
= 1,
40 } bfa_im_xmit_policy_t
;
42 bfa_im_team_mode_t team_mode
;
43 bfa_im_lacp_rate_t lacp_rate
;
44 bfa_im_xmit_policy_t xmit_policy
;
46 wchar_t primary
[BFA_ADAPTER_NAME_LEN
];
47 wchar_t preferred_primary
[BFA_ADAPTER_NAME_LEN
];
51 u16 vlan_list
[BFA_MAX_VLANS_PER_PORT
];
52 wchar_t team_guid_list
[BFA_TEAM_MAX_PORTS
][BFA_ADAPTER_GUID_LEN
];
53 wchar_t ioc_name_list
[BFA_TEAM_MAX_PORTS
][BFA_ADAPTER_NAME_LEN
];
56 wchar_t team_name
[BFA_TEAM_NAME_LEN
];
57 bfa_im_xmit_policy_t xmit_policy
;
59 wchar_t primary
[BFA_ADAPTER_NAME_LEN
];
60 wchar_t preferred_primary
[BFA_ADAPTER_NAME_LEN
];
61 } bfa_im_team_edit_t
, *pbfa_im_team_edit_t
;
63 wchar_t team_name
[BFA_TEAM_NAME_LEN
];
64 bfa_im_team_mode_t team_mode
;
68 bfa_im_team_info_t team_info
[BFA_MAX_NUM_TEAMS
];
70 } bfa_im_team_list_t
, *pbfa_im_team_list_t
;
72 #endif /* __BFA_DEFS_IM_TEAM_H__ */