drm/tests: hdmi: Fix memory leaks in drm_display_mode_from_cea_vic()
[drm/drm-misc.git] / drivers / scsi / fnic / fnic_fip.h
blob79f53029737b03cd2f8785fbd474f1d9144740ec
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright 2008 Cisco Systems, Inc. All rights reserved.
4 * Copyright 2007 Nuova Systems, Inc. All rights reserved.
5 */
7 #ifndef _FNIC_FIP_H_
8 #define _FNIC_FIP_H_
11 #define FCOE_CTLR_START_DELAY 2000 /* ms after first adv. to choose FCF */
12 #define FCOE_CTLR_FIPVLAN_TOV 2000 /* ms after FIP VLAN disc */
13 #define FCOE_CTLR_MAX_SOL 8
15 #define FINC_MAX_FLOGI_REJECTS 8
17 struct vlan {
18 __be16 vid;
19 __be16 type;
23 * VLAN entry.
25 struct fcoe_vlan {
26 struct list_head list;
27 u16 vid; /* vlan ID */
28 u16 sol_count; /* no. of sols sent */
29 u16 state; /* state */
32 enum fip_vlan_state {
33 FIP_VLAN_AVAIL = 0, /* don't do anything */
34 FIP_VLAN_SENT = 1, /* sent */
35 FIP_VLAN_USED = 2, /* succeed */
36 FIP_VLAN_FAILED = 3, /* failed to response */
39 struct fip_vlan {
40 struct ethhdr eth;
41 struct fip_header fip;
42 struct {
43 struct fip_mac_desc mac;
44 struct fip_wwn_desc wwnn;
45 } desc;
48 #endif /* __FINC_FIP_H_ */