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)
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to