Skip to content

Commit

Permalink
close vmbus subchannels before unmapping vmbus device
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelandrew committed Sep 8, 2023
1 parent b590c76 commit 96c5772
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/net/netvsc/hn_ethdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1130,8 +1130,9 @@ hn_dev_mtu_set(struct rte_eth_dev *dev, uint16_t mtu)
/* Release channel resources */
hn_detach(hv);

/* Close primary channel */
rte_vmbus_chan_close(hv->channels[0]);
/* Close vmbus channels */
for (i = 0; i < hv->num_queues; i++)
rte_vmbus_chan_close(hv->channels[i]);

/* Unmap and re-map vmbus device */
rte_vmbus_unmap_device(hv->vmbus);
Expand Down

0 comments on commit 96c5772

Please sign in to comment.