[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20131022063714.GI1544@neomailbox.net>
Date: Tue, 22 Oct 2013 08:37:14 +0200
From: Antonio Quartulli <antonio@...hcoding.com>
To: David Miller <davem@...emloft.net>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH net] netpoll: linearize skb before accessing its data
On Tue, Oct 22, 2013 at 02:25:25AM -0400, David Miller wrote:
> From: Antonio Quartulli <antonio@...hcoding.com>
> Date: Tue, 22 Oct 2013 08:06:35 +0200
>
> > But rx_hook() does not receive any skb:
> >
> > 609 np->rx_hook(np, ntohs(uh->source),
> > 610 (char *)(uh+1),
> > 611 ulen - sizeof(struct udphdr));
> >
> > it just receives a pointer to the data and can't do anything to make it linear.
> > (uh is a pointer to the udp header). Am I missing something?
>
> Then this hook's API needs to be fixed, it's completely broken.
>
> Make it pass the SKB and the appropriate offset (from skb->data) in
> bytes.
>
Ok I will do that. But I think this API change must go into net-next, right?
Otherwise we would break every existing user.
What about resending this patch to net (after having removed the pskb_may_pull()
as pointed out by Eric) and then fixing the API in net-next?
--
Antonio Quartulli
Download attachment "signature.asc" of type "application/pgp-signature" (837 bytes)
Powered by blists - more mailing lists