[PATCH RFC net-next 2/7] net: dsa: add a QCA four-byte CPU tagger

Andrew Lunn andrew at lunn.ch
Wed Nov 25 13:15:44 PST 2026


>  #define dsa_lags_foreach_id(_id, _dst)				\
>  	for ((_id) = 1; (_id) <= (_dst)->lags_len; (_id)++)	\
>  		if ((_dst)->lags[(_id) - 1])
> -
>  #define dsa_lag_foreach_port(_dp, _dst, _lag)			\
>  	list_for_each_entry((_dp), &(_dst)->ports, list)	\
>  		if (dsa_port_offloads_lag((_dp), (_lag)))
> -
>  #define dsa_hsr_foreach_port(_dp, _ds, _hsr)			\
>  	list_for_each_entry((_dp), &(_ds)->dst->ports, list)	\
>  		if ((_dp)->ds == (_ds) && (_dp)->hsr_dev == (_hsr))
> -
>  static inline struct dsa_lag *dsa_lag_by_id(struct dsa_switch_tree *dst,
>  					    unsigned int id)

Did you review your own patches?

	Andrew



More information about the linux-arm-kernel mailing list