1/*- 2 * Copyright (c) 2007-2015 Solarflare Communications Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright notice, --- 15 unchanged lines hidden (view full) --- 24 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * 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. 29 */ 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: head/sys/dev/sfxge/common/efx_rx.c 299320 2016-05-10 07:01:06Z arybchik $"); |
33 34#include "efx.h" 35#include "efx_impl.h" 36 37 |
38#if EFSYS_OPT_SIENA |
39 40static __checkReturn efx_rc_t 41falconsiena_rx_init( 42 __in efx_nic_t *enp); 43 44static void 45falconsiena_rx_fini( 46 __in efx_nic_t *enp); --- 73 unchanged lines hidden (view full) --- 120 __in uint32_t id, 121 __in efx_evq_t *eep, 122 __in efx_rxq_t *erp); 123 124static void 125falconsiena_rx_qdestroy( 126 __in efx_rxq_t *erp); 127 |
128#endif /* EFSYS_OPT_SIENA */ |
129 130 |
131#if EFSYS_OPT_SIENA 132static efx_rx_ops_t __efx_rx_siena_ops = { 133 falconsiena_rx_init, /* erxo_init */ 134 falconsiena_rx_fini, /* erxo_fini */ 135#if EFSYS_OPT_RX_SCATTER 136 falconsiena_rx_scatter_enable, /* erxo_scatter_enable */ 137#endif 138#if EFSYS_OPT_RX_SCALE --- 52 unchanged lines hidden (view full) --- 191 } 192 193 if (enp->en_mod_flags & EFX_MOD_RX) { 194 rc = EINVAL; 195 goto fail2; 196 } 197 198 switch (enp->en_family) { |
199#if EFSYS_OPT_SIENA 200 case EFX_FAMILY_SIENA: 201 erxop = (efx_rx_ops_t *)&__efx_rx_siena_ops; 202 break; 203#endif /* EFSYS_OPT_SIENA */ 204 205#if EFSYS_OPT_HUNTINGTON 206 case EFX_FAMILY_HUNTINGTON: --- 352 unchanged lines hidden (view full) --- 559{ 560 efx_rx_ops_t *erxop = enp->en_erxop; 561 562 EFSYS_ASSERT3U(enp->en_hash_support, ==, EFX_RX_HASH_AVAILABLE); 563 return (erxop->erxo_prefix_hash(enp, func, buffer)); 564} 565#endif /* EFSYS_OPT_RX_SCALE */ 566 |
567#if EFSYS_OPT_SIENA |
568 569static __checkReturn efx_rc_t 570falconsiena_rx_init( 571 __in efx_nic_t *enp) 572{ 573 efx_oword_t oword; 574 unsigned int index; 575 --- 645 unchanged lines hidden (view full) --- 1221 1222static void 1223falconsiena_rx_fini( 1224 __in efx_nic_t *enp) 1225{ 1226 _NOTE(ARGUNUSED(enp)) 1227} 1228 |
1229#endif /* EFSYS_OPT_SIENA */ |