svn commit: r311018 - stable/11/sys/dev/sfxge/common
Andrew Rybchenko
arybchik at FreeBSD.org
Sun Jan 1 19:09:52 UTC 2017
Author: arybchik
Date: Sun Jan 1 19:09:50 2017
New Revision: 311018
URL: https://svnweb.freebsd.org/changeset/base/311018
Log:
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.
Modified:
stable/11/sys/dev/sfxge/common/ef10_rx.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/dev/sfxge/common/ef10_rx.c
==============================================================================
--- stable/11/sys/dev/sfxge/common/ef10_rx.c Sun Jan 1 19:07:41 2017 (r311017)
+++ stable/11/sys/dev/sfxge/common/ef10_rx.c Sun Jan 1 19:09:50 2017 (r311018)
@@ -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)
More information about the svn-src-stable
mailing list