Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
From: bugzilla-daemon@kernel.org
To: linux-rdma@vger.kernel.org
Subject: [Bug 215982] New: ifdown vlan port which have nvmf target listener on it, kernel print "unregister_netdevice: waiting for enp5s0f0.55 to become free. Usage count = 1" repeatedly
Date: Mon, 16 May 2022 02:34:25 +0000	[thread overview]
Message-ID: <bug-215982-11804@https.bugzilla.kernel.org/> (raw)

https://bugzilla.kernel.org/show_bug.cgi?id=215982

            Bug ID: 215982
           Summary: ifdown vlan port which have nvmf target listener on
                    it, kernel print "unregister_netdevice: waiting for
                    enp5s0f0.55 to become free. Usage count = 1"
                    repeatedly
           Product: Drivers
           Version: 2.5
    Kernel Version: 4.19.0-4.19.241
          Hardware: Intel
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: high
          Priority: P1
         Component: Infiniband/RDMA
          Assignee: drivers_infiniband-rdma@kernel-bugs.osdl.org
          Reporter: yuanyangliu258@gmail.com
        Regression: No

Created attachment 300965
  --> https://bugzilla.kernel.org/attachment.cgi?id=300965&action=edit
Operation and messages

Enable a nvmf target listener on a VLAN port, and ifdown the VLAN port, kernel
will print "kernel:unregister_netdevice: waiting for enp5s0f0.55 to become
free. Usage count = 1" repeatedly

Operation as follows:
1. insmod

        modprobe 8021q;  modprobe qed;  modprobe qede;  modprobe qedr; 
modprobe nvmet-rdma

2. create a vlan port based on network-scripts; ifup enp5s0f0.55

        [root@redhat-10 network-scripts]# cat ifcfg-enp5s0f0.55
        BOOTPROTO=none
        IPV4_FAILURE_FATAL=no
        NAME=enp5s0f0.55
        DEVICE=enp5s0f0.55
        ONBOOT=no
        MTU=9000
        VLAN=yes
        IPADDR=192.168.55.250
        NETMASK=255.255.255.0
        VLAN_EGRESS_PRIORITY_MAP="0:3,1:3,2:3,3:3,4:3,5:3,6:3,7:3"

3. add a nvmf target listenner on the vlan port

        mkdir /sys/kernel/config/nvmet/ports/100
        cd /sys/kernel/config/nvmet/ports/100

        echo -n "192.168.55.250" > addr_traddr
        echo rdma > addr_trtype
        echo -n 4420 > addr_trsvcid
        echo ipv4 > addr_adrfam

        mkdir /sys/kernel/config/nvmet/subsystems/abc.nqn
        cd /sys/kernel/config/nvmet/subsystems/abc.nqn
        echo 1 > attr_allow_any_host

        ln -s /sys/kernel/config/nvmet/subsystems/abc.nqn 
/sys/kernel/config/nvmet/ports/100/subsystems/abc.nqn

4. ifdown the vlan port

        ifdown enp5s0f0.55

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

             reply	other threads:[~2022-05-16  2:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-16  2:34 bugzilla-daemon [this message]
2022-05-16  2:45 ` [Bug 215982] ifdown vlan port which have nvmf target listener on it, kernel print "unregister_netdevice: waiting for enp5s0f0.55 to become free. Usage count = 1" repeatedly bugzilla-daemon

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=bug-215982-11804@https.bugzilla.kernel.org/ \
    --to=bugzilla-daemon@kernel.org \
    --cc=linux-rdma@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