Skip to content

Commit

Permalink
mac802154: rx: add CHECKSUM_UNNECESSARY
Browse files Browse the repository at this point in the history
This patch adds CHECKSUM_UNNECESSARY to skb->ip_summed before delivery.
There exist no transceiver with IP checksum functionality.

Signed-off-by: Alexander Aring <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
  • Loading branch information
alexaring authored and holtmann committed Oct 27, 2014
1 parent 702dcf9 commit 75a46f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/mac802154/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 75a46f0

Please sign in to comment.