netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: zyjzyj2000@gmail.com
To: e1000-devel@lists.sourceforge.net, netdev@vger.kernel.org
Subject: ixgbe: replace rtnl_lock with rcu_read_lock
Date: Sun,  5 Jun 2016 17:14:50 +0800	[thread overview]
Message-ID: <1465118091-6233-1-git-send-email-zyjzyj2000@gmail.com> (raw)


Hi,all

 I am using the ixgbe nic. I found that the rtnl_lock is being 
 used to enable upper device, such as macvlan. I am curious
 why rcu_read_lock is not used here.

 I replaced rtnl_lock with rcu_read_lock here. Then I made tests and
 it can work well.

 So can the rtnl_lock be replaced with rcu_read_lock?
 Anyone can explain it in details?

 Any reply is appreciated.
 Zhu Yanjun

             reply	other threads:[~2016-06-05  9:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-05  9:14 zyjzyj2000 [this message]
2016-06-05  9:14 ` [PATCH 1/1] ixgbe: replace rtnl_lock with rcu_read_lock zyjzyj2000
2016-06-05 11:14   ` Eric Dumazet
2016-06-05 18:40   ` Alexander Duyck
2016-06-06 13:37     ` zhuyj
2016-06-06 16:12       ` Alexander Duyck
2016-06-07  6:30         ` zhuyj
2016-06-07 15:31           ` Alexander Duyck

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=1465118091-6233-1-git-send-email-zyjzyj2000@gmail.com \
    --to=zyjzyj2000@gmail.com \
    --cc=e1000-devel@lists.sourceforge.net \
    --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).