nfp: update port state in place
authorJakub Kicinski <[email protected]>
Mon, 22 May 2017 17:59:29 +0000 (10:59 -0700)
committerDavid S. Miller <[email protected]>
Mon, 22 May 2017 18:59:04 +0000 (14:59 -0400)
commit3d4ed1e70185936ea7cfeec18dd25963c2908871
treef13c44c499a4c164e1b7fe96c7ce0afa379ecb67
parenteb488c26d713b2a9ebba6c12bbefd04e01197693
nfp: update port state in place

Always updating port state in place by overriding values in exiting
pf->eth_tbl makes things easier to manage and allows us to have a
common helper for both full and per-port refresh.

Signed-off-by: Jakub Kicinski <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/netronome/nfp/nfp_net_main.c