[RFC net-next v3 2/3] net: ethernet: mtk_eth_soc: Add RSS support
Andrew Lunn
andrew at lunn.ch
Sun Dec 14 08:43:12 PST 2025
> bpi-r4.its | 16 +-
I don't think this file belongs in this patch?
> +#define MTK_RX_RSS_NUM (eth->soc->rss_num)
> +#define MTK_RSS_HASH_KEY_DW(x) (reg_map->pdma.rss_glo_cfg + 0x20 + \
> + ((x) * 0x4))
> +#define MTK_RSS_INDR_TABLE_DW(x) (reg_map->pdma.rss_glo_cfg + 0x50 + \
> + ((x) * 0x4))
It is bad practice for a macro to access things not passed to it. At
minimum, pass eth & reg_map to the macro.
Andrew
---
pw-bot: cr
More information about the Linux-mediatek
mailing list