summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.h
diff options
context:
space:
mode:
authorJakub Kicinski2017-04-05 01:12:23 +0200
committerDavid S. Miller2017-04-05 19:49:12 +0200
commitb9de00770db50ce11f64cd7676dbcaf295a1926f (patch)
tree573f71ac63a079038b6f9222f1638437d9df7719 /drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.h
parentnfp: add support for .get_link_ksettings() (diff)
downloadkernel-qcow2-linux-b9de00770db50ce11f64cd7676dbcaf295a1926f.tar.gz
kernel-qcow2-linux-b9de00770db50ce11f64cd7676dbcaf295a1926f.tar.xz
kernel-qcow2-linux-b9de00770db50ce11f64cd7676dbcaf295a1926f.zip
nfp: don't spawn netdevs for reconfigured ports
After port reconfiguration (port split, media type change) firmware will continue to report old configuration until reboot. NSP will inform us that reconfiguration is pending. To avoid user confusion refuse to spawn netdevs until the new configuration is applied (reboot). We need to split the netdev to eth_table port matching from MAC search and move it earlier in the probe() flow. 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>
Diffstat (limited to 'drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.h')
-rw-r--r--drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.h b/drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.h
index 325e841ca90a..6838741fadd7 100644
--- a/drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.h
+++ b/drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.h
@@ -54,6 +54,7 @@
* @enabled: is enabled?
* @tx_enabled: is TX enabled?
* @rx_enabled: is RX enabled?
+ * @override_changed: is media reconfig pending?
*
* @is_split: is interface part of a split port
*/
@@ -76,6 +77,8 @@ struct nfp_eth_table {
bool tx_enabled;
bool rx_enabled;
+ bool override_changed;
+
/* Computed fields */
bool is_split;
} ports[0];