Re: [PATCH v3 net-next 09/21] nvme-tcp: Deal with netdevice DOWN events

2021-02-04 Thread Or Gerlitz
On Wed, Feb 3, 2021 at 11:17 AM Sagi Grimberg wrote: > > @@ -2930,6 +2931,27 @@ static struct nvme_ctrl *nvme_tcp_create_ctrl(struct > > device *dev, > > return ERR_PTR(ret); > > } > > > > +static int nvme_tcp_netdev_event(struct notifier_block *this, > > + un

Re: [PATCH v3 net-next 09/21] nvme-tcp: Deal with netdevice DOWN events

2021-02-03 Thread Sagi Grimberg
@@ -2930,6 +2931,27 @@ static struct nvme_ctrl *nvme_tcp_create_ctrl(struct device *dev, return ERR_PTR(ret); } +static int nvme_tcp_netdev_event(struct notifier_block *this, +unsigned long event, void *ptr) +{ + struct net_device *ndev = net

[PATCH v3 net-next 09/21] nvme-tcp: Deal with netdevice DOWN events

2021-02-01 Thread Boris Pismenny
From: Or Gerlitz For ddp setup/teardown and resync, the offloading logic uses HW resources at the NIC driver such as SQ and CQ. These resources are destroyed when the netdevice does down and hence we must stop using them before the NIC driver destroys them. Use netdevice notifier for that matte