Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Dec 2018 09:30:53 +0000 (UTC)
From:      Andrew Rybchenko <arybchik@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r342477 - stable/10/sys/dev/sfxge
Message-ID:  <201812260930.wBQ9UrPA096630@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812260930.wBQ9UrPA096630>