On 7/1/19 8:12 AM, Willem de Bruijn wrote: > On Mon, Jul 1, 2019 at 6:05 AM Antoine Tenart > <antoine.ten...@bootlin.com> wrote: >> >> This patch adds support for PTP Hardware Clock (PHC) to the Ocelot >> switch for both PTP 1-step and 2-step modes. >> >> Signed-off-by: Antoine Tenart <antoine.ten...@bootlin.com> > >> void ocelot_deinit(struct ocelot *ocelot) >> { >> + struct ocelot_port *port; >> + struct ocelot_skb *entry; >> + struct list_head *pos; >> + int i; >> + >> destroy_workqueue(ocelot->stats_queue); >> mutex_destroy(&ocelot->stats_lock); >> ocelot_ace_deinit(); >> + >> + for (i = 0; i < ocelot->num_phys_ports; i++) { >> + port = ocelot->ports[i]; >> + >> + list_for_each(pos, &port->skbs) { >> + entry = list_entry(pos, struct ocelot_skb, head); >> + >> + list_del(pos); > > list_for_each_safe Also entry->skb seems to be leaked ? dev_kfree_skb_any(entry->skb) seems to be needed > >> + kfree(entry);
- [PATCH net-next 0/8] net: mscc: PTP Hardware Clock (PHC)... Antoine Tenart
- [PATCH net-next 5/8] net: mscc: describe the PTP re... Antoine Tenart
- [PATCH net-next 7/8] net: mscc: remove the frame_in... Antoine Tenart
- [PATCH net-next 4/8] MIPS: dts: mscc: describe the ... Antoine Tenart
- [PATCH net-next 8/8] net: mscc: PTP Hardware Clock ... Antoine Tenart
- Re: [PATCH net-next 8/8] net: mscc: PTP Hardwar... Willem de Bruijn
- Re: [PATCH net-next 8/8] net: mscc: PTP Har... Eric Dumazet
- Re: [PATCH net-next 8/8] net: mscc: PTP... Antoine Tenart
- Re: [PATCH net-next 8/8] net: mscc: PTP Har... Antoine Tenart
- Re: [PATCH net-next 8/8] net: mscc: PTP Hardwar... kbuild test robot
- Re: [PATCH net-next 8/8] net: mscc: PTP Hardwar... Richard Cochran
- Re: [PATCH net-next 8/8] net: mscc: PTP Har... Antoine Tenart
- Re: [PATCH net-next 8/8] net: mscc: PTP Hardwar... Richard Cochran
- [PATCH net-next 3/8] Documentation/bindings: net: o... Antoine Tenart
- [PATCH net-next 6/8] net: mscc: improve the frame h... Antoine Tenart
- [PATCH net-next 2/8] MIPS: dts: mscc: describe the ... Antoine Tenart