From: Alexander Aring Date: Wed, 29 Oct 2014 20:34:40 +0000 (+0100) Subject: mac802154: rx: add rx stats incrementation X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=18460672e0651705ca557c94a369003553c3f9d6;p=linux-beck.git mac802154: rx: add rx stats incrementation This patch adds rx stats incrementation when the monitor interface recevied a frame. Signed-off-by: Alexander Aring Signed-off-by: Marcel Holtmann --- diff --git a/net/mac802154/rx.c b/net/mac802154/rx.c index 7669cdbba526..6ba2769f5fb4 100644 --- a/net/mac802154/rx.c +++ b/net/mac802154/rx.c @@ -241,6 +241,9 @@ ieee802154_monitors_rx(struct ieee802154_local *local, struct sk_buff *skb) skb2->dev = sdata->dev; ieee802154_deliver_skb(skb2); + + sdata->dev->stats.rx_packets++; + sdata->dev->stats.rx_bytes += skb->len; } }