]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - sys/dev/cxgbe/firmware/t5fw_cfg_uwire.txt
MFC 305695,305696,305699,305702,305703,305713,305715,305827,305852,305906,
[FreeBSD/stable/10.git] / sys / dev / cxgbe / firmware / t5fw_cfg_uwire.txt
1 # Chelsio T5 Factory Default configuration file.
2 #
3 # Copyright (C) 2010-2015 Chelsio Communications.  All rights reserved.
4 #
5 #   DO NOT MODIFY THIS FILE UNDER ANY CIRCUMSTANCES.  MODIFICATION OF THIS FILE
6 #   WILL RESULT IN A NON-FUNCTIONAL ADAPTER AND MAY RESULT IN PHYSICAL DAMAGE
7 #   TO ADAPTERS.
8
9
10 # This file provides the default, power-on configuration for 4-port T5-based
11 # adapters shipped from the factory.  These defaults are designed to address
12 # the needs of the vast majority of Terminator customers.  The basic idea is to
13 # have a default configuration which allows a customer to plug a Terminator
14 # adapter in and have it work regardless of OS, driver or application except in
15 # the most unusual and/or demanding customer applications.
16 #
17 # Many of the Terminator resources which are described by this configuration
18 # are finite.  This requires balancing the configuration/operation needs of
19 # device drivers across OSes and a large number of customer application.
20 #
21 # Some of the more important resources to allocate and their constaints are:
22 #  1. Virtual Interfaces: 256.
23 #  2. Ingress Queues with Free Lists: 1024.
24 #  3. Egress Queues: 128K.
25 #  4. MSI-X Vectors: 1088.
26 #  5. Multi-Port Support (MPS) TCAM: 336 entries to support MAC destination
27 #     address matching on Ingress Packets.
28 #
29 # Some of the important OS/Driver resource needs are:
30 #  6. Some OS Drivers will manage all resources through a single Physical
31 #     Function (currently PF4 but it could be any Physical Function).
32 #  7. Some OS Drivers will manage different ports and functions (NIC,
33 #     storage, etc.) on different Physical Functions.  For example, NIC
34 #     functions for ports 0-3 on PF0-3, FCoE on PF4, iSCSI on PF5, etc.
35 #
36 # Some of the customer application needs which need to be accommodated:
37 #  8. Some customers will want to support large CPU count systems with
38 #     good scaling.  Thus, we'll need to accommodate a number of
39 #     Ingress Queues and MSI-X Vectors to allow up to some number of CPUs
40 #     to be involved per port and per application function.  For example,
41 #     in the case where all ports and application functions will be
42 #     managed via a single Unified PF and we want to accommodate scaling up
43 #     to 8 CPUs, we would want:
44 #
45 #         4 ports *
46 #         3 application functions (NIC, FCoE, iSCSI) per port *
47 #         8 Ingress Queue/MSI-X Vectors per application function
48 #
49 #     for a total of 96 Ingress Queues and MSI-X Vectors on the Unified PF.
50 #     (Plus a few for Firmware Event Queues, etc.)
51 #
52 #  9. Some customers will want to use PCI-E SR-IOV Capability to allow Virtual
53 #     Machines to directly access T6 functionality via SR-IOV Virtual Functions
54 #     and "PCI Device Passthrough" -- this is especially true for the NIC
55 #     application functionality.
56 #
57
58
59 # Global configuration settings.
60 #
61 [global]
62         rss_glb_config_mode = basicvirtual
63         rss_glb_config_options = tnlmapen,hashtoeplitz,tnlalllkp
64
65         # PL_TIMEOUT register
66         pl_timeout_value = 10000        # the timeout value in units of us
67
68         # The following Scatter Gather Engine (SGE) settings assume a 4KB Host
69         # Page Size and a 64B L1 Cache Line Size. It programs the
70         # EgrStatusPageSize and IngPadBoundary to 64B and the PktShift to 2.
71         # If a Master PF Driver finds itself on a machine with different
72         # parameters, then the Master PF Driver is responsible for initializing
73         # these parameters to appropriate values.
74         #
75         # Notes:
76         #  1. The Free List Buffer Sizes below are raw and the firmware will
77         #     round them up to the Ingress Padding Boundary.
78         #  2. The SGE Timer Values below are expressed below in microseconds.
79         #     The firmware will convert these values to Core Clock Ticks when
80         #     it processes the configuration parameters.
81         #
82         reg[0x1008] = 0x40810/0x21c70   # SGE_CONTROL
83         reg[0x100c] = 0x22222222        # SGE_HOST_PAGE_SIZE
84         reg[0x10a0] = 0x01040810        # SGE_INGRESS_RX_THRESHOLD
85         reg[0x1044] = 4096              # SGE_FL_BUFFER_SIZE0
86         reg[0x1048] = 65536             # SGE_FL_BUFFER_SIZE1
87         reg[0x104c] = 1536              # SGE_FL_BUFFER_SIZE2
88         reg[0x1050] = 9024              # SGE_FL_BUFFER_SIZE3
89         reg[0x1054] = 9216              # SGE_FL_BUFFER_SIZE4
90         reg[0x1058] = 2048              # SGE_FL_BUFFER_SIZE5
91         reg[0x105c] = 128               # SGE_FL_BUFFER_SIZE6
92         reg[0x1060] = 8192              # SGE_FL_BUFFER_SIZE7
93         reg[0x1064] = 16384             # SGE_FL_BUFFER_SIZE8
94         reg[0x10a4] = 0xa000a000/0xf000f000 # SGE_DBFIFO_STATUS
95         reg[0x10a8] = 0x402000/0x402000 # SGE_DOORBELL_CONTROL
96
97         # SGE_THROTTLE_CONTROL
98         bar2throttlecount = 500         # bar2throttlecount in us
99
100         sge_timer_value = 5, 10, 20, 50, 100, 200 # SGE_TIMER_VALUE* in usecs
101
102         
103         reg[0x1124] = 0x00000400/0x00000400 # SGE_CONTROL2, enable VFIFO; if
104                                         # SGE_VFIFO_SIZE is not set, then
105                                         # firmware will set it up in function
106                                         # of number of egress queues used
107
108         reg[0x1130] = 0x00d5ffeb        # SGE_DBP_FETCH_THRESHOLD, fetch
109                                         # threshold set to queue depth
110                                         # minus 128-entries for FL and HP
111                                         # queues, and 0xfff for LP which
112                                         # prompts the firmware to set it up
113                                         # in function of egress queues
114                                         # used
115
116         reg[0x113c] = 0x0002ffc0        # SGE_VFIFO_SIZE, set to 0x2ffc0 which
117                                         # prompts the firmware to set it up in
118                                         # function of number of egress queues
119                                         # used 
120
121         # enable TP_OUT_CONFIG.IPIDSPLITMODE
122         reg[0x7d04] = 0x00010000/0x00010000
123
124         # disable TP_PARA_REG3.RxFragEn
125         reg[0x7d6c] = 0x00000000/0x00007000
126
127         # enable TP_PARA_REG6.EnableCSnd
128         reg[0x7d78] = 0x00000400/0x00000000
129
130         reg[0x7dc0] = 0x0e2f8849        # TP_SHIFT_CNT
131
132         # TP_VLAN_PRI_MAP to select filter tuples and enable ServerSram
133         # filter control: compact, fcoemask
134         # server sram   : srvrsram
135         # filter tuples : fragmentation, mpshittype, macmatch, ethertype,
136         #                 protocol, tos, vlan, vnic_id, port, fcoe
137         # valid filterModes are described the Terminator 5 Data Book
138         filterMode = fcoemask, srvrsram, fragmentation, mpshittype, protocol, vlan, port, fcoe
139
140         # filter tuples enforced in LE active region (equal to or subset of filterMode)
141         filterMask = protocol, fcoe
142
143         # Percentage of dynamic memory (in either the EDRAM or external MEM)
144         # to use for TP RX payload
145         tp_pmrx = 30
146
147         # TP RX payload page size
148         tp_pmrx_pagesize = 64K
149
150         # TP number of RX channels
151         tp_nrxch = 0            # 0 (auto) = 1
152
153         # Percentage of dynamic memory (in either the EDRAM or external MEM)
154         # to use for TP TX payload
155         tp_pmtx = 50
156
157         # TP TX payload page size
158         tp_pmtx_pagesize = 64K
159
160         # TP number of TX channels
161         tp_ntxch = 0            # 0 (auto) = equal number of ports
162
163         # TP OFLD MTUs
164         tp_mtus = 88, 256, 512, 576, 808, 1024, 1280, 1488, 1500, 2002, 2048, 4096, 4352, 8192, 9000, 9600
165
166         # TP_GLOBAL_CONFIG
167         reg[0x7d08] = 0x00000800/0x00000800 # set IssFromCplEnable
168
169         # TP_PC_CONFIG
170         reg[0x7d48] = 0x00000000/0x00000400 # clear EnableFLMError
171
172         # TP_PARA_REG0
173         reg[0x7d60] = 0x06000000/0x07000000 # set InitCWND to 6
174
175         # ULPRX iSCSI Page Sizes
176         reg[0x19168] = 0x04020100 # 64K, 16K, 8K and 4K
177
178         # LE_DB_CONFIG
179         reg[0x19c04] = 0x00400000/0x00400000 # LE Server SRAM Enable
180
181         # MC configuration
182         mc_mode_brc[0] = 1              # mc0 - 1: enable BRC, 0: enable RBC
183         mc_mode_brc[1] = 1              # mc1 - 1: enable BRC, 0: enable RBC
184
185         # ULP_TX_CONFIG
186         reg[0x8dc0] = 0x00000004/0x00000004 # Enable more error msg for ...
187                                             # TPT error.
188
189 # Some "definitions" to make the rest of this a bit more readable.  We support
190 # 4 ports, 3 functions (NIC, FCoE and iSCSI), scaling up to 8 "CPU Queue Sets"
191 # per function per port ...
192 #
193 # NMSIX = 1088                  # available MSI-X Vectors
194 # NVI = 128                     # available Virtual Interfaces
195 # NMPSTCAM = 336                # MPS TCAM entries
196 #
197 # NPORTS = 4                    # ports
198 # NCPUS = 8                     # CPUs we want to support scalably
199 # NFUNCS = 3                    # functions per port (NIC, FCoE, iSCSI)
200
201 # Breakdown of Virtual Interface/Queue/Interrupt resources for the "Unified
202 # PF" which many OS Drivers will use to manage most or all functions.
203 #
204 # Each Ingress Queue can use one MSI-X interrupt but some Ingress Queues can
205 # use Forwarded Interrupt Ingress Queues.  For these latter, an Ingress Queue
206 # would be created and the Queue ID of a Forwarded Interrupt Ingress Queue
207 # will be specified as the "Ingress Queue Asynchronous Destination Index."
208 # Thus, the number of MSI-X Vectors assigned to the Unified PF will be less
209 # than or equal to the number of Ingress Queues ...
210 #
211 # NVI_NIC = 4                   # NIC access to NPORTS
212 # NFLIQ_NIC = 32                # NIC Ingress Queues with Free Lists
213 # NETHCTRL_NIC = 32             # NIC Ethernet Control/TX Queues
214 # NEQ_NIC = 64                  # NIC Egress Queues (FL, ETHCTRL/TX)
215 # NMPSTCAM_NIC = 16             # NIC MPS TCAM Entries (NPORTS*4)
216 # NMSIX_NIC = 32                # NIC MSI-X Interrupt Vectors (FLIQ)
217 #
218 # NVI_OFLD = 0                  # Offload uses NIC function to access ports
219 # NFLIQ_OFLD = 16               # Offload Ingress Queues with Free Lists
220 # NETHCTRL_OFLD = 0             # Offload Ethernet Control/TX Queues
221 # NEQ_OFLD = 16                 # Offload Egress Queues (FL)
222 # NMPSTCAM_OFLD = 0             # Offload MPS TCAM Entries (uses NIC's)
223 # NMSIX_OFLD = 16               # Offload MSI-X Interrupt Vectors (FLIQ)
224 #
225 # NVI_RDMA = 0                  # RDMA uses NIC function to access ports
226 # NFLIQ_RDMA = 4                # RDMA Ingress Queues with Free Lists
227 # NETHCTRL_RDMA = 0             # RDMA Ethernet Control/TX Queues
228 # NEQ_RDMA = 4                  # RDMA Egress Queues (FL)
229 # NMPSTCAM_RDMA = 0             # RDMA MPS TCAM Entries (uses NIC's)
230 # NMSIX_RDMA = 4                # RDMA MSI-X Interrupt Vectors (FLIQ)
231 #
232 # NEQ_WD = 128                  # Wire Direct TX Queues and FLs
233 # NETHCTRL_WD = 64              # Wire Direct TX Queues
234 # NFLIQ_WD = 64 `               # Wire Direct Ingress Queues with Free Lists
235 #
236 # NVI_ISCSI = 4                 # ISCSI access to NPORTS
237 # NFLIQ_ISCSI = 4               # ISCSI Ingress Queues with Free Lists
238 # NETHCTRL_ISCSI = 0            # ISCSI Ethernet Control/TX Queues
239 # NEQ_ISCSI = 4                 # ISCSI Egress Queues (FL)
240 # NMPSTCAM_ISCSI = 4            # ISCSI MPS TCAM Entries (NPORTS)
241 # NMSIX_ISCSI = 4               # ISCSI MSI-X Interrupt Vectors (FLIQ)
242 #
243 # NVI_FCOE = 4                  # FCOE access to NPORTS
244 # NFLIQ_FCOE = 34               # FCOE Ingress Queues with Free Lists
245 # NETHCTRL_FCOE = 32            # FCOE Ethernet Control/TX Queues
246 # NEQ_FCOE = 66                 # FCOE Egress Queues (FL)
247 # NMPSTCAM_FCOE = 32            # FCOE MPS TCAM Entries (NPORTS)
248 # NMSIX_FCOE = 34               # FCOE MSI-X Interrupt Vectors (FLIQ)
249
250 # Two extra Ingress Queues per function for Firmware Events and Forwarded
251 # Interrupts, and two extra interrupts per function for Firmware Events (or a
252 # Forwarded Interrupt Queue) and General Interrupts per function.
253 #
254 # NFLIQ_EXTRA = 6               # "extra" Ingress Queues 2*NFUNCS (Firmware and
255 #                               #   Forwarded Interrupts
256 # NMSIX_EXTRA = 6               # extra interrupts 2*NFUNCS (Firmware and
257 #                               #   General Interrupts
258
259 # Microsoft HyperV resources.  The HyperV Virtual Ingress Queues will have
260 # their interrupts forwarded to another set of Forwarded Interrupt Queues.
261 #
262 # NVI_HYPERV = 16               # VMs we want to support
263 # NVIIQ_HYPERV = 2              # Virtual Ingress Queues with Free Lists per VM
264 # NFLIQ_HYPERV = 40             # VIQs + NCPUS Forwarded Interrupt Queues
265 # NEQ_HYPERV = 32               # VIQs Free Lists
266 # NMPSTCAM_HYPERV = 16          # MPS TCAM Entries (NVI_HYPERV)
267 # NMSIX_HYPERV = 8              # NCPUS Forwarded Interrupt Queues
268
269 # Adding all of the above Unified PF resource needs together: (NIC + OFLD +
270 # RDMA + ISCSI + FCOE + EXTRA + HYPERV)
271 #
272 # NVI_UNIFIED = 28
273 # NFLIQ_UNIFIED = 106
274 # NETHCTRL_UNIFIED = 32
275 # NEQ_UNIFIED = 124
276 # NMPSTCAM_UNIFIED = 40
277 #
278 # The sum of all the MSI-X resources above is 74 MSI-X Vectors but we'll round
279 # that up to 128 to make sure the Unified PF doesn't run out of resources.
280 #
281 # NMSIX_UNIFIED = 128
282 #
283 # The Storage PFs could need up to NPORTS*NCPUS + NMSIX_EXTRA MSI-X Vectors
284 # which is 34 but they're probably safe with 32.
285 #
286 # NMSIX_STORAGE = 32
287
288 # Note: The UnifiedPF is PF4 which doesn't have any Virtual Functions
289 # associated with it.  Thus, the MSI-X Vector allocations we give to the
290 # UnifiedPF aren't inherited by any Virtual Functions.  As a result we can
291 # provision many more Virtual Functions than we can if the UnifiedPF were
292 # one of PF0-3.
293 #
294
295 # All of the below PCI-E parameters are actually stored in various *_init.txt
296 # files.  We include them below essentially as comments.
297 #
298 # For PF0-3 we assign 8 vectors each for NIC Ingress Queues of the associated
299 # ports 0-3.
300 #
301 # For PF4, the Unified PF, we give it an MSI-X Table Size as outlined above.
302 #
303 # For PF5-6 we assign enough MSI-X Vectors to support FCoE and iSCSI
304 # storage applications across all four possible ports.
305 #
306 # Additionally, since the UnifiedPF isn't one of the per-port Physical
307 # Functions, we give the UnifiedPF and the PF0-3 Physical Functions
308 # different PCI Device IDs which will allow Unified and Per-Port Drivers
309 # to directly select the type of Physical Function to which they wish to be
310 # attached.
311 #
312 # Note that the actual values used for the PCI-E Intelectual Property will be
313 # 1 less than those below since that's the way it "counts" things.  For
314 # readability, we use the number we actually mean ...
315 #
316 # PF0_INT = 8                   # NCPUS
317 # PF1_INT = 8                   # NCPUS
318 # PF2_INT = 8                   # NCPUS
319 # PF3_INT = 8                   # NCPUS
320 # PF0_3_INT = 32                # PF0_INT + PF1_INT + PF2_INT + PF3_INT
321 #
322 # PF4_INT = 128                 # NMSIX_UNIFIED
323 # PF5_INT = 32                  # NMSIX_STORAGE
324 # PF6_INT = 32                  # NMSIX_STORAGE
325 # PF7_INT = 0                   # Nothing Assigned
326 # PF4_7_INT = 192               # PF4_INT + PF5_INT + PF6_INT + PF7_INT
327 #
328 # PF0_7_INT = 224               # PF0_3_INT + PF4_7_INT
329 #
330 # With the above we can get 17 VFs/PF0-3 (limited by 336 MPS TCAM entries)
331 # but we'll lower that to 16 to make our total 64 and a nice power of 2 ...
332 #
333 # NVF = 16
334
335
336 # For those OSes which manage different ports on different PFs, we need
337 # only enough resources to support a single port's NIC application functions
338 # on PF0-3.  The below assumes that we're only doing NIC with NCPUS "Queue
339 # Sets" for ports 0-3.  The FCoE and iSCSI functions for such OSes will be
340 # managed on the "storage PFs" (see below).
341 #
342 [function "0"]
343         nvf = 16                # NVF on this function
344         wx_caps = all           # write/execute permissions for all commands
345         r_caps = all            # read permissions for all commands
346         nvi = 1                 # 1 port
347         niqflint = 8            # NCPUS "Queue Sets"
348         nethctrl = 8            # NCPUS "Queue Sets"
349         neq = 16                # niqflint + nethctrl Egress Queues
350         nexactf = 8             # number of exact MPSTCAM MAC filters
351         cmask = all             # access to all channels
352         pmask = 0x1             # access to only one port
353
354
355 [function "1"]
356         nvf = 16                # NVF on this function
357         wx_caps = all           # write/execute permissions for all commands
358         r_caps = all            # read permissions for all commands
359         nvi = 1                 # 1 port
360         niqflint = 8            # NCPUS "Queue Sets"
361         nethctrl = 8            # NCPUS "Queue Sets"
362         neq = 16                # niqflint + nethctrl Egress Queues
363         nexactf = 8             # number of exact MPSTCAM MAC filters
364         cmask = all             # access to all channels
365         pmask = 0x2             # access to only one port
366
367
368 [function "2"]
369         nvf = 16                # NVF on this function
370         wx_caps = all           # write/execute permissions for all commands
371         r_caps = all            # read permissions for all commands
372         nvi = 1                 # 1 port
373         niqflint = 8            # NCPUS "Queue Sets"
374         nethctrl = 8            # NCPUS "Queue Sets"
375         neq = 16                # niqflint + nethctrl Egress Queues
376         nexactf = 8             # number of exact MPSTCAM MAC filters
377         cmask = all             # access to all channels
378         pmask = 0x4             # access to only one port
379
380
381 [function "3"]
382         nvf = 16                # NVF on this function
383         wx_caps = all           # write/execute permissions for all commands
384         r_caps = all            # read permissions for all commands
385         nvi = 1                 # 1 port
386         niqflint = 8            # NCPUS "Queue Sets"
387         nethctrl = 8            # NCPUS "Queue Sets"
388         neq = 16                # niqflint + nethctrl Egress Queues
389         nexactf = 8             # number of exact MPSTCAM MAC filters
390         cmask = all             # access to all channels
391         pmask = 0x8             # access to only one port
392
393
394 # Some OS Drivers manage all application functions for all ports via PF4.
395 # Thus we need to provide a large number of resources here.  For Egress
396 # Queues we need to account for both TX Queues as well as Free List Queues
397 # (because the host is responsible for producing Free List Buffers for the
398 # hardware to consume).
399 #
400 [function "4"]
401         wx_caps = all           # write/execute permissions for all commands
402         r_caps = all            # read permissions for all commands
403         nvi = 28                # NVI_UNIFIED
404         niqflint = 170          # NFLIQ_UNIFIED + NLFIQ_WD
405         nethctrl = 100          # NETHCTRL_UNIFIED + NETHCTRL_WD
406         neq = 256               # NEQ_UNIFIED + NEQ_WD
407         nqpcq = 12288 
408         nexactf = 40            # NMPSTCAM_UNIFIED
409         cmask = all             # access to all channels
410         pmask = all             # access to all four ports ...
411         nethofld = 1024         # number of user mode ethernet flow contexts
412         nroute = 32             # number of routing region entries
413         nclip = 32              # number of clip region entries
414         nfilter = 496           # number of filter region entries
415         nserver = 496           # number of server region entries
416         nhash = 12288           # number of hash region entries
417         protocol = nic_vm, ofld, rddp, rdmac, iscsi_initiator_pdu, iscsi_target_pdu, iscsi_t10dif
418         tp_l2t = 3072
419         tp_ddp = 2
420         tp_ddp_iscsi = 2
421         tp_stag = 2
422         tp_pbl = 5
423         tp_rq = 7
424
425
426 # We have FCoE and iSCSI storage functions on PF5 and PF6 each of which may
427 # need to have Virtual Interfaces on each of the four ports with up to NCPUS
428 # "Queue Sets" each.
429 #
430 [function "5"]
431         wx_caps = all           # write/execute permissions for all commands
432         r_caps = all            # read permissions for all commands
433         nvi = 4                 # NPORTS
434         niqflint = 34           # NPORTS*NCPUS + NMSIX_EXTRA
435         nethctrl = 32           # NPORTS*NCPUS
436         neq = 64                # NPORTS*NCPUS * 2 (FL, ETHCTRL/TX)
437         nexactf = 16            # (NPORTS *(no of snmc grp + 1 hw mac) + 1 anmc grp)) rounded to 16.
438         cmask = all             # access to all channels
439         pmask = all             # access to all four ports ...
440         nserver = 16
441         nhash = 2048
442         tp_l2t = 1020
443         protocol = iscsi_initiator_fofld
444         tp_ddp_iscsi = 2
445         iscsi_ntask = 2048
446         iscsi_nsess = 2048
447         iscsi_nconn_per_session = 1
448         iscsi_ninitiator_instance = 64
449
450
451 [function "6"]
452         wx_caps = all           # write/execute permissions for all commands
453         r_caps = all            # read permissions for all commands
454         nvi = 4                 # NPORTS
455         niqflint = 34           # NPORTS*NCPUS + NMSIX_EXTRA
456         nethctrl = 32           # NPORTS*NCPUS
457         neq = 66                # NPORTS*NCPUS * 2 (FL, ETHCTRL/TX) + 2 (EXTRA)
458         nexactf = 32            # NPORTS + adding 28 exact entries for FCoE
459                                 # which is OK since < MIN(SUM PF0..3, PF4)
460                                 # and we never load PF0..3 and PF4 concurrently
461         cmask = all             # access to all channels
462         pmask = all             # access to all four ports ...
463         nhash = 2048
464         tp_l2t = 4
465         protocol = fcoe_initiator
466         tp_ddp = 2
467         fcoe_nfcf = 16
468         fcoe_nvnp = 32
469         fcoe_nssn = 1024
470
471
472 # The following function, 1023, is not an actual PCIE function but is used to
473 # configure and reserve firmware internal resources that come from the global
474 # resource pool.
475 #
476 [function "1023"]
477         wx_caps = all           # write/execute permissions for all commands
478         r_caps = all            # read permissions for all commands
479         nvi = 4                 # NVI_UNIFIED
480         cmask = all             # access to all channels
481         pmask = all             # access to all four ports ...
482         nexactf = 8             # NPORTS + DCBX +
483         nfilter = 16            # number of filter region entries
484
485
486 # For Virtual functions, we only allow NIC functionality and we only allow
487 # access to one port (1 << PF).  Note that because of limitations in the
488 # Scatter Gather Engine (SGE) hardware which checks writes to VF KDOORBELL
489 # and GTS registers, the number of Ingress and Egress Queues must be a power
490 # of 2.
491 #
492 [function "0/*"]                # NVF
493         wx_caps = 0x82          # DMAQ | VF
494         r_caps = 0x86           # DMAQ | VF | PORT
495         nvi = 1                 # 1 port
496         niqflint = 4            # 2 "Queue Sets" + NXIQ
497         nethctrl = 2            # 2 "Queue Sets"
498         neq = 4                 # 2 "Queue Sets" * 2
499         nexactf = 4
500         cmask = all             # access to all channels
501         pmask = 0x1             # access to only one port ...
502
503
504 [function "1/*"]                # NVF
505         wx_caps = 0x82          # DMAQ | VF
506         r_caps = 0x86           # DMAQ | VF | PORT
507         nvi = 1                 # 1 port
508         niqflint = 4            # 2 "Queue Sets" + NXIQ
509         nethctrl = 2            # 2 "Queue Sets"
510         neq = 4                 # 2 "Queue Sets" * 2
511         nexactf = 4
512         cmask = all             # access to all channels
513         pmask = 0x2             # access to only one port ...
514
515
516 [function "2/*"]                # NVF
517         wx_caps = 0x82          # DMAQ | VF
518         r_caps = 0x86           # DMAQ | VF | PORT
519         nvi = 1                 # 1 port
520         niqflint = 4            # 2 "Queue Sets" + NXIQ
521         nethctrl = 2            # 2 "Queue Sets"
522         neq = 4                 # 2 "Queue Sets" * 2
523         nexactf = 4
524         cmask = all             # access to all channels
525         pmask = 0x4             # access to only one port ...
526
527
528 [function "3/*"]                # NVF
529         wx_caps = 0x82          # DMAQ | VF
530         r_caps = 0x86           # DMAQ | VF | PORT
531         nvi = 1                 # 1 port
532         niqflint = 4            # 2 "Queue Sets" + NXIQ
533         nethctrl = 2            # 2 "Queue Sets"
534         neq = 4                 # 2 "Queue Sets" * 2
535         nexactf = 4
536         cmask = all             # access to all channels
537         pmask = 0x8             # access to only one port ...
538
539
540 # MPS features a 196608 bytes ingress buffer that is used for ingress buffering
541 # for packets from the wire as well as the loopback path of the L2 switch. The
542 # folling params control how the buffer memory is distributed and the L2 flow
543 # control settings:
544 #
545 # bg_mem:       %-age of mem to use for port/buffer group
546 # lpbk_mem:     %-age of port/bg mem to use for loopback
547 # hwm:          high watermark; bytes available when starting to send pause
548 #               frames (in units of 0.1 MTU)
549 # lwm:          low watermark; bytes remaining when sending 'unpause' frame
550 #               (in inuits of 0.1 MTU)
551 # dwm:          minimum delta between high and low watermark (in units of 100
552 #               Bytes)
553 #
554 [port "0"]
555         dcb = ppp, dcbx         # configure for DCB PPP and enable DCBX offload
556         bg_mem = 25
557         lpbk_mem = 25
558         hwm = 30
559         lwm = 15
560         dwm = 30
561         dcb_app_tlv[0] = 0x8906, ethertype, 3
562         dcb_app_tlv[1] = 0x8914, ethertype, 3
563         dcb_app_tlv[2] = 3260, socketnum, 5
564
565
566 [port "1"]
567         dcb = ppp, dcbx
568         bg_mem = 25
569         lpbk_mem = 25
570         hwm = 30
571         lwm = 15
572         dwm = 30
573         dcb_app_tlv[0] = 0x8906, ethertype, 3
574         dcb_app_tlv[1] = 0x8914, ethertype, 3
575         dcb_app_tlv[2] = 3260, socketnum, 5
576
577
578 [port "2"]
579         dcb = ppp, dcbx
580         bg_mem = 25
581         lpbk_mem = 25
582         hwm = 30
583         lwm = 15
584         dwm = 30
585         dcb_app_tlv[0] = 0x8906, ethertype, 3
586         dcb_app_tlv[1] = 0x8914, ethertype, 3
587         dcb_app_tlv[2] = 3260, socketnum, 5
588
589
590 [port "3"]
591         dcb = ppp, dcbx
592         bg_mem = 25
593         lpbk_mem = 25
594         hwm = 30
595         lwm = 15
596         dwm = 30
597         dcb_app_tlv[0] = 0x8906, ethertype, 3
598         dcb_app_tlv[1] = 0x8914, ethertype, 3
599         dcb_app_tlv[2] = 3260, socketnum, 5
600
601
602 [fini]
603         version = 0x1425001c
604         checksum = 0xf9115d76
605
606 # Total resources used by above allocations:
607 #   Virtual Interfaces: 104
608 #   Ingress Queues/w Free Lists and Interrupts: 526
609 #   Egress Queues: 702
610 #   MPS TCAM Entries: 336
611 #   MSI-X Vectors: 736
612 #   Virtual Functions: 64
613 #
614 # $FreeBSD$
615 #