summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorSubbaraya Sundeep <sbhatta@marvell.com>2020-07-25 10:13:54 +0530
committerDavid S. Miller <davem@davemloft.net>2020-07-28 17:14:48 -0700
commited543f5c6a988d8a863d2436794230cef2c82389 (patch)
tree120b598b29da4609f533fedaba6d623a580dee66 /net
parentc0376f473c5cc2ef94f8e1e055d173293cc3698c (diff)
octeontx2-pf: Unregister netdev at driver remove
Added unregister_netdev in the driver remove function. Generally unregister_netdev is called after disabling all the device interrupts but here it is called before disabling device mailbox interrupts. The reason behind this is VF needs mailbox interrupt to communicate with its PF to clean up its resources during otx2_stop. otx2_stop disables packet I/O and queue interrupts first and by using mailbox interrupt communicates to PF to free VF resources. Hence this patch calls unregister_device just before disabling mailbox interrupts. Fixes: 3184fb5ba96e ("octeontx2-vf: Virtual function driver support") Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com> Signed-off-by: Sunil Goutham <sgoutham@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions