DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] When .remove function (of struct rte_vdev_driver) is called
@ 2020-06-21 13:17 Muhammad Bilal
  2020-06-21 18:11 ` Stephen Hemminger
  0 siblings, 1 reply; 3+ messages in thread
From: Muhammad Bilal @ 2020-06-21 13:17 UTC (permalink / raw)
  To: dev

While working on applications(l2fwd, testpmd) with PMD(memif, Tun|Tap
and some other) I have noticed that the .probe function of
rte_vdev_driver structure is called in rte_eal_init() and .remove
function of rte_vdev_driver structure is NEVER called, even after
exiting the application.

My Question is How/When .remove function of rte_vdev_driver structure is called.

Thanks,
M. Bilal

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

* Re: [dpdk-dev] When .remove function (of struct rte_vdev_driver) is called
  2020-06-21 13:17 [dpdk-dev] When .remove function (of struct rte_vdev_driver) is called Muhammad Bilal
@ 2020-06-21 18:11 ` Stephen Hemminger
  2020-06-21 18:32   ` Muhammad Bilal
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Hemminger @ 2020-06-21 18:11 UTC (permalink / raw)
  To: Muhammad Bilal; +Cc: dev

On Sun, 21 Jun 2020 18:17:09 +0500
Muhammad Bilal <m.bilal@emumba.com> wrote:

> While working on applications(l2fwd, testpmd) with PMD(memif, Tun|Tap
> and some other) I have noticed that the .probe function of
> rte_vdev_driver structure is called in rte_eal_init() and .remove
> function of rte_vdev_driver structure is NEVER called, even after
> exiting the application.
> 
> My Question is How/When .remove function of rte_vdev_driver structure is called.
> 
> Thanks,
> M. Bilal

Does application call rte_eal_cleanup on exit?

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

* Re: [dpdk-dev] When .remove function (of struct rte_vdev_driver) is called
  2020-06-21 18:11 ` Stephen Hemminger
@ 2020-06-21 18:32   ` Muhammad Bilal
  0 siblings, 0 replies; 3+ messages in thread
From: Muhammad Bilal @ 2020-06-21 18:32 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: dev

Yes, I have used the rte_eal_cleanup() function when application
exits. And still it does not call the .remove function of
rte_vdev_driver structure, used in PMD.

On Sun, Jun 21, 2020 at 11:11 PM Stephen Hemminger
<stephen@networkplumber.org> wrote:
>
> On Sun, 21 Jun 2020 18:17:09 +0500
> Muhammad Bilal <m.bilal@emumba.com> wrote:
>
> > While working on applications(l2fwd, testpmd) with PMD(memif, Tun|Tap
> > and some other) I have noticed that the .probe function of
> > rte_vdev_driver structure is called in rte_eal_init() and .remove
> > function of rte_vdev_driver structure is NEVER called, even after
> > exiting the application.
> >
> > My Question is How/When .remove function of rte_vdev_driver structure is called.
> >
> > Thanks,
> > M. Bilal
>
> Does application call rte_eal_cleanup on exit?

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

end of thread, other threads:[~2020-06-21 18:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-21 13:17 [dpdk-dev] When .remove function (of struct rte_vdev_driver) is called Muhammad Bilal
2020-06-21 18:11 ` Stephen Hemminger
2020-06-21 18:32   ` Muhammad Bilal

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