netpoll: fix rx_hook() interface by passing the skb
authorAntonio Quartulli <antonio@meshcoding.com>
Wed, 23 Oct 2013 21:36:30 +0000 (23:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Oct 2013 23:26:58 +0000 (19:26 -0400)
commit8fb479a47c869820966e7298f38038aa334d889c
tree8bed2e3774b7334973aea14ed06f7156cde2fb87
parentc7c6effdeffcafd792b9f880ad52e48689eea4ad
netpoll: fix rx_hook() interface by passing the skb

Right now skb->data is passed to rx_hook() even if the skb
has not been linearised and without giving rx_hook() a way
to linearise it.

Change the rx_hook() interface and make it accept the skb
and the offset to the UDP payload as arguments. rx_hook() is
also renamed to rx_skb_hook() to ensure that out of the tree
users notice the API change.

In this way any rx_skb_hook() implementation can perform all
the needed operations to properly (and safely) access the
skb data.

Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netpoll.h
net/core/netpoll.c