efx_filter.c (293814) | efx_filter.c (293817) |
---|---|
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> | 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_filter.c 293814 2016-01-13 07:25:51Z arybchik $"); | 32__FBSDID("$FreeBSD: head/sys/dev/sfxge/common/efx_filter.c 293817 2016-01-13 07:46:21Z arybchik $"); |
33 34#include "efx.h" 35#include "efx_impl.h" 36 37 38#if EFSYS_OPT_FILTER 39 40#if EFSYS_OPT_FALCON || EFSYS_OPT_SIENA --- 246 unchanged lines hidden (view full) --- 287fail1: 288 EFSYS_PROBE1(fail1, efx_rc_t, rc); 289 290 return (rc); 291} 292 293 void 294efx_filter_spec_init_rx( | 33 34#include "efx.h" 35#include "efx_impl.h" 36 37 38#if EFSYS_OPT_FILTER 39 40#if EFSYS_OPT_FALCON || EFSYS_OPT_SIENA --- 246 unchanged lines hidden (view full) --- 287fail1: 288 EFSYS_PROBE1(fail1, efx_rc_t, rc); 289 290 return (rc); 291} 292 293 void 294efx_filter_spec_init_rx( |
295 __inout efx_filter_spec_t *spec, | 295 __out efx_filter_spec_t *spec, |
296 __in efx_filter_priority_t priority, 297 __in efx_filter_flag_t flags, 298 __in efx_rxq_t *erp) 299{ 300 EFSYS_ASSERT3P(spec, !=, NULL); 301 EFSYS_ASSERT3P(erp, !=, NULL); 302 EFSYS_ASSERT((flags & ~(EFX_FILTER_FLAG_RX_RSS | 303 EFX_FILTER_FLAG_RX_SCATTER)) == 0); 304 305 memset(spec, 0, sizeof (*spec)); 306 spec->efs_priority = priority; 307 spec->efs_flags = EFX_FILTER_FLAG_RX | flags; 308 spec->efs_rss_context = EFX_FILTER_SPEC_RSS_CONTEXT_DEFAULT; 309 spec->efs_dmaq_id = (uint16_t)erp->er_index; 310} 311 312 void 313efx_filter_spec_init_tx( | 296 __in efx_filter_priority_t priority, 297 __in efx_filter_flag_t flags, 298 __in efx_rxq_t *erp) 299{ 300 EFSYS_ASSERT3P(spec, !=, NULL); 301 EFSYS_ASSERT3P(erp, !=, NULL); 302 EFSYS_ASSERT((flags & ~(EFX_FILTER_FLAG_RX_RSS | 303 EFX_FILTER_FLAG_RX_SCATTER)) == 0); 304 305 memset(spec, 0, sizeof (*spec)); 306 spec->efs_priority = priority; 307 spec->efs_flags = EFX_FILTER_FLAG_RX | flags; 308 spec->efs_rss_context = EFX_FILTER_SPEC_RSS_CONTEXT_DEFAULT; 309 spec->efs_dmaq_id = (uint16_t)erp->er_index; 310} 311 312 void 313efx_filter_spec_init_tx( |
314 __inout efx_filter_spec_t *spec, | 314 __out efx_filter_spec_t *spec, |
315 __in efx_txq_t *etp) 316{ 317 EFSYS_ASSERT3P(spec, !=, NULL); 318 EFSYS_ASSERT3P(etp, !=, NULL); 319 320 memset(spec, 0, sizeof (*spec)); 321 spec->efs_priority = EFX_FILTER_PRI_REQUIRED; 322 spec->efs_flags = EFX_FILTER_FLAG_TX; --- 1117 unchanged lines hidden --- | 315 __in efx_txq_t *etp) 316{ 317 EFSYS_ASSERT3P(spec, !=, NULL); 318 EFSYS_ASSERT3P(etp, !=, NULL); 319 320 memset(spec, 0, sizeof (*spec)); 321 spec->efs_priority = EFX_FILTER_PRI_REQUIRED; 322 spec->efs_flags = EFX_FILTER_FLAG_TX; --- 1117 unchanged lines hidden --- |