nfp: update port state in place
authorJakub Kicinski <jakub.kicinski@netronome.com>
Mon, 22 May 2017 17:59:29 +0000 (10:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
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 <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