nfp: mark port state as stale if update failed
authorJakub Kicinski <jakub.kicinski@netronome.com>
Mon, 22 May 2017 17:59:33 +0000 (10:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 May 2017 18:59:06 +0000 (14:59 -0400)
commit46b250311dac828bcb79f0807c16d4157059ce7e
tree63227ba2f88d763f3820f13b3e8e9c8e0e687b63
parent1f60a5815bade268696d57452dfbfcbf0c655a23
nfp: mark port state as stale if update failed

If reading new state of the port failed, mark the port back as CHANGED.
This way next user state request will trigger refresh, which will
hopefully succeed.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_main.c