2 * Copyright (c) 2012-2016 Solarflare Communications Inc.
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice,
11 * this list of conditions and the following disclaimer in the documentation
12 * and/or other materials provided with the distribution.
14 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
16 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
18 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
19 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
21 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
22 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
23 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
24 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 * The views and conclusions contained in the software and documentation are
27 * those of the authors and should not be interpreted as representing official
28 * policies, either expressed or implied, of the FreeBSD Project.
31 #include <sys/cdefs.h>
32 __FBSDID("$FreeBSD$");
38 #if EFSYS_OPT_HUNTINGTON || EFSYS_OPT_MEDFORD
41 static __checkReturn efx_rc_t
45 __in uint32_t target_evq,
47 __in uint32_t instance,
48 __in efsys_mem_t *esmp,
49 __in boolean_t disable_scatter)
52 EFX_MCDI_DECLARE_BUF(payload,
53 MC_CMD_INIT_RXQ_IN_LEN(EFX_RXQ_NBUFS(EFX_RXQ_MAXNDESCS)),
54 MC_CMD_INIT_RXQ_OUT_LEN);
55 int npages = EFX_RXQ_NBUFS(size);
57 efx_qword_t *dma_addr;
61 /* If this changes, then the payload size might need to change. */
62 EFSYS_ASSERT3U(MC_CMD_INIT_RXQ_OUT_LEN, ==, 0);
63 EFSYS_ASSERT3U(size, <=, EFX_RXQ_MAXNDESCS);
65 req.emr_cmd = MC_CMD_INIT_RXQ;
66 req.emr_in_buf = payload;
67 req.emr_in_length = MC_CMD_INIT_RXQ_IN_LEN(npages);
68 req.emr_out_buf = payload;
69 req.emr_out_length = MC_CMD_INIT_RXQ_OUT_LEN;
71 MCDI_IN_SET_DWORD(req, INIT_RXQ_IN_SIZE, size);
72 MCDI_IN_SET_DWORD(req, INIT_RXQ_IN_TARGET_EVQ, target_evq);
73 MCDI_IN_SET_DWORD(req, INIT_RXQ_IN_LABEL, label);
74 MCDI_IN_SET_DWORD(req, INIT_RXQ_IN_INSTANCE, instance);
75 MCDI_IN_POPULATE_DWORD_6(req, INIT_RXQ_IN_FLAGS,
76 INIT_RXQ_IN_FLAG_BUFF_MODE, 0,
77 INIT_RXQ_IN_FLAG_HDR_SPLIT, 0,
78 INIT_RXQ_IN_FLAG_TIMESTAMP, 0,
79 INIT_RXQ_IN_CRC_MODE, 0,
80 INIT_RXQ_IN_FLAG_PREFIX, 1,
81 INIT_RXQ_IN_FLAG_DISABLE_SCATTER, disable_scatter);
82 MCDI_IN_SET_DWORD(req, INIT_RXQ_IN_OWNER_ID, 0);
83 MCDI_IN_SET_DWORD(req, INIT_RXQ_IN_PORT_ID, EVB_PORT_ID_ASSIGNED);
85 dma_addr = MCDI_IN2(req, efx_qword_t, INIT_RXQ_IN_DMA_ADDR);
86 addr = EFSYS_MEM_ADDR(esmp);
88 for (i = 0; i < npages; i++) {
89 EFX_POPULATE_QWORD_2(*dma_addr,
90 EFX_DWORD_1, (uint32_t)(addr >> 32),
91 EFX_DWORD_0, (uint32_t)(addr & 0xffffffff));
97 efx_mcdi_execute(enp, &req);
99 if (req.emr_rc != 0) {
107 EFSYS_PROBE1(fail1, efx_rc_t, rc);
112 static __checkReturn efx_rc_t
115 __in uint32_t instance)
118 EFX_MCDI_DECLARE_BUF(payload, MC_CMD_FINI_RXQ_IN_LEN,
119 MC_CMD_FINI_RXQ_OUT_LEN);
122 req.emr_cmd = MC_CMD_FINI_RXQ;
123 req.emr_in_buf = payload;
124 req.emr_in_length = MC_CMD_FINI_RXQ_IN_LEN;
125 req.emr_out_buf = payload;
126 req.emr_out_length = MC_CMD_FINI_RXQ_OUT_LEN;
128 MCDI_IN_SET_DWORD(req, FINI_RXQ_IN_INSTANCE, instance);
130 efx_mcdi_execute_quiet(enp, &req);
132 if (req.emr_rc != 0) {
141 * EALREADY is not an error, but indicates that the MC has rebooted and
142 * that the RXQ has already been destroyed.
145 EFSYS_PROBE1(fail1, efx_rc_t, rc);
150 #if EFSYS_OPT_RX_SCALE
151 static __checkReturn efx_rc_t
152 efx_mcdi_rss_context_alloc(
154 __in efx_rx_scale_support_t scale_support,
155 __in uint32_t num_queues,
156 __out uint32_t *rss_contextp)
159 EFX_MCDI_DECLARE_BUF(payload, MC_CMD_RSS_CONTEXT_ALLOC_IN_LEN,
160 MC_CMD_RSS_CONTEXT_ALLOC_OUT_LEN);
161 uint32_t rss_context;
162 uint32_t context_type;
165 if (num_queues > EFX_MAXRSS) {
170 switch (scale_support) {
171 case EFX_RX_SCALE_EXCLUSIVE:
172 context_type = MC_CMD_RSS_CONTEXT_ALLOC_IN_TYPE_EXCLUSIVE;
174 case EFX_RX_SCALE_SHARED:
175 context_type = MC_CMD_RSS_CONTEXT_ALLOC_IN_TYPE_SHARED;
182 req.emr_cmd = MC_CMD_RSS_CONTEXT_ALLOC;
183 req.emr_in_buf = payload;
184 req.emr_in_length = MC_CMD_RSS_CONTEXT_ALLOC_IN_LEN;
185 req.emr_out_buf = payload;
186 req.emr_out_length = MC_CMD_RSS_CONTEXT_ALLOC_OUT_LEN;
188 MCDI_IN_SET_DWORD(req, RSS_CONTEXT_ALLOC_IN_UPSTREAM_PORT_ID,
189 EVB_PORT_ID_ASSIGNED);
190 MCDI_IN_SET_DWORD(req, RSS_CONTEXT_ALLOC_IN_TYPE, context_type);
191 /* NUM_QUEUES is only used to validate indirection table offsets */
192 MCDI_IN_SET_DWORD(req, RSS_CONTEXT_ALLOC_IN_NUM_QUEUES, num_queues);
194 efx_mcdi_execute(enp, &req);
196 if (req.emr_rc != 0) {
201 if (req.emr_out_length_used < MC_CMD_RSS_CONTEXT_ALLOC_OUT_LEN) {
206 rss_context = MCDI_OUT_DWORD(req, RSS_CONTEXT_ALLOC_OUT_RSS_CONTEXT_ID);
207 if (rss_context == EF10_RSS_CONTEXT_INVALID) {
212 *rss_contextp = rss_context;
225 EFSYS_PROBE1(fail1, efx_rc_t, rc);
229 #endif /* EFSYS_OPT_RX_SCALE */
231 #if EFSYS_OPT_RX_SCALE
233 efx_mcdi_rss_context_free(
235 __in uint32_t rss_context)
238 EFX_MCDI_DECLARE_BUF(payload, MC_CMD_RSS_CONTEXT_FREE_IN_LEN,
239 MC_CMD_RSS_CONTEXT_FREE_OUT_LEN);
242 if (rss_context == EF10_RSS_CONTEXT_INVALID) {
247 req.emr_cmd = MC_CMD_RSS_CONTEXT_FREE;
248 req.emr_in_buf = payload;
249 req.emr_in_length = MC_CMD_RSS_CONTEXT_FREE_IN_LEN;
250 req.emr_out_buf = payload;
251 req.emr_out_length = MC_CMD_RSS_CONTEXT_FREE_OUT_LEN;
253 MCDI_IN_SET_DWORD(req, RSS_CONTEXT_FREE_IN_RSS_CONTEXT_ID, rss_context);
255 efx_mcdi_execute_quiet(enp, &req);
257 if (req.emr_rc != 0) {
267 EFSYS_PROBE1(fail1, efx_rc_t, rc);
271 #endif /* EFSYS_OPT_RX_SCALE */
273 #if EFSYS_OPT_RX_SCALE
275 efx_mcdi_rss_context_set_flags(
277 __in uint32_t rss_context,
278 __in efx_rx_hash_type_t type)
281 EFX_MCDI_DECLARE_BUF(payload, MC_CMD_RSS_CONTEXT_SET_FLAGS_IN_LEN,
282 MC_CMD_RSS_CONTEXT_SET_FLAGS_OUT_LEN);
285 if (rss_context == EF10_RSS_CONTEXT_INVALID) {
290 req.emr_cmd = MC_CMD_RSS_CONTEXT_SET_FLAGS;
291 req.emr_in_buf = payload;
292 req.emr_in_length = MC_CMD_RSS_CONTEXT_SET_FLAGS_IN_LEN;
293 req.emr_out_buf = payload;
294 req.emr_out_length = MC_CMD_RSS_CONTEXT_SET_FLAGS_OUT_LEN;
296 MCDI_IN_SET_DWORD(req, RSS_CONTEXT_SET_FLAGS_IN_RSS_CONTEXT_ID,
299 MCDI_IN_POPULATE_DWORD_4(req, RSS_CONTEXT_SET_FLAGS_IN_FLAGS,
300 RSS_CONTEXT_SET_FLAGS_IN_TOEPLITZ_IPV4_EN,
301 (type & EFX_RX_HASH_IPV4) ? 1 : 0,
302 RSS_CONTEXT_SET_FLAGS_IN_TOEPLITZ_TCPV4_EN,
303 (type & EFX_RX_HASH_TCPIPV4) ? 1 : 0,
304 RSS_CONTEXT_SET_FLAGS_IN_TOEPLITZ_IPV6_EN,
305 (type & EFX_RX_HASH_IPV6) ? 1 : 0,
306 RSS_CONTEXT_SET_FLAGS_IN_TOEPLITZ_TCPV6_EN,
307 (type & EFX_RX_HASH_TCPIPV6) ? 1 : 0);
309 efx_mcdi_execute(enp, &req);
311 if (req.emr_rc != 0) {
321 EFSYS_PROBE1(fail1, efx_rc_t, rc);
325 #endif /* EFSYS_OPT_RX_SCALE */
327 #if EFSYS_OPT_RX_SCALE
329 efx_mcdi_rss_context_set_key(
331 __in uint32_t rss_context,
332 __in_ecount(n) uint8_t *key,
336 EFX_MCDI_DECLARE_BUF(payload, MC_CMD_RSS_CONTEXT_SET_KEY_IN_LEN,
337 MC_CMD_RSS_CONTEXT_SET_KEY_OUT_LEN);
340 if (rss_context == EF10_RSS_CONTEXT_INVALID) {
345 req.emr_cmd = MC_CMD_RSS_CONTEXT_SET_KEY;
346 req.emr_in_buf = payload;
347 req.emr_in_length = MC_CMD_RSS_CONTEXT_SET_KEY_IN_LEN;
348 req.emr_out_buf = payload;
349 req.emr_out_length = MC_CMD_RSS_CONTEXT_SET_KEY_OUT_LEN;
351 MCDI_IN_SET_DWORD(req, RSS_CONTEXT_SET_KEY_IN_RSS_CONTEXT_ID,
354 EFSYS_ASSERT3U(n, ==, MC_CMD_RSS_CONTEXT_SET_KEY_IN_TOEPLITZ_KEY_LEN);
355 if (n != MC_CMD_RSS_CONTEXT_SET_KEY_IN_TOEPLITZ_KEY_LEN) {
360 memcpy(MCDI_IN2(req, uint8_t, RSS_CONTEXT_SET_KEY_IN_TOEPLITZ_KEY),
363 efx_mcdi_execute(enp, &req);
365 if (req.emr_rc != 0) {
377 EFSYS_PROBE1(fail1, efx_rc_t, rc);
381 #endif /* EFSYS_OPT_RX_SCALE */
383 #if EFSYS_OPT_RX_SCALE
385 efx_mcdi_rss_context_set_table(
387 __in uint32_t rss_context,
388 __in_ecount(n) unsigned int *table,
392 EFX_MCDI_DECLARE_BUF(payload, MC_CMD_RSS_CONTEXT_SET_TABLE_IN_LEN,
393 MC_CMD_RSS_CONTEXT_SET_TABLE_OUT_LEN);
397 if (rss_context == EF10_RSS_CONTEXT_INVALID) {
402 req.emr_cmd = MC_CMD_RSS_CONTEXT_SET_TABLE;
403 req.emr_in_buf = payload;
404 req.emr_in_length = MC_CMD_RSS_CONTEXT_SET_TABLE_IN_LEN;
405 req.emr_out_buf = payload;
406 req.emr_out_length = MC_CMD_RSS_CONTEXT_SET_TABLE_OUT_LEN;
408 MCDI_IN_SET_DWORD(req, RSS_CONTEXT_SET_TABLE_IN_RSS_CONTEXT_ID,
412 MCDI_IN2(req, uint8_t, RSS_CONTEXT_SET_TABLE_IN_INDIRECTION_TABLE);
415 i < MC_CMD_RSS_CONTEXT_SET_TABLE_IN_INDIRECTION_TABLE_LEN;
417 req_table[i] = (n > 0) ? (uint8_t)table[i % n] : 0;
420 efx_mcdi_execute(enp, &req);
422 if (req.emr_rc != 0) {
432 EFSYS_PROBE1(fail1, efx_rc_t, rc);
436 #endif /* EFSYS_OPT_RX_SCALE */
439 __checkReturn efx_rc_t
443 #if EFSYS_OPT_RX_SCALE
445 if (efx_mcdi_rss_context_alloc(enp, EFX_RX_SCALE_EXCLUSIVE, EFX_MAXRSS,
446 &enp->en_rss_context) == 0) {
448 * Allocated an exclusive RSS context, which allows both the
449 * indirection table and key to be modified.
451 enp->en_rss_support = EFX_RX_SCALE_EXCLUSIVE;
452 enp->en_hash_support = EFX_RX_HASH_AVAILABLE;
455 * Failed to allocate an exclusive RSS context. Continue
456 * operation without support for RSS. The pseudo-header in
457 * received packets will not contain a Toeplitz hash value.
459 enp->en_rss_support = EFX_RX_SCALE_UNAVAILABLE;
460 enp->en_hash_support = EFX_RX_HASH_UNAVAILABLE;
463 #endif /* EFSYS_OPT_RX_SCALE */
468 #if EFSYS_OPT_RX_SCATTER
469 __checkReturn efx_rc_t
470 ef10_rx_scatter_enable(
472 __in unsigned int buf_size)
474 _NOTE(ARGUNUSED(enp, buf_size))
477 #endif /* EFSYS_OPT_RX_SCATTER */
479 #if EFSYS_OPT_RX_SCALE
480 __checkReturn efx_rc_t
481 ef10_rx_scale_mode_set(
483 __in efx_rx_hash_alg_t alg,
484 __in efx_rx_hash_type_t type,
485 __in boolean_t insert)
489 EFSYS_ASSERT3U(alg, ==, EFX_RX_HASHALG_TOEPLITZ);
490 EFSYS_ASSERT3U(insert, ==, B_TRUE);
492 if ((alg != EFX_RX_HASHALG_TOEPLITZ) || (insert == B_FALSE)) {
497 if (enp->en_rss_support == EFX_RX_SCALE_UNAVAILABLE) {
502 if ((rc = efx_mcdi_rss_context_set_flags(enp,
503 enp->en_rss_context, type)) != 0)
513 EFSYS_PROBE1(fail1, efx_rc_t, rc);
517 #endif /* EFSYS_OPT_RX_SCALE */
519 #if EFSYS_OPT_RX_SCALE
520 __checkReturn efx_rc_t
521 ef10_rx_scale_key_set(
523 __in_ecount(n) uint8_t *key,
528 if (enp->en_rss_support == EFX_RX_SCALE_UNAVAILABLE) {
533 if ((rc = efx_mcdi_rss_context_set_key(enp,
534 enp->en_rss_context, key, n)) != 0)
542 EFSYS_PROBE1(fail1, efx_rc_t, rc);
546 #endif /* EFSYS_OPT_RX_SCALE */
548 #if EFSYS_OPT_RX_SCALE
549 __checkReturn efx_rc_t
550 ef10_rx_scale_tbl_set(
552 __in_ecount(n) unsigned int *table,
557 if (enp->en_rss_support == EFX_RX_SCALE_UNAVAILABLE) {
562 if ((rc = efx_mcdi_rss_context_set_table(enp,
563 enp->en_rss_context, table, n)) != 0)
571 EFSYS_PROBE1(fail1, efx_rc_t, rc);
575 #endif /* EFSYS_OPT_RX_SCALE */
579 * EF10 RX pseudo-header
580 * ---------------------
582 * Receive packets are prefixed by an (optional) 14 byte pseudo-header:
584 * +00: Toeplitz hash value.
585 * (32bit little-endian)
586 * +04: Outer VLAN tag. Zero if the packet did not have an outer VLAN tag.
588 * +06: Inner VLAN tag. Zero if the packet did not have an inner VLAN tag.
590 * +08: Packet Length. Zero if the RX datapath was in cut-through mode.
591 * (16bit little-endian)
592 * +10: MAC timestamp. Zero if timestamping is not enabled.
593 * (32bit little-endian)
595 * See "The RX Pseudo-header" in SF-109306-TC.
598 __checkReturn efx_rc_t
599 ef10_rx_prefix_pktlen(
601 __in uint8_t *buffer,
602 __out uint16_t *lengthp)
604 _NOTE(ARGUNUSED(enp))
607 * The RX pseudo-header contains the packet length, excluding the
608 * pseudo-header. If the hardware receive datapath was operating in
609 * cut-through mode then the length in the RX pseudo-header will be
610 * zero, and the packet length must be obtained from the DMA length
611 * reported in the RX event.
613 *lengthp = buffer[8] | (buffer[9] << 8);
617 #if EFSYS_OPT_RX_SCALE
618 __checkReturn uint32_t
621 __in efx_rx_hash_alg_t func,
622 __in uint8_t *buffer)
624 _NOTE(ARGUNUSED(enp))
627 case EFX_RX_HASHALG_TOEPLITZ:
638 #endif /* EFSYS_OPT_RX_SCALE */
643 __in_ecount(n) efsys_dma_addr_t *addrp,
646 __in unsigned int completed,
647 __in unsigned int added)
654 _NOTE(ARGUNUSED(completed))
656 /* The client driver must not overfill the queue */
657 EFSYS_ASSERT3U(added - completed + n, <=,
658 EFX_RXQ_LIMIT(erp->er_mask + 1));
660 id = added & (erp->er_mask);
661 for (i = 0; i < n; i++) {
662 EFSYS_PROBE4(rx_post, unsigned int, erp->er_index,
663 unsigned int, id, efsys_dma_addr_t, addrp[i],
666 EFX_POPULATE_QWORD_3(qword,
667 ESF_DZ_RX_KER_BYTE_CNT, (uint32_t)(size),
668 ESF_DZ_RX_KER_BUF_ADDR_DW0,
669 (uint32_t)(addrp[i] & 0xffffffff),
670 ESF_DZ_RX_KER_BUF_ADDR_DW1,
671 (uint32_t)(addrp[i] >> 32));
673 offset = id * sizeof (efx_qword_t);
674 EFSYS_MEM_WRITEQ(erp->er_esmp, offset, &qword);
676 id = (id + 1) & (erp->er_mask);
683 __in unsigned int added,
684 __inout unsigned int *pushedp)
686 efx_nic_t *enp = erp->er_enp;
687 unsigned int pushed = *pushedp;
691 /* Hardware has alignment restriction for WPTR */
692 wptr = P2ALIGN(added, EF10_RX_WPTR_ALIGN);
698 /* Push the populated descriptors out */
699 wptr &= erp->er_mask;
701 EFX_POPULATE_DWORD_1(dword, ERF_DZ_RX_DESC_WPTR, wptr);
703 /* Guarantee ordering of memory (descriptors) and PIO (doorbell) */
704 EFX_DMA_SYNC_QUEUE_FOR_DEVICE(erp->er_esmp, erp->er_mask + 1,
705 wptr, pushed & erp->er_mask);
706 EFSYS_PIO_WRITE_BARRIER();
707 EFX_BAR_TBL_WRITED(enp, ER_DZ_RX_DESC_UPD_REG,
708 erp->er_index, &dword, B_FALSE);
711 __checkReturn efx_rc_t
715 efx_nic_t *enp = erp->er_enp;
718 if ((rc = efx_mcdi_fini_rxq(enp, erp->er_index)) != 0)
725 * EALREADY is not an error, but indicates that the MC has rebooted and
726 * that the RXQ has already been destroyed. Callers need to know that
727 * the RXQ flush has completed to avoid waiting until timeout for a
728 * flush done event that will not be delivered.
731 EFSYS_PROBE1(fail1, efx_rc_t, rc);
741 _NOTE(ARGUNUSED(erp))
745 __checkReturn efx_rc_t
748 __in unsigned int index,
749 __in unsigned int label,
750 __in efx_rxq_type_t type,
751 __in efsys_mem_t *esmp,
757 efx_nic_cfg_t *encp = &(enp->en_nic_cfg);
759 boolean_t disable_scatter;
761 _NOTE(ARGUNUSED(id, erp))
763 EFX_STATIC_ASSERT(EFX_EV_RX_NLABELS == (1 << ESF_DZ_RX_QLABEL_WIDTH));
764 EFSYS_ASSERT3U(label, <, EFX_EV_RX_NLABELS);
765 EFSYS_ASSERT3U(enp->en_rx_qcount + 1, <, encp->enc_rxq_limit);
767 EFX_STATIC_ASSERT(ISP2(EFX_RXQ_MAXNDESCS));
768 EFX_STATIC_ASSERT(ISP2(EFX_RXQ_MINNDESCS));
770 if (!ISP2(n) || (n < EFX_RXQ_MINNDESCS) || (n > EFX_RXQ_MAXNDESCS)) {
774 if (index >= encp->enc_rxq_limit) {
779 /* Scatter can only be disabled if the firmware supports doing so */
780 if (type == EFX_RXQ_TYPE_SCATTER)
781 disable_scatter = B_FALSE;
783 disable_scatter = encp->enc_rx_disable_scatter_supported;
785 if ((rc = efx_mcdi_init_rxq(enp, n, eep->ee_index, label, index,
786 esmp, disable_scatter)) != 0)
790 erp->er_label = label;
792 ef10_ev_rxlabel_init(eep, erp, label);
801 EFSYS_PROBE1(fail1, efx_rc_t, rc);
810 efx_nic_t *enp = erp->er_enp;
811 efx_evq_t *eep = erp->er_eep;
812 unsigned int label = erp->er_label;
814 ef10_ev_rxlabel_fini(eep, label);
816 EFSYS_ASSERT(enp->en_rx_qcount != 0);
819 EFSYS_KMEM_FREE(enp->en_esip, sizeof (efx_rxq_t), erp);
826 #if EFSYS_OPT_RX_SCALE
827 if (enp->en_rss_support != EFX_RX_SCALE_UNAVAILABLE) {
828 (void) efx_mcdi_rss_context_free(enp, enp->en_rss_context);
830 enp->en_rss_context = 0;
831 enp->en_rss_support = EFX_RX_SCALE_UNAVAILABLE;
833 _NOTE(ARGUNUSED(enp))
834 #endif /* EFSYS_OPT_RX_SCALE */
837 #endif /* EFSYS_OPT_HUNTINGTON || EFSYS_OPT_MEDFORD */