From patchwork Mon Oct 12 21:19:18 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hauke Mehrtens X-Patchwork-Id: 53217 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 n9CLU8Jd025169 for ; Mon, 12 Oct 2009 21:30:10 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758326AbZJLVUs (ORCPT ); Mon, 12 Oct 2009 17:20:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758321AbZJLVUr (ORCPT ); Mon, 12 Oct 2009 17:20:47 -0400 Received: from server19320154104.serverpool.info ([193.201.54.104]:47124 "EHLO hauke-m.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758313AbZJLVUq (ORCPT ); Mon, 12 Oct 2009 17:20:46 -0400 Received: from localhost (localhost [127.0.0.1]) by hauke-m.de (Postfix) with ESMTP id 427538212; Mon, 12 Oct 2009 23:19:44 +0200 (CEST) Received: from hauke-m.de ([127.0.0.1]) by localhost (hauke-m.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dvtUnY40PrMb; Mon, 12 Oct 2009 23:19:40 +0200 (CEST) Received: from localhost.localdomain (dyndsl-085-016-164-212.ewe-ip-backbone.de [85.16.164.212]) by hauke-m.de (Postfix) with ESMTPSA id CFD258214; Mon, 12 Oct 2009 23:19:23 +0200 (CEST) From: Hauke Mehrtens To: lrodriguez@atheros.com Cc: linux-wireless@vger.kernel.org, Hauke Mehrtens Subject: [PATCH 9/9] [compat-2.6] Add skb_add_rx_frag to backport. Date: Mon, 12 Oct 2009 23:19:18 +0200 Message-Id: <1255382358-20760-11-git-send-email-hauke@hauke-m.de> X-Mailer: git-send-email 1.6.2.1 In-Reply-To: <1255382358-20760-1-git-send-email-hauke@hauke-m.de> References: <1255382358-20760-1-git-send-email-hauke@hauke-m.de> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org diff --git a/compat/compat-2.6.28.c b/compat/compat-2.6.28.c index 33871a2..c379b19 100644 --- a/compat/compat-2.6.28.c +++ b/compat/compat-2.6.28.c @@ -275,4 +275,14 @@ unsigned long round_jiffies_up(unsigned long j) } EXPORT_SYMBOL_GPL(round_jiffies_up); +void skb_add_rx_frag(struct sk_buff *skb, int i, struct page *page, int off, + int size) +{ + skb_fill_page_desc(skb, i, page, off, size); + skb->len += size; + skb->data_len += size; + skb->truesize += size; +} +EXPORT_SYMBOL(skb_add_rx_frag); + #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28) */ diff --git a/compat/compat-2.6.28.h b/compat/compat-2.6.28.h index dd223c6..f158cbe 100644 --- a/compat/compat-2.6.28.h +++ b/compat/compat-2.6.28.h @@ -178,6 +178,9 @@ static inline void skb_queue_splice_tail_init(struct sk_buff_head *list, unsigned long round_jiffies_up(unsigned long j); +extern void skb_add_rx_frag(struct sk_buff *skb, int i, struct page *page, + int off, int size); + #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)) */ #endif /* LINUX_26_28_COMPAT_H */