diff options
author | arybchik <arybchik@FreeBSD.org> | 2017-01-01 19:09:50 +0000 |
---|---|---|
committer | arybchik <arybchik@FreeBSD.org> | 2017-01-01 19:09:50 +0000 |
commit | ef45d13d328126edee11d5d6d539f5094272f448 (patch) | |
tree | 29633fafa242bfc97214880b085bccbc05c4b7ea /sys/dev/sfxge | |
parent | 75fa2a565c52ed67a07cde938a5755ff09e936ff (diff) | |
download | FreeBSD-src-ef45d13d328126edee11d5d6d539f5094272f448.zip FreeBSD-src-ef45d13d328126edee11d5d6d539f5094272f448.tar.gz |
MFC r310748
sfxge(4): cleanup: simplify disable scatter logic in ef10_rx_qcreate
Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
Diffstat (limited to 'sys/dev/sfxge')
-rw-r--r-- | sys/dev/sfxge/common/ef10_rx.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/sfxge/common/ef10_rx.c b/sys/dev/sfxge/common/ef10_rx.c index 3bbee26..7f18026 100644 --- a/sys/dev/sfxge/common/ef10_rx.c +++ b/sys/dev/sfxge/common/ef10_rx.c @@ -769,12 +769,10 @@ ef10_rx_qcreate( } /* Scatter can only be disabled if the firmware supports doing so */ - if ((type != EFX_RXQ_TYPE_SCATTER) && - enp->en_nic_cfg.enc_rx_disable_scatter_supported) { - disable_scatter = B_TRUE; - } else { + if (type == EFX_RXQ_TYPE_SCATTER) disable_scatter = B_FALSE; - } + else + disable_scatter = encp->enc_rx_disable_scatter_supported; if ((rc = efx_mcdi_init_rxq(enp, n, eep->ee_index, label, index, esmp, disable_scatter)) != 0) |