]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
mwl8k: Do not stop tx queues
authorPradeep Nemavat <pnemavat@marvell.com>
Thu, 21 Apr 2011 11:04:56 +0000 (16:34 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 25 Apr 2011 18:50:15 +0000 (14:50 -0400)
commit3a7dbc3b2ac545efac75d4145839eaa7b59d9741
tree2041ea40d40fdf0e38874d32b9fdd2f659a57012
parent2624e96ce16bacae0e422d5775eac6d4fc33239a
mwl8k: Do not stop tx queues

This is in preparation to support life time expiry of packets in the
hardware to avoid head-of-line blocking where a slow client can
hog a tx queue and affect the traffic to a faster client from the same
queue. Time stamp the packets in driver to allow dropping them in the
hardware if they are queued for more than 500ms.

If queues are stopped, packets will be queued up outside the driver.
Since we will be able to timestamp the packets only after they hit the
driver, the timestamp will be less accurate since we cannot consider
the time the packets spent in queues outside the driver. With this commit,
to achieve accurate timestamping, the tx queues will not be stopped in
normal conditions. The only scenarios where the queues will be stopped are
when firmware commands are executing or if the interface is brought down.
Now, we need to be prepared for a situation where packets hit the driver
even after the tx queues are full. Drop all such packets in the driver itself.

Signed-off-by: Pradeep Nemavat <pnemavat@marvell.com>
Signed-off-by: Nishant Sarmukadam <nishants@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwl8k.c