Author: arybchik
Date: Wed Dec 26 09:30:53 2018
New Revision: 342477
URL: https://svnweb.freebsd.org/changeset/base/342477

Log:
  MFC r312883
  
  sfxge(4): fix invalid VLAN tagging after stop/start
  
  TxQ is destroyed on stop and last used tag should be reset to default 0
  on the next start.
  
  Sponsored by:   Solarflare Communications, Inc.
  Differential Revision:  https://reviews.freebsd.org/D9358

Modified:
  stable/10/sys/dev/sfxge/sfxge_tx.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/sfxge/sfxge_tx.c
==============================================================================
--- stable/10/sys/dev/sfxge/sfxge_tx.c  Wed Dec 26 09:30:06 2018        
(r342476)
+++ stable/10/sys/dev/sfxge/sfxge_tx.c  Wed Dec 26 09:30:53 2018        
(r342477)
@@ -1604,6 +1604,8 @@ sfxge_tx_qstart(struct sfxge_softc *sc, unsigned int i
        txq->max_pkt_desc = sfxge_tx_max_pkt_desc(sc, txq->type,
                                                  tso_fw_assisted);
 
+       txq->hw_vlan_tci = 0;
+
        SFXGE_TXQ_UNLOCK(txq);
 
        return (0);
@@ -1820,7 +1822,6 @@ sfxge_tx_qinit(struct sfxge_softc *sc, unsigned int tx
        txq->type = type;
        txq->evq_index = evq_index;
        txq->init_state = SFXGE_TXQ_INITIALIZED;
-       txq->hw_vlan_tci = 0;
 
        return (0);
 
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to