[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20131023.161603.1190144528425577653.davem@davemloft.net>
Date: Wed, 23 Oct 2013 16:16:03 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: antonio@...hcoding.com
Cc: David.Laight@...LAB.COM, netdev@...r.kernel.org
Subject: Re: [PATCH net] netpoll: fix rx_hook() interface by passing the skb
From: Antonio Quartulli <antonio@...hcoding.com>
Date: Wed, 23 Oct 2013 14:44:01 +0200
> On Wed, Oct 23, 2013 at 12:18:32PM +0100, David Laight wrote:
>> > My idea is to use the following API:
>> >
>> > rx_skb_hook(struct netpoll *np, int source, struct sk_buff *skb, int len);
>> >
>> > Any suggestion or objection?
>>
>> Don't you need to pass the offset of the udp data?
>
> Yes, you are right. I just forgot it. Therefore we have:
>
> rx_skb_hook(struct netpoll *np, int source, struct sk_buff *skb, int offset,
> int len);
>
> where offset is going to be = (udp_hdr + 1) - skb->data
> and len = skb->len - offset
This looks good to me.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists