Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright 2008 Cisco Systems, Inc.  All rights reserved.
0004  * Copyright 2007 Nuova Systems, Inc.  All rights reserved.
0005  */
0006 
0007 #ifndef _FNIC_FIP_H_
0008 #define _FNIC_FIP_H_
0009 
0010 
0011 #define FCOE_CTLR_START_DELAY    2000    /* ms after first adv. to choose FCF */
0012 #define FCOE_CTLR_FIPVLAN_TOV    2000    /* ms after FIP VLAN disc */
0013 #define FCOE_CTLR_MAX_SOL        8
0014 
0015 #define FINC_MAX_FLOGI_REJECTS   8
0016 
0017 struct vlan {
0018     __be16 vid;
0019     __be16 type;
0020 };
0021 
0022 /*
0023  * VLAN entry.
0024  */
0025 struct fcoe_vlan {
0026     struct list_head list;
0027     u16 vid;        /* vlan ID */
0028     u16 sol_count;      /* no. of sols sent */
0029     u16 state;      /* state */
0030 };
0031 
0032 enum fip_vlan_state {
0033     FIP_VLAN_AVAIL  = 0,    /* don't do anything */
0034     FIP_VLAN_SENT   = 1,    /* sent */
0035     FIP_VLAN_USED   = 2,    /* succeed */
0036     FIP_VLAN_FAILED = 3,    /* failed to response */
0037 };
0038 
0039 struct fip_vlan {
0040     struct ethhdr eth;
0041     struct fip_header fip;
0042     struct {
0043         struct fip_mac_desc mac;
0044         struct fip_wwn_desc wwnn;
0045     } desc;
0046 };
0047 
0048 #endif  /* __FINC_FIP_H_ */