diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2017-11-28 10:56:30 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-12-15 08:12:30 +0100 |
commit | ac7b6bcb7ef5abe5d5f6b2a64453080b7994a6eb (patch) | |
tree | ded58d04765124269d40b7f8c6e08f33850e0606 /include | |
parent | dd36203979331fdcfc8196cf671cfff8ce71cd15 (diff) | |
download | barebox-ac7b6bcb7ef5abe5d5f6b2a64453080b7994a6eb.tar.gz barebox-ac7b6bcb7ef5abe5d5f6b2a64453080b7994a6eb.tar.xz |
net: Add linuxdevname property
When you have a static network environment but more than one network
device on your machine it is necessary to provide the <device> parameter
to the ip parameter at kernel cmd line.
The device name assigned by Linux cannot in general be predicted as it
depends on driver bind order.
This patch introduces a new property linux.devname to eth devices.
The value is added to bootargs per interface and can be changed in
env/network/INTF
Based on patch by Gavin Schenk <g.schenk@eckelmann.de>.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/net.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net.h b/include/net.h index 926d817802..a09cb155a8 100644 --- a/include/net.h +++ b/include/net.h @@ -61,6 +61,7 @@ struct eth_device { IPaddr_t netmask; char ethaddr[6]; char *bootarg; + char *linuxdevname; bool ifup; #define ETH_MODE_DHCP 0 |