svn commit: r342477 - stable/10/sys/dev/sfxge

Andrew Rybchenko arybchik at FreeBSD.org
Wed Dec 26 09:30:54 UTC 2018


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);
 


More information about the svn-src-all mailing list