Re: [net 0/2] rxfh with custom RSS fixes

From: Edward Cree
Date: Tue Jul 25 2023 - 04:41:27 EST


On 24/07/2023 23:08, Jakub Kicinski wrote:
> What's the status on your work? Are you planning to split the RSS
> config from ethtool or am I reading too much into what you said?

I was just thinking that when netlink dumps get added it would make
sense to also extend the netlink version of SRSSH (which is what
calls the rxfh_context ethtool_ops, via the misleadingly named
ethtool_set_rxfh()) to include the hash fields setting that's
currently done through ETHTOOL_SRXFH. In which case I should add
that data to struct ethtool_rxfh_context, and include it in the
get/create/modify_rss_context ethtool_ops API.
Since it only occurred to me to consider that setting when I saw
Joe's patches, I haven't really figured out yet how to go about
the implementation of that.

More generally the status of my RSS work is that I've been umming
and ahhing about that mutex you didn't like (I still think it's
the Right Thing) so I've not made much progress with it.
And I should place on record that probably once I've gotten the
kernel-driver API done I'll leave the netlink/uAPI stuff for
someone else to do as I really don't have the relevant expertise.

> It'd be great to push the uAPI extensions back and make them
> netlink-only, but we can't make Joe wait if it takes a long time
> to finish up the basic conversion :(

Yeah as I said upthread I don't think we should make Joe wait, if
he's got a use case that actually needs it (have you, Joe? Or
is it only GRXFH you need and the investigation just led you to
notice SRXFH was broken?)

-ed