mbox series

[0/2] free port private data in dev_close callback

Message ID 20210119115616.1807-1-heinrich.kuhn@netronome.com (mailing list archive)
Headers
Series free port private data in dev_close callback |

Message

Heinrich Kuhn Jan. 19, 2021, 11:56 a.m. UTC
  The first patch in this series prepares the NFP PMD for the new expected
behavior of the .dev_close() callback function, most recently described
in commit fbd191356148 ("ethdev: remove old close behaviour"). Patch one
makes the needed infrastructure changes to make this possible.

The second patch in the series makes the changes in nfp_net_close to
free the private data of a given port. PF resources are only freed once
all other ports under the PF has also been cleaned up.

Heinrich Kuhn (2):
  net/nfp: create a separate entity for a NFP PF device
  net/nfp: free port private data in dev close callback

 drivers/net/nfp/nfp_net.c     | 604 ++++++++++++++++++----------------
 drivers/net/nfp/nfp_net_pmd.h |  67 +++-
 2 files changed, 390 insertions(+), 281 deletions(-)
  

Comments

Ferruh Yigit Jan. 27, 2021, 10:45 p.m. UTC | #1
On 1/19/2021 11:56 AM, Heinrich Kuhn wrote:
> The first patch in this series prepares the NFP PMD for the new expected
> behavior of the .dev_close() callback function, most recently described
> in commit fbd191356148 ("ethdev: remove old close behaviour"). Patch one
> makes the needed infrastructure changes to make this possible.
> 
> The second patch in the series makes the changes in nfp_net_close to
> free the private data of a given port. PF resources are only freed once
> all other ports under the PF has also been cleaned up.
> 
> Heinrich Kuhn (2):
>    net/nfp: create a separate entity for a NFP PF device
>    net/nfp: free port private data in dev close callback
> 

Thanks for the update.

Series applied to dpdk-next-net/main, thanks.