bfa_defs_ipfc.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * Copyright (c) 2005-2009 Brocade Communications Systems, Inc.
  3. * All rights reserved
  4. * www.brocade.com
  5. *
  6. * Linux driver for Brocade Fibre Channel Host Bus Adapter.
  7. *
  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
  11. *
  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.
  16. */
  17. #ifndef __BFA_DEFS_IPFC_H__
  18. #define __BFA_DEFS_IPFC_H__
  19. #include <bfa_os_inc.h>
  20. #include <protocol/types.h>
  21. #include <defs/bfa_defs_types.h>
  22. /**
  23. * FCS ip remote port states
  24. */
  25. enum bfa_iprp_state {
  26. BFA_IPRP_UNINIT = 0, /* PORT is not yet initialized */
  27. BFA_IPRP_ONLINE = 1, /* process login is complete */
  28. BFA_IPRP_OFFLINE = 2, /* iprp is offline */
  29. };
  30. /**
  31. * FCS remote port statistics
  32. */
  33. struct bfa_iprp_stats_s {
  34. u32 offlines;
  35. u32 onlines;
  36. u32 rscns;
  37. u32 plogis;
  38. u32 logos;
  39. u32 plogi_timeouts;
  40. u32 plogi_rejects;
  41. };
  42. /**
  43. * FCS iprp attribute returned in queries
  44. */
  45. struct bfa_iprp_attr_s {
  46. enum bfa_iprp_state state;
  47. };
  48. struct bfa_ipfc_stats_s {
  49. u32 arp_sent;
  50. u32 arp_recv;
  51. u32 arp_reply_sent;
  52. u32 arp_reply_recv;
  53. u32 farp_sent;
  54. u32 farp_recv;
  55. u32 farp_reply_sent;
  56. u32 farp_reply_recv;
  57. u32 farp_reject_sent;
  58. u32 farp_reject_recv;
  59. };
  60. struct bfa_ipfc_attr_s {
  61. bfa_boolean_t enabled;
  62. };
  63. #endif /* __BFA_DEFS_IPFC_H__ */