Skip to content

Commit 642b212

Browse files
Healer019kuba-moo
authored andcommitted
nfp: fix the access to management firmware hanging
When running `ethtool -p` with the old management firmware, the management firmware resource is not correctly released, which causes firmware related malfunction: all the access to management firmware hangs. It releases the management firmware resource when set id mode operation is not supported. Fixes: ccb9bc1 ("nfp: add 'ethtool --identify' support") Signed-off-by: Gao Xiao <[email protected]> Reviewed-by: Louis Peens <[email protected]> Signed-off-by: Simon Horman <[email protected]> Reviewed-by: Jesse Brandeburg <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 613c869 commit 642b212

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,7 @@ int nfp_eth_set_idmode(struct nfp_cpp *cpp, unsigned int idx, bool state)
507507
if (nfp_nsp_get_abi_ver_minor(nsp) < 32) {
508508
nfp_err(nfp_nsp_cpp(nsp),
509509
"set id mode operation not supported, please update flash\n");
510+
nfp_eth_config_cleanup_end(nsp);
510511
return -EOPNOTSUPP;
511512
}
512513

0 commit comments

Comments
 (0)