Go to the documentation of this file.
32 #ifndef __BFI_ENET_H__
33 #define __BFI_ENET_H__
40 #define BFI_ENET_CFG_MAX 32
42 #define BFI_ENET_TXQ_PRIO_MAX 8
43 #define BFI_ENET_RX_QSET_MAX 16
44 #define BFI_ENET_TXQ_WI_VECT_MAX 4
46 #define BFI_ENET_VLAN_ID_MAX 4096
47 #define BFI_ENET_VLAN_BLOCK_SIZE 512
48 #define BFI_ENET_VLAN_BLOCKS_MAX \
49 (BFI_ENET_VLAN_ID_MAX / BFI_ENET_VLAN_BLOCK_SIZE)
50 #define BFI_ENET_VLAN_WORD_SIZE 32
51 #define BFI_ENET_VLAN_WORDS_MAX \
52 (BFI_ENET_VLAN_BLOCK_SIZE / BFI_ENET_VLAN_WORD_SIZE)
54 #define BFI_ENET_RSS_RIT_MAX 64
55 #define BFI_ENET_RSS_KEY_LEN 10
67 #define BFI_ENET_TXQ_WI_SEND (0x402)
68 #define BFI_ENET_TXQ_WI_SEND_LSO (0x403)
69 #define BFI_ENET_TXQ_WI_EXTENSION (0x104)
72 #define BFI_ENET_TXQ_WI_CF_FCOE_CRC (1 << 8)
73 #define BFI_ENET_TXQ_WI_CF_IPID_MODE (1 << 5)
74 #define BFI_ENET_TXQ_WI_CF_INS_PRIO (1 << 4)
75 #define BFI_ENET_TXQ_WI_CF_INS_VLAN (1 << 3)
76 #define BFI_ENET_TXQ_WI_CF_UDP_CKSUM (1 << 2)
77 #define BFI_ENET_TXQ_WI_CF_TCP_CKSUM (1 << 1)
78 #define BFI_ENET_TXQ_WI_CF_IP_CKSUM (1 << 0)
113 #define wi_hdr wi.base
114 #define wi_ext_hdr wi.ext
116 #define BFI_ENET_TXQ_WI_L4_HDR_N_OFFSET(_hdr_size, _offset) \
117 (((_hdr_size) << 10) | ((_offset) & 0x3FF))
126 #define BFI_ENET_CQ_EF_MAC_ERROR (1 << 0)
127 #define BFI_ENET_CQ_EF_FCS_ERROR (1 << 1)
128 #define BFI_ENET_CQ_EF_TOO_LONG (1 << 2)
129 #define BFI_ENET_CQ_EF_FC_CRC_OK (1 << 3)
131 #define BFI_ENET_CQ_EF_RSVD1 (1 << 4)
132 #define BFI_ENET_CQ_EF_L4_CKSUM_OK (1 << 5)
133 #define BFI_ENET_CQ_EF_L3_CKSUM_OK (1 << 6)
134 #define BFI_ENET_CQ_EF_HDS_HEADER (1 << 7)
136 #define BFI_ENET_CQ_EF_UDP (1 << 8)
137 #define BFI_ENET_CQ_EF_TCP (1 << 9)
138 #define BFI_ENET_CQ_EF_IP_OPTIONS (1 << 10)
139 #define BFI_ENET_CQ_EF_IPV6 (1 << 11)
141 #define BFI_ENET_CQ_EF_IPV4 (1 << 12)
142 #define BFI_ENET_CQ_EF_VLAN (1 << 13)
143 #define BFI_ENET_CQ_EF_RSS (1 << 14)
144 #define BFI_ENET_CQ_EF_RSVD2 (1 << 15)
146 #define BFI_ENET_CQ_EF_MCAST_MATCH (1 << 16)
147 #define BFI_ENET_CQ_EF_MCAST (1 << 17)
148 #define BFI_ENET_CQ_EF_BCAST (1 << 18)
149 #define BFI_ENET_CQ_EF_REMOTE (1 << 19)
151 #define BFI_ENET_CQ_EF_LOCAL (1 << 20)
675 #define BFI_ENET_STATS_MAC (1 << 0)
676 #define BFI_ENET_STATS_BPC (1 << 1)
677 #define BFI_ENET_STATS_RAD (1 << 2)
678 #define BFI_ENET_STATS_RX_FC (1 << 3)
679 #define BFI_ENET_STATS_TX_FC (1 << 4)
681 #define BFI_ENET_STATS_ALL 0x1f