svn commit: r312883 - head/sys/dev/sfxge
Andrew Rybchenko
arybchik at FreeBSD.org
Fri Jan 27 11:56:19 UTC 2017
Author: arybchik
Date: Fri Jan 27 11:56:18 2017
New Revision: 312883
URL: https://svnweb.freebsd.org/changeset/base/312883
Log:
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.
Reviewed by: philip
Sponsored by: Solarflare Communications, Inc.
MFC after: 2 days
Differential Revision: https://reviews.freebsd.org/D9358
Modified:
head/sys/dev/sfxge/sfxge_tx.c
Modified: head/sys/dev/sfxge/sfxge_tx.c
==============================================================================
--- head/sys/dev/sfxge/sfxge_tx.c Fri Jan 27 11:46:55 2017 (r312882)
+++ head/sys/dev/sfxge/sfxge_tx.c Fri Jan 27 11:56:18 2017 (r312883)
@@ -1623,6 +1623,8 @@ sfxge_tx_qstart(struct sfxge_softc *sc,
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, u
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