svn commit: r342404 - stable/11/sys/dev/sfxge
Andrew Rybchenko
arybchik at FreeBSD.org
Tue Dec 25 06:36:34 UTC 2018
Author: arybchik
Date: Tue Dec 25 06:36:33 2018
New Revision: 342404
URL: https://svnweb.freebsd.org/changeset/base/342404
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/11/sys/dev/sfxge/sfxge_tx.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/dev/sfxge/sfxge_tx.c
==============================================================================
--- stable/11/sys/dev/sfxge/sfxge_tx.c Tue Dec 25 06:35:40 2018 (r342403)
+++ stable/11/sys/dev/sfxge/sfxge_tx.c Tue Dec 25 06:36:33 2018 (r342404)
@@ -1623,6 +1623,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);
@@ -1839,7 +1841,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-stable-11
mailing list