[NETPOLL]: Introduce a netpoll_info struct
authorJeff Moyer <jmoyer@redhat.com>
Thu, 23 Jun 2005 05:05:31 +0000 (22:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Jun 2005 05:05:31 +0000 (22:05 -0700)
commit115c1d6e61b70851d9a363328c3b8d4c2559a1d3
tree3bc37b036fd3ef72d188ff73da94472b40c05a44
parent6ca4f65e6b390d09e1de7280cf9fd4f5d8e4b48b
[NETPOLL]: Introduce a netpoll_info struct

This patch introduces a netpoll_info structure, which the struct net_device
will now point to instead of pointing to a struct netpoll.  The reason for
this is two-fold: 1) fields such as the rx_flags, poll_owner, and poll_lock
should be maintained per net_device, not per netpoll;  and 2) this is a first
step in providing support for multiple netpoll clients to register against the
same net_device.

The struct netpoll is now pointed to by the netpoll_info structure.  As
such, the previous behaviour of the code is preserved.

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
include/linux/netpoll.h
net/core/netpoll.c