mbox series

[0/4] move skb mapping before configuring txwi

Message ID cover.1552306908.git.lorenzo@kernel.org (mailing list archive)
Headers show
Series move skb mapping before configuring txwi | expand

Message

Lorenzo Bianconi March 11, 2019, 12:35 p.m. UTC
Move skb dma mapping before configuring txwi since new chipsets
(e.g. mt7615) will need dma addresses to properly configure txwi.
Introduce temporary tx_aligned4_skbs variable in order to tell mt76 layer
if it is necessary to align the 802.11 header (it will be removed as soon
as mac80211 will take care of it)

Lorenzo Bianconi (4):
  mt76: move mt76x02_insert_hdr_pad in mt76-core module
  mt76: mmio: move mt76_insert_hdr_pad in mt76_dma_tx_queue_skb
  mt76: move skb dma mapping before running tx_prepare_skb
  mt76: introduce mt76_tx_info data structure

 drivers/net/wireless/mediatek/mt76/dma.c      | 55 +++++++++----------
 drivers/net/wireless/mediatek/mt76/mt76.h     | 25 ++++++++-
 .../net/wireless/mediatek/mt76/mt7603/mac.c   |  2 +-
 .../wireless/mediatek/mt76/mt7603/mt7603.h    |  2 +-
 .../net/wireless/mediatek/mt76/mt76x0/pci.c   |  1 +
 drivers/net/wireless/mediatek/mt76/mt76x02.h  |  3 +-
 .../net/wireless/mediatek/mt76/mt76x02_txrx.c | 21 +++----
 .../net/wireless/mediatek/mt76/mt76x02_usb.h  |  2 +-
 .../wireless/mediatek/mt76/mt76x02_usb_core.c |  4 +-
 .../net/wireless/mediatek/mt76/mt76x02_util.c | 16 ------
 .../net/wireless/mediatek/mt76/mt76x2/pci.c   |  1 +
 11 files changed, 68 insertions(+), 64 deletions(-)

Comments

Lorenzo Bianconi March 11, 2019, 1:17 p.m. UTC | #1
> Move skb dma mapping before configuring txwi since new chipsets
> (e.g. mt7615) will need dma addresses to properly configure txwi.
> Introduce temporary tx_aligned4_skbs variable in order to tell mt76 layer
> if it is necessary to align the 802.11 header (it will be removed as soon
> as mac80211 will take care of it)
> 
> Lorenzo Bianconi (4):
>   mt76: move mt76x02_insert_hdr_pad in mt76-core module
>   mt76: mmio: move mt76_insert_hdr_pad in mt76_dma_tx_queue_skb
>   mt76: move skb dma mapping before running tx_prepare_skb
>   mt76: introduce mt76_tx_info data structure
> 
>  drivers/net/wireless/mediatek/mt76/dma.c      | 55 +++++++++----------
>  drivers/net/wireless/mediatek/mt76/mt76.h     | 25 ++++++++-
>  .../net/wireless/mediatek/mt76/mt7603/mac.c   |  2 +-
>  .../wireless/mediatek/mt76/mt7603/mt7603.h    |  2 +-
>  .../net/wireless/mediatek/mt76/mt76x0/pci.c   |  1 +
>  drivers/net/wireless/mediatek/mt76/mt76x02.h  |  3 +-
>  .../net/wireless/mediatek/mt76/mt76x02_txrx.c | 21 +++----
>  .../net/wireless/mediatek/mt76/mt76x02_usb.h  |  2 +-
>  .../wireless/mediatek/mt76/mt76x02_usb_core.c |  4 +-
>  .../net/wireless/mediatek/mt76/mt76x02_util.c | 16 ------
>  .../net/wireless/mediatek/mt76/mt76x2/pci.c   |  1 +
>  11 files changed, 68 insertions(+), 64 deletions(-)

I forgot to mention this series is based on:
'introduce mt76_sw_queue data structure'
https://patchwork.kernel.org/cover/10836583/

Regards,
Lorenzo

> 
> -- 
> 2.20.1
>