[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140114105102.GK31491@secunet.com>
Date: Tue, 14 Jan 2014 11:51:02 +0100
From: Steffen Klassert <steffen.klassert@...unet.com>
To: Fan Du <fan.du@...driver.com>
Cc: davem@...emloft.net, netdev@...r.kernel.org
Subject: Re: [PATCHv3 net-next 2/5] {IPv4,xfrm} Add ESN support for AH
ingress part
On Tue, Jan 14, 2014 at 06:41:15PM +0800, Fan Du wrote:
>
>
> On 2014年01月14日 18:34, Steffen Klassert wrote:
> >On Tue, Jan 14, 2014 at 06:17:26PM +0800, Fan Du wrote:
> >>On 2014年01月14日 18:09, Steffen Klassert wrote:
> >
> >No, I mean something like:
> >
> >sg_init_table(sg, nfrags + sglists)
> >
> >if (x->props.flags& XFRM_STATE_ESN) {
> > *seqhi = XFRM_SKB_CB(skb)->seq.input.hi;
> > sg_set_buf(sg + nfrags, seqhi, seqhi_len);
> >}
> >
>
> hehe, it's the same as the option this patch used.
No, you don't need to sg_unmark_end() before you can add
your entry and it is more obvious what happens here.
Also, I'm not absolutely sure whether the sg magic allows
what you did. Did you test with sg debugging enabled?
> Anyway, I will make it as you suggested in the next round review.
>
Thanks!
--
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