Re: [net 1/2] net: ethtool: Unify ETHTOOL_{G,S}RXFH rxnfc copy

From: Edward Cree
Date: Mon Jul 24 2023 - 15:28:00 EST


On 23/07/2023 16:06, Joe Damato wrote:
> ETHTOOL_GRXFH correctly copies in the full struct ethtool_rxnfc when
> FLOW_RSS is set; ETHTOOL_SRXFH needs a similar code path to handle the
> FLOW_RSS case so that ethtool can set the flow hash for custom RSS
> contexts (if supported by the driver).
>
> The copy code from ETHTOOL_GRXFH has been pulled out in to a helper so
> that it can be called in both ETHTOOL_{G,S}RXFH code paths.
>
> Fixes: 84a1d9c48200 ("net: ethtool: extend RXNFC API to support RSS spreading of filter matches")
> Signed-off-by: Joe Damato <jdamato@xxxxxxxxxx>

Acked-by: Edward Cree <ecree.xilinx@xxxxxxxxx>