On 4/17/2019 7:31 PM, Andrew Lunn wrote: > Rather than keep a list to map a tagger ops to a name, place the name > into the ops structure. This removes the hard coded list, a stop > towards making the taggers more dynamic. > > Signed-off-by: Andrew Lunn <and...@lunn.ch> > --- [snip] > diff --git a/include/net/dsa.h b/include/net/dsa.h > index 0cfc2f828b87..9bcbbde0f61d 100644 > --- a/include/net/dsa.h > +++ b/include/net/dsa.h > @@ -50,6 +50,7 @@ struct packet_type; > struct dsa_switch; > > struct dsa_device_ops { > + const char *name; Nit: I would place this after the xmit and rcv function pointers since we do not control how big the name is and it could theoretically push us one cache line down... With that: Reviewed-by: Florian Fainelli <f.faine...@gmail.com> -- Florian
- Re: [PATCH net-next 08/15] dsa: Keep link list of ta... Sergei Shtylyov
- Re: [PATCH net-next 08/15] dsa: Keep link list o... Andrew Lunn
- Re: [PATCH net-next 08/15] dsa: Keep link li... Sergei Shtylyov
- [PATCH net-next 14/15] dsa: Allow tag drivers to be built... Andrew Lunn
- Re: [PATCH net-next 14/15] dsa: Allow tag drivers to... Florian Fainelli
- [PATCH net-next 09/15] dsa: Register the none tagger ops Andrew Lunn
- Re: [PATCH net-next 09/15] dsa: Register the none ta... Florian Fainelli
- [PATCH net-next 05/15] dsa: Add TAG protocol to tag ops Andrew Lunn
- Re: [PATCH net-next 05/15] dsa: Add TAG protocol to ... Florian Fainelli
- [PATCH net-next 02/15] dsa: Move tagger name into its ops... Andrew Lunn
- Re: [PATCH net-next 02/15] dsa: Move tagger name int... Florian Fainelli
- [PATCH net-next 13/15] dsa: Cleanup unneeded table and ma... Andrew Lunn
- Re: [PATCH net-next 13/15] dsa: Cleanup unneeded tab... Florian Fainelli
- [PATCH net-next 15/15] dsa: tag_brcm: Avoid unused symbol... Andrew Lunn
- Re: [PATCH net-next 15/15] dsa: tag_brcm: Avoid unus... Florian Fainelli
- [PATCH net-next 01/15] dsa: Add SPDX header to tag driver... Andrew Lunn
- Re: [PATCH net-next 01/15] dsa: Add SPDX header to t... Florian Fainelli
- [PATCH net-next 03/15] dsa: Add MODULE_ALIAS to taggers i... Andrew Lunn
- Re: [PATCH net-next 03/15] dsa: Add MODULE_ALIAS to ... Florian Fainelli
- [PATCH net-next 11/15] dsa: Add stub tag driver put metho... Andrew Lunn
- Re: [PATCH net-next 11/15] dsa: Add stub tag driver ... Florian Fainelli