fnic_fip.h 999 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. */
  6. #ifndef _FNIC_FIP_H_
  7. #define _FNIC_FIP_H_
  8. #define FCOE_CTLR_START_DELAY 2000 /* ms after first adv. to choose FCF */
  9. #define FCOE_CTLR_FIPVLAN_TOV 2000 /* ms after FIP VLAN disc */
  10. #define FCOE_CTLR_MAX_SOL 8
  11. #define FINC_MAX_FLOGI_REJECTS 8
  12. struct vlan {
  13. __be16 vid;
  14. __be16 type;
  15. };
  16. /*
  17. * VLAN entry.
  18. */
  19. struct fcoe_vlan {
  20. struct list_head list;
  21. u16 vid; /* vlan ID */
  22. u16 sol_count; /* no. of sols sent */
  23. u16 state; /* state */
  24. };
  25. enum fip_vlan_state {
  26. FIP_VLAN_AVAIL = 0, /* don't do anything */
  27. FIP_VLAN_SENT = 1, /* sent */
  28. FIP_VLAN_USED = 2, /* succeed */
  29. FIP_VLAN_FAILED = 3, /* failed to response */
  30. };
  31. struct fip_vlan {
  32. struct ethhdr eth;
  33. struct fip_header fip;
  34. struct {
  35. struct fip_mac_desc mac;
  36. struct fip_wwn_desc wwnn;
  37. } desc;
  38. };
  39. #endif /* __FINC_FIP_H_ */