linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [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
@ 2022-05-16  2:34 bugzilla-daemon
  2022-05-16  2:45 ` [Bug 215982] " bugzilla-daemon
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla-daemon @ 2022-05-16  2:34 UTC (permalink / raw)
  To: linux-rdma

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [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
  2022-05-16  2:34 [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 bugzilla-daemon
@ 2022-05-16  2:45 ` bugzilla-daemon
  0 siblings, 0 replies; 2+ messages in thread
From: bugzilla-daemon @ 2022-05-16  2:45 UTC (permalink / raw)
  To: linux-rdma

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

3null (yuanyangliu258@gmail.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |linux-rdma@vger.kernel.org

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

You are receiving this mail because:
You are on the CC list for the bug.
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-16  2:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-16  2:34 [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 bugzilla-daemon
2022-05-16  2:45 ` [Bug 215982] " bugzilla-daemon

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).