Hi Stephen, Why have two labels for same place, to later patches insert code here? For this question the new code in rnp_init_port_resource Will zmalloc dev->data->mac_addrs and dev->data->hash_mac_addrs So I wish to free the zmalloc mem when init port resource failed
Regards wenbo -----Original Message----- From: Stephen Hemminger <step...@networkplumber.org> Sent: 2023年8月1日 23:21 To: Wenbo Cao <caowe...@mucse.com> Cc: Anatoly Burakov <anatoly.bura...@intel.com>; dev@dpdk.org Subject: Re: [[PATCH v1] 3/8] net/rnp: add device init and uninit On Tue, 1 Aug 2023 06:43:41 +0000 Wenbo Cao <caowe...@mucse.com> wrote: > + return 0; > +eth_alloc_error: > +init_failed: Why have two labels for same place, to later patches insert code here?