netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: jamal <hadi@cyberus.ca>
To: James Morris <jmorris@namei.org>
Cc: "David S. Miller" <davem@davemloft.net>,
	netdev@vger.kernel.org, herbert@gondor.apana.org.au
Subject: Re: [IPSEC]: searching  SAD without assumming L3 details
Date: Sat, 02 Sep 2006 13:16:53 -0400	[thread overview]
Message-ID: <1157217413.5077.17.camel@jzny2> (raw)
In-Reply-To: <Pine.LNX.4.64.0609021102570.4222@d.namei>

On Sat, 2006-02-09 at 11:04 -0400, James Morris wrote:
> On Sat, 2 Sep 2006, jamal wrote:

> +       
> +       spin_lock(&xfrm_state_lock);
> 
> Shouldn't this be spin_lock_bh()?
> 
> +       spin_unlock(&xfrm_state_lock);
> +

the call is made at the moment only by pktgen (kernel threads on
dev_queue_xmit level contending with softirqs essentially). I think
(although havent tried) the spin_{un}lock_bh() wont work. Thoughts?
Obviously the easy thing for me to do is change it and see what
happens;->

> +       if (rx)
> +               xfrm_state_hold(rx);
> 
> I think you need to grab the reference before letting go of the lock.
> 

I believe you are right. I will make the change, retest and repost.

> 
> Can you please include patches inline, or tell me how to get pine to 
> quote attachments? :-)

I could get evolution to inline attachments although last time i tried
it made Dave unhappy with not being to use git am or some such
reason ;-> I think some white spaces get added or some other mangling
happens.
I could try it on the repost.

Thanks for the comments James.

cheers,
jamal




-- 
VGER BF report: U 0.500005

  reply	other threads:[~2006-09-02 17:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-02 13:43 [IPSEC]: searching SAD without assumming L3 details jamal
2006-09-02 15:04 ` James Morris
2006-09-02 17:16   ` jamal [this message]
2006-09-02 18:11     ` jamal
2006-09-02 19:24     ` James Morris
2006-09-05 23:38 ` Herbert Xu
2006-09-06 11:20   ` jamal
2006-09-06 11:26     ` Herbert Xu
2006-09-06 12:14       ` jamal
2006-09-06 12:30         ` jamal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1157217413.5077.17.camel@jzny2 \
    --to=hadi@cyberus.ca \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=jmorris@namei.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).