]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: allow DMA optimisation
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 7 Aug 2009 14:42:15 +0000 (16:42 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 14 Aug 2009 13:13:44 +0000 (09:13 -0400)
commit0c5d42df729553db25f44936625d6434d887534a
tree3c77642d10862aa9eea9c9366090941c18b69ac3
parent54423c48f9bd59733f2a12144b3944b4a32cc9ed
mac80211: allow DMA optimisation

If we have a lot of frames to transmit at once, for
instance with fragmentation, it can be an optimisation
to only tell the DMA engine about them on the last
fragment/frame to avoid banging the IO too much. This
patch allows implementation such an optimisation by
telling the driver when more frames can be expected.

Currently, this is used by mac80211 only on fragmented
frames, but could also be used in the future on other
frames when the queue was full and there are multiple
frames pending.

Note that drivers need to be careful when using this
flag, they need to kick their DMA engines not just
when this flag is clear, but also when the queue gets
full so that progress can be made.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/net/mac80211.h
net/mac80211/tx.c