linux/net/core
Herbert Xu 352e512c32 [NET]: Eliminate duplicate copies of dst_discard
We have a number of copies of dst_discard scattered around the place
which all do the same thing, namely free a packet on the input or
output paths.

This patch deletes all of them except dst_discard and points all the
users to it.

The only non-trivial bit is decnet where it returns an error.
However, conceptually this is identical to the blackhole functions
used in IPv4 and IPv6 which do not return errors.  So they should
either all return errors or all return zero.  For now I've stuck with
the majority and picked zero as the return value.

It doesn't really matter in practice since few if any driver would
react differently depending on a zero return value or NET_RX_DROP.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-01-28 14:53:37 -08:00
..
Makefile
datagram.c
dev.c
dev_mcast.c
dst.c [NET]: Eliminate duplicate copies of dst_discard 2008-01-28 14:53:37 -08:00
ethtool.c
fib_rules.c
filter.c
flow.c [NET]: Convert init_timer into setup_timer 2008-01-28 14:53:35 -08:00
gen_estimator.c
gen_stats.c
iovec.c
kmap_skb.h
link_watch.c
neighbour.c [NET]: Convert init_timer into setup_timer 2008-01-28 14:53:35 -08:00
net-sysfs.c
net-sysfs.h
net_namespace.c [NETNS]: Re-export init_net via EXPORT_SYMBOL. 2008-01-23 03:11:42 -08:00
netevent.c
netpoll.c
pktgen.c
request_sock.c
rtnetlink.c [NET]: rtnl_link: fix use-after-free 2008-01-20 20:31:45 -08:00
scm.c
skbuff.c [TCP]: Splice receive support. 2008-01-28 14:53:31 -08:00
sock.c [IPV4]: Add raw drops counter. 2008-01-28 14:53:33 -08:00
stream.c
sysctl_net_core.c
user_dma.c
utils.c