summaryrefslogtreecommitdiff
path: root/drivers/scsi/bfa/include/defs/bfa_defs_ipfc.h
blob: 7cb63ea98f38ba5058e0388fbaa2485eb747f306 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*
 * Copyright (c) 2005-2009 Brocade Communications Systems, Inc.
 * All rights reserved
 * www.brocade.com
 *
 * Linux driver for Brocade Fibre Channel Host Bus Adapter.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License (GPL) Version 2 as
 * published by the Free Software Foundation
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 */
#ifndef __BFA_DEFS_IPFC_H__
#define __BFA_DEFS_IPFC_H__

#include <bfa_os_inc.h>
#include <protocol/types.h>
#include <defs/bfa_defs_types.h>

/**
 * FCS ip remote port states
 */
enum bfa_iprp_state {
	BFA_IPRP_UNINIT  = 0,	/*  PORT is not yet initialized */
	BFA_IPRP_ONLINE  = 1,	/*  process login is complete */
	BFA_IPRP_OFFLINE = 2,	/*  iprp is offline */
};

/**
 * FCS remote port statistics
 */
struct bfa_iprp_stats_s {
	u32        offlines;
	u32        onlines;
	u32        rscns;
	u32        plogis;
	u32        logos;
	u32        plogi_timeouts;
	u32        plogi_rejects;
};

/**
 * FCS iprp attribute returned in queries
 */
struct bfa_iprp_attr_s {
	enum bfa_iprp_state state;
};

struct bfa_ipfc_stats_s {
	u32 arp_sent;
	u32 arp_recv;
	u32 arp_reply_sent;
	u32 arp_reply_recv;
	u32 farp_sent;
	u32 farp_recv;
	u32 farp_reply_sent;
	u32 farp_reply_recv;
	u32 farp_reject_sent;
	u32 farp_reject_recv;
};

struct bfa_ipfc_attr_s {
	bfa_boolean_t enabled;
};

#endif /* __BFA_DEFS_IPFC_H__ */