OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5de3fca
)
can: use correct NET_RX_ return values
author
Oliver Hartkopp
<oliver@hartkopp.net>
Sat, 29 Aug 2009 06:45:09 +0000
(06:45 +0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 31 Aug 2009 05:13:18 +0000
(22:13 -0700)
Dropped skb's should be documented by an appropriate return value.
Use the correct NET_RX_DROP and NET_RX_SUCCESS values for that reason.
Signed-off-by: Oliver Hartkopp <oliver@hartkopp.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/can/af_can.c
patch
|
blob
|
history
diff --git
a/net/can/af_can.c
b/net/can/af_can.c
index
f9c027b
..
ef1c43a
100644
(file)
--- a/
net/can/af_can.c
+++ b/
net/can/af_can.c
@@
-686,11
+686,11
@@
static int can_rcv(struct sk_buff *skb, struct net_device *dev,
can_stats.matches_delta++;
}
- return
0
;
+ return
NET_RX_SUCCESS
;
drop:
kfree_skb(skb);
- return
0
;
+ return
NET_RX_DROP
;
}
/*