Return-Path: Received: from mail-wg0-f41.google.com ([74.125.82.41]:44076 "EHLO mail-wg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752538AbaJ0QOS (ORCPT ); Mon, 27 Oct 2014 12:14:18 -0400 Received: by mail-wg0-f41.google.com with SMTP id b13so6065255wgh.0 for ; Mon, 27 Oct 2014 09:14:17 -0700 (PDT) From: Alexander Aring Subject: [PATCHv2 bluetooth-next 09/16] mac802154: rx: add CHECKSUM_UNNECESSARY Date: Mon, 27 Oct 2014 17:13:36 +0100 Message-Id: <1414426423-24856-10-git-send-email-alex.aring@gmail.com> In-Reply-To: <1414426423-24856-1-git-send-email-alex.aring@gmail.com> References: <1414426423-24856-1-git-send-email-alex.aring@gmail.com> Sender: linux-wpan-owner@vger.kernel.org List-ID: To: linux-wpan@vger.kernel.org Cc: kernel@pengutronix.de, Alexander Aring This patch adds CHECKSUM_UNNECESSARY to skb->ip_summed before delivery. There exist no transceiver with IP checksum functionality. Signed-off-by: Alexander Aring --- net/mac802154/rx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/mac802154/rx.c b/net/mac802154/rx.c index c4066b5..14eecac 100644 --- a/net/mac802154/rx.c +++ b/net/mac802154/rx.c @@ -31,6 +31,7 @@ static int mac802154_process_data(struct net_device *dev, struct sk_buff *skb) { + skb->ip_summed = CHECKSUM_UNNECESSARY; skb->protocol = htons(ETH_P_IEEE802154); return netif_receive_skb(skb); @@ -226,6 +227,7 @@ mac802154_monitors_rx(struct ieee802154_local *local, struct sk_buff *skb) u16 crc = crc_ccitt(0, skb->data, skb->len); u8 *data; + skb->ip_summed = CHECKSUM_UNNECESSARY; skb->protocol = htons(ETH_P_IEEE802154); rcu_read_lock(); -- 2.1.2