OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2dc3f5
)
can: rx-offload: can_rx_offload_offload_one(): increment rx_fifo_errors on queue...
author
Marc Kleine-Budde
<mkl@pengutronix.de>
Wed, 9 Oct 2019 13:15:07 +0000
(15:15 +0200)
committer
Marc Kleine-Budde
<mkl@pengutronix.de>
Mon, 4 Nov 2019 20:47:21 +0000
(21:47 +0100)
If the rx-offload skb_queue is full or the skb allocation fails (due to OOM),
the mailbox contents is discarded.
This patch adds the incrementing of the rx_fifo_errors statistics counter.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/rx-offload.c
patch
|
blob
|
history
diff --git
a/drivers/net/can/rx-offload.c
b/drivers/net/can/rx-offload.c
index
bdc2748
..
e224530
100644
(file)
--- a/
drivers/net/can/rx-offload.c
+++ b/
drivers/net/can/rx-offload.c
@@
-125,8
+125,10
@@
static struct sk_buff *can_rx_offload_offload_one(struct can_rx_offload *offload
ret = offload->mailbox_read(offload, &cf_overflow,
×tamp, n);
- if (ret)
+ if (ret)
{
offload->dev->stats.rx_dropped++;
+ offload->dev->stats.rx_fifo_errors++;
+ }
return NULL;
}