kernel-ark/net/core
Jeff Moyer fbeec2e155 [NETPOLL]: allow multiple netpoll_clients to register against one interface
This patch provides support for registering multiple netpoll clients to the
same network device.  Only one of these clients may register an rx_hook,
however.  In practice, this restriction has not been problematic.  It is
worth mentioning, though, that the current design can be easily extended to
allow for the registration of multiple rx_hooks.

The basic idea of the patch is that the rx_np pointer in the netpoll_info
structure points to the struct netpoll that has rx_hook filled in.  Aside
from this one case, there is no need for a pointer from the struct
net_device to an individual struct netpoll.

A lock is introduced to protect the setting and clearing of the np_rx
pointer.  The pointer will only be cleared upon netpoll client module
removal, and the lock should be uncontested.

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2005-06-22 22:05:59 -07:00
..
datagram.c
dev_mcast.c
dev.c [NET]: Fix sysctl net.core.dev_weight 2005-06-08 14:56:01 -07:00
dst.c
dv.c
ethtool.c [ETHTOOL]: Check correct pointer in ethtool_set_coalesce(). 2005-06-06 15:07:19 -07:00
filter.c
flow.c
gen_estimator.c
gen_stats.c
iovec.c
link_watch.c
Makefile [NET] Generalise tcp_listen_opt 2005-06-18 22:47:59 -07:00
neighbour.c [NETLINK]: Correctly set NLM_F_MULTI without checking the pid 2005-06-18 22:54:12 -07:00
net-sysfs.c [NET]: Allow controlling NAPI device weight with sysfs 2005-06-08 14:55:42 -07:00
netfilter.c [NETFILTER]: Kill nf_debug 2005-06-21 14:01:57 -07:00
netpoll.c [NETPOLL]: allow multiple netpoll_clients to register against one interface 2005-06-22 22:05:59 -07:00
pktgen.c
request_sock.c [NET]: Move sysctl_max_syn_backlog into request_sock.c 2005-06-18 22:49:40 -07:00
rtnetlink.c [NETLINK]: Set correct pid for ioctl originating netlink events 2005-06-18 22:55:51 -07:00
scm.c
skbuff.c [NETFILTER]: Kill nf_debug 2005-06-21 14:01:57 -07:00
sock.c [NET] Generalise TCP's struct open_request minisock infrastructure 2005-06-18 22:46:52 -07:00
stream.c
sysctl_net_core.c
utils.c
wireless.c [PATCH] Wireless Extensions 18 (aka WPA) 2005-05-12 20:24:19 -04:00