From patchwork Wed Oct 28 20:13:52 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Reinette Chatre X-Patchwork-Id: 56348 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9SKEcOs032634 for ; Wed, 28 Oct 2009 20:14:38 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754747AbZJ1UNu (ORCPT ); Wed, 28 Oct 2009 16:13:50 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754797AbZJ1UNt (ORCPT ); Wed, 28 Oct 2009 16:13:49 -0400 Received: from mga11.intel.com ([192.55.52.93]:26776 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754747AbZJ1UNr (ORCPT ); Wed, 28 Oct 2009 16:13:47 -0400 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 28 Oct 2009 13:00:05 -0700 X-ExtLoop1: 1 Received: from rc-desk.jf.intel.com (HELO localhost.localdomain) ([134.134.15.187]) by fmsmga001.fm.intel.com with ESMTP; 28 Oct 2009 13:16:40 -0700 From: Reinette Chatre To: johannes@sipsolutions.net, linville@tuxdriver.com Cc: linux-wireless@vger.kernel.org, Zhu Yi , Reinette Chatre Subject: [PATCH] mac80211: make align adjustment code support paged SKB Date: Wed, 28 Oct 2009 13:13:52 -0700 Message-Id: <1256760832-29063-1-git-send-email-reinette.chatre@intel.com> X-Mailer: git-send-email 1.5.6.3 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index 5c385e3..a50d5f3 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -1337,10 +1337,10 @@ ieee80211_deliver_skb(struct ieee80211_rx_data *rx) skb = NULL; } else { u8 *data = skb->data; - size_t len = skb->len; - u8 *new = __skb_push(skb, align); - memmove(new, data, len); - __skb_trim(skb, len); + size_t len = skb_headlen(skb); + skb->data -= align; + memmove(skb->data, data, len); + skb_set_tail_pointer(skb, len); } } #endif