]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: checking parameter process for rx-usecs/tx-usecs is invalid
authorDiana Wang <na.wang@corigine.com>
Fri, 19 Nov 2021 13:38:03 +0000 (14:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Nov 2021 12:44:45 +0000 (12:44 +0000)
commit4879bb1181a010ca9c9cf62faf71a420d925e155
tree00a545a42ef48baaadcc8a43110b2fb88562a68a
parent21a4262050afe40306f088cf87731ee852458799
nfp: checking parameter process for rx-usecs/tx-usecs is invalid

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: 6492e9714d70 ("nfp: read ME frequency from vNIC ctrl memory")
Signed-off-by: Diana Wang <na.wang@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net.h
drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c