Search Linux Wireless

Re: [PATCH V2 1/2] mac80211: support paged rx SKBs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Zhu Yi <yi.zhu@xxxxxxxxx> writes:

> Mac80211 drivers can now pass paged SKBs to mac80211 via
> ieee80211_rx{_irqsafe}. The implementation currently use
> skb_linearize() in a few places i.e. management frame
> handling, software decryption, defragmentation and A-MSDU
> process. We will optimize them one by one later.

[...]

> --- a/include/net/mac80211.h
> +++ b/include/net/mac80211.h
> @@ -1822,7 +1822,10 @@ void ieee80211_restart_hw(struct ieee80211_hw *hw);
>   * ieee80211_rx - receive frame
>   *
>   * Use this function to hand received frames to mac80211. The receive
> - * buffer in @skb must start with an IEEE 802.11 header.
> + * buffer in @skb must start with an IEEE 802.11 header. In case of a
> + * paged @skb is used, the driver is recommended to put the ieee80211
> + * header of the frame on the linear part of the @skb to avoid memory
> + * allocation and/or memcpy by the stack.

This is much better now. Thank you.

-- 
Kalle Valo
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux