netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Yevhen Orlov <yevhen.orlov@plvision.eu>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: netdev@vger.kernel.org,
	Volodymyr Mytnyk <volodymyr.mytnyk@plvision.eu>,
	Taras Chornyi <taras.chornyi@plvision.eu>,
	Mickey Rachamim <mickeyr@marvell.com>,
	Serhiy Pshyk <serhiy.pshyk@plvision.eu>,
	Taras Chornyi <tchornyi@marvell.com>,
	Oleksandr Mazur <oleksandr.mazur@plvision.eu>,
	"David S. Miller" <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next 6/6] net: marvell: prestera: Implement initial inetaddr notifiers
Date: Tue, 21 Dec 2021 06:32:05 +0200	[thread overview]
Message-ID: <YcFYxW2aeTnVVapz@yorlov.ow.s> (raw)
In-Reply-To: <20211217130325.305961eb@hermes.local>

On Fri, Dec 17, 2021 at 01:03:25PM -0800, Stephen Hemminger wrote:
> How are these device references cleaned up on module removal?

Removing the module removes the port, and clears all addresses:

    __prestera_inetaddr_event.part.0+0x190/0x3b0 [prestera]
    __prestera_inetaddr_cb+0x94/0xb0 [prestera]
    blocking_notifier_call_chain+0x98/0xd0
    __inet_del_ifa+0x2e4/0x4e0
    inetdev_event+0x260/0xa20
    raw_notifier_call_chain+0x74/0xa0
    call_netdevice_notifiers_info+0x68/0xc0
    unregister_netdevice_many+0x4f4/0xa20
    unregister_netdevice_queue+0x13c/0x180
    unregister_netdev+0x24/0x40
    prestera_port_destroy+0x44/0xe0 [prestera]
    prestera_device_unregister+0x6c/0x110 [prestera]
    prestera_pci_remove+0x28/0x80 [prestera_pci]
    pci_device_remove+0x68/0x130
    __device_release_driver+0x228/0x320
    driver_detach+0x12c/0x1c0
    bus_remove_driver+0x88/0x120
    driver_unregister+0x44/0x80
    pci_unregister_driver+0x2c/0xe0
    prestera_pci_driver_exit+0x18/0x30 [prestera_pci]
    __arm64_sys_delete_module+0x20c/0x310
    invoke_syscall+0x60/0x190


  reply	other threads:[~2021-12-21  4:32 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-17 19:54 [PATCH net-next 0/6] prestera: add basic router driver support Yevhen Orlov
2021-12-17 19:54 ` [PATCH net-next 1/6] net: marvell: prestera: add virtual router ABI Yevhen Orlov
2021-12-17 19:54 ` [PATCH net-next 2/6] net: marvell: prestera: Add router interface ABI Yevhen Orlov
2021-12-17 19:54 ` [PATCH net-next 3/6] net: marvell: prestera: Add prestera router infra Yevhen Orlov
2021-12-17 19:54 ` [PATCH net-next 4/6] net: marvell: prestera: add hardware router objects accounting Yevhen Orlov
2021-12-17 19:54 ` [PATCH net-next 5/6] net: marvell: prestera: Register inetaddr stub notifiers Yevhen Orlov
2021-12-17 21:02   ` Stephen Hemminger
2021-12-21 16:07     ` Yevhen Orlov
2021-12-17 19:54 ` [PATCH net-next 6/6] net: marvell: prestera: Implement initial inetaddr notifiers Yevhen Orlov
2021-12-17 21:03   ` Stephen Hemminger
2021-12-21  4:32     ` Yevhen Orlov [this message]
2021-12-17 21:03   ` Stephen Hemminger
2021-12-18 16:52 ` [PATCH net-next 0/6] prestera: add basic router driver support Andrew Lunn
2021-12-21  4:28   ` Yevhen Orlov

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=YcFYxW2aeTnVVapz@yorlov.ow.s \
    --to=yevhen.orlov@plvision.eu \
    --cc=davem@davemloft.net \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mickeyr@marvell.com \
    --cc=netdev@vger.kernel.org \
    --cc=oleksandr.mazur@plvision.eu \
    --cc=serhiy.pshyk@plvision.eu \
    --cc=stephen@networkplumber.org \
    --cc=taras.chornyi@plvision.eu \
    --cc=tchornyi@marvell.com \
    --cc=volodymyr.mytnyk@plvision.eu \
    /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).