On Fri, 19 Nov 2021 14:38:03 +0100 Simon Horman wrote:
From: Diana Wang <redacted>
Use nn->tlv_caps.me_freq_mhz instead of nn->me_freq_mhz to check whether
rx-usecs/tx-usecs is valid.
This is because nn->tlv_caps.me_freq_mhz represents the clock_freq (MHz) of
the flow processing cores (FPC) on the NIC. While nn->me_freq_mhz is not
be set.
Fixes: ce991ab6662a ("nfp: read ME frequency from vNIC ctrl memory")
Signed-off-by: Diana Wang <redacted>
Signed-off-by: Simon Horman <redacted>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>