From patchwork Fri Feb 28 06:32:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Aring X-Patchwork-Id: 325042 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id A2FA52C00A0 for ; Fri, 28 Feb 2014 17:33:07 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751573AbaB1GdC (ORCPT ); Fri, 28 Feb 2014 01:33:02 -0500 Received: from mail-ee0-f44.google.com ([74.125.83.44]:52913 "EHLO mail-ee0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751279AbaB1GdA (ORCPT ); Fri, 28 Feb 2014 01:33:00 -0500 Received: by mail-ee0-f44.google.com with SMTP id d49so1941763eek.17 for ; Thu, 27 Feb 2014 22:32:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=zHk0/SYmC0smtWcRB8BCKxGnDtToNd3OC2F+FzCwfiw=; b=YifcnquyoYyH2xEGu3HcQlpNVV+eZOyEbQr9OCK03Q1BLUFe3+jE20WryvhSL8dWtb lAnAdKVdc57KuJFfU5BT5kJpa2cQTUx6KrGEVUjCeOssiqZf2wmqmY5dC7xc2fV8x7Dv KU74uY1RPf0fYVNMxK5nQ3IHrOtjKVt7b76sYovvs2MqIhRLE4uYkvDLIdy4WVI+OUQ2 N7QPRWQb16sD2SVLT4VO4/LlKDCc7Z50beVEgyuXzk0AgSEL0j22c+OafdSlbf7LJKVE ckHbM8IsX7YxxFr8hOhwGJNqKnm7Rq6l3/07khMC546fwTZGo0oDu/Ll8xzllDrJv9qo 9VoQ== X-Received: by 10.14.103.134 with SMTP id f6mr18993491eeg.41.1393569179087; Thu, 27 Feb 2014 22:32:59 -0800 (PST) Received: from localhost.localdomain (p4FD3262B.dip0.t-ipconnect.de. [79.211.38.43]) by mx.google.com with ESMTPSA id m8sm6501249eef.14.2014.02.27.22.32.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 27 Feb 2014 22:32:58 -0800 (PST) From: Alexander Aring To: alex.bluesman.smirnov@gmail.com Cc: dbaryshkov@gmail.com, davem@davemloft.net, linux-zigbee-devel@lists.sourceforge.net, netdev@vger.kernel.org, martin.townsend@xsilon.com, Alexander Aring Subject: [PATCH net-next v6 1/8] 6lowpan: add frag information struct Date: Fri, 28 Feb 2014 07:32:43 +0100 Message-Id: <1393569170-25722-2-git-send-email-alex.aring@gmail.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1393569170-25722-1-git-send-email-alex.aring@gmail.com> References: <1393569170-25722-1-git-send-email-alex.aring@gmail.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This patch adds a 6lowpan fragmentation struct into cb of skb which is necessary to hold fragmentation information. Signed-off-by: Alexander Aring --- include/net/ieee802154_netdev.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/net/ieee802154_netdev.h b/include/net/ieee802154_netdev.h index 8196d5d..97b2e34 100644 --- a/include/net/ieee802154_netdev.h +++ b/include/net/ieee802154_netdev.h @@ -29,6 +29,12 @@ #include +struct ieee802154_frag_info { + __be16 d_tag; + u16 d_size; + u8 d_offset; +}; + /* * A control block of skb passed between the ARPHRD_IEEE802154 device * and other stack parts. @@ -39,6 +45,7 @@ struct ieee802154_mac_cb { struct ieee802154_addr da; u8 flags; u8 seq; + struct ieee802154_frag_info frag_info; }; static inline struct ieee802154_mac_cb *mac_cb(struct sk_buff *skb)