sfxge.c (342454) | sfxge.c (342455) |
---|---|
1/*- 2 * Copyright (c) 2010-2016 Solarflare Communications Inc. 3 * All rights reserved. 4 * 5 * This software was developed in part by Philip Paeps under contract for 6 * Solarflare Communications, Inc. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 18 unchanged lines hidden (view full) --- 27 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * 29 * The views and conclusions contained in the software and documentation are 30 * those of the authors and should not be interpreted as representing official 31 * policies, either expressed or implied, of the FreeBSD Project. 32 */ 33 34#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2010-2016 Solarflare Communications Inc. 3 * All rights reserved. 4 * 5 * This software was developed in part by Philip Paeps under contract for 6 * Solarflare Communications, Inc. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 18 unchanged lines hidden (view full) --- 27 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * 29 * The views and conclusions contained in the software and documentation are 30 * those of the authors and should not be interpreted as representing official 31 * policies, either expressed or implied, of the FreeBSD Project. 32 */ 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: stable/11/sys/dev/sfxge/sfxge.c 342454 2018-12-25 07:38:46Z arybchik $"); | 35__FBSDID("$FreeBSD: stable/11/sys/dev/sfxge/sfxge.c 342455 2018-12-25 07:39:34Z arybchik $"); |
36 37#include "opt_rss.h" 38 39#include <sys/param.h> 40#include <sys/kernel.h> 41#include <sys/bus.h> 42#include <sys/rman.h> 43#include <sys/lock.h> --- 711 unchanged lines hidden (view full) --- 755 log(LOG_ERR, "%s=%d must be power of 2 from %u to %u", 756 SFXGE_PARAM_RX_RING, sfxge_rx_ring_entries, 757 EFX_RXQ_MINNDESCS, EFX_RXQ_MAXNDESCS); 758 error = EINVAL; 759 goto fail_rx_ring_entries; 760 } 761 sc->rxq_entries = sfxge_rx_ring_entries; 762 | 36 37#include "opt_rss.h" 38 39#include <sys/param.h> 40#include <sys/kernel.h> 41#include <sys/bus.h> 42#include <sys/rman.h> 43#include <sys/lock.h> --- 711 unchanged lines hidden (view full) --- 755 log(LOG_ERR, "%s=%d must be power of 2 from %u to %u", 756 SFXGE_PARAM_RX_RING, sfxge_rx_ring_entries, 757 EFX_RXQ_MINNDESCS, EFX_RXQ_MAXNDESCS); 758 error = EINVAL; 759 goto fail_rx_ring_entries; 760 } 761 sc->rxq_entries = sfxge_rx_ring_entries; 762 |
763 if (efx_nic_cfg_get(enp)->enc_features & EFX_FEATURE_TXQ_CKSUM_OP_DESC) 764 sc->txq_dynamic_cksum_toggle_supported = B_TRUE; 765 else 766 sc->txq_dynamic_cksum_toggle_supported = B_FALSE; 767 |
|
763 if (!ISP2(sfxge_tx_ring_entries) || 764 (sfxge_tx_ring_entries < EFX_TXQ_MINNDESCS) || 765 (sfxge_tx_ring_entries > efx_nic_cfg_get(enp)->enc_txq_max_ndescs)) { 766 log(LOG_ERR, "%s=%d must be power of 2 from %u to %u", 767 SFXGE_PARAM_TX_RING, sfxge_tx_ring_entries, 768 EFX_TXQ_MINNDESCS, efx_nic_cfg_get(enp)->enc_txq_max_ndescs); 769 error = EINVAL; 770 goto fail_tx_ring_entries; --- 432 unchanged lines hidden --- | 768 if (!ISP2(sfxge_tx_ring_entries) || 769 (sfxge_tx_ring_entries < EFX_TXQ_MINNDESCS) || 770 (sfxge_tx_ring_entries > efx_nic_cfg_get(enp)->enc_txq_max_ndescs)) { 771 log(LOG_ERR, "%s=%d must be power of 2 from %u to %u", 772 SFXGE_PARAM_TX_RING, sfxge_tx_ring_entries, 773 EFX_TXQ_MINNDESCS, efx_nic_cfg_get(enp)->enc_txq_max_ndescs); 774 error = EINVAL; 775 goto fail_tx_ring_entries; --- 432 unchanged lines hidden --- |