svn commit: r223423 - user/adrian/if_ath_tx/sys/dev/ath

[ Available lists | Index of svn-src-user | Month of Jun 2011 | Week of 22 Jun 2011 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Adrian Chadd <adrian@FreeBSD.org>
Date
22 Jun 2011 14:33:16
Subject
svn commit: r223423 - user/adrian/if_ath_tx/sys/dev/ath
Message-ID
201106221433.p5MEXGHN053249@svn.freebsd.org


[ Hide this part ]
Author: adrian
Date: Wed Jun 22 14:33:16 2011
New Revision: 223423
URL: http://svn.freebsd.org/changeset/base/223423

Log:
Squirrel away a cheap copy of the sequence number to use in later trechery.

When doing A-MPDU, the sequence number of the current packet is needed
in order to ensure what's queued to the hardware is within the BAW.
When doing aggregation, the sequence number of the current packet is
needed to see whether to squeeze said packet into an aggregate.

The code could use M_SEQNO() (and I may do that later) but one of my aims
is to separate out the code which handles mbufs to the code which does
all the rest of it.

Modified:
user/adrian/if_ath_tx/sys/dev/ath/if_ath_tx.c

Modified: user/adrian/if_ath_tx/sys/dev/ath/if_ath_tx.c
==============================================================================
--- user/adrian/if_ath_tx/sys/dev/ath/if_ath_tx.c Wed Jun 22 14:27:30 2011 (r223422)
+++ user/adrian/if_ath_tx/sys/dev/ath/if_ath_tx.c Wed Jun 22 14:33:16 2011 (r223423)
@@ -965,6 +965,12 @@ ath_tx_start(struct ath_softc *sc, struc
if (is_ampdu_tx)
seqno = ath_tx_tid_seqno_assign(sc, ni, bf, m0);

+ /*
+ * If needed, the sequence number has been assigned.
+ * Squirrel it away somewhere easy to get to.
+ */
+ bf->bf_state.bfs_seqno = M_SEQNO_GET(m0);
+
#if 0
/* Is ampdu pending? fetch the seqno and print it out */
if (is_ampdu_pending)

Elapsed time: 0.136 seconds