From: Christoph Fritz <hidden> Date: 2012-09-20 21:28:22
On small systems (e.g. embedded ones) IP addresses are often configured
by bootloaders and get assigned to kernel via parameter "ip=". If set to
"ip=dhcp", even nameserver entries from DHCP daemons are handled. These
entries exported in /proc/net/pnp are commonly linked by /etc/resolv.conf.
To configure nameservers for networks without DHCP, this patch adds option
<dns0-ip> and <dns1-ip> to kernel-parameter 'ip='.
Signed-off-by: Christoph Fritz <redacted>
Tested-by: Jan Weitzel <redacted>
---
Documentation/filesystems/nfs/nfsroot.txt | 7 +++++
net/ipv4/ipconfig.c | 39 ++++++++++++++++++++++++++--
2 files changed, 43 insertions(+), 3 deletions(-)
@@ -158,6 +158,13 @@ ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoconf> Default: any+ <dns0-ip> IP address of first nameserver.+ Value gets exported by /proc/net/pnp which is often linked+ on embedded systems by /etc/resolv.conf.++ <dns1-ip> IP address of secound nameserver.+ Same as above.+ nfsrootdebug
From: David Miller <davem@davemloft.net> Date: 2012-09-20 21:37:24
From: Christoph Fritz <redacted>
Date: Thu, 20 Sep 2012 23:28:05 +0200
+ pr_info(" nameserver%u=%pI4",
+ i, &ic_nameservers[i]);
Why don't you just tab that second line out to planet Mars while
you're at it?
Please format this correctly, the goal is not to use a million
TAB characters. Rather, the goal is to get the text starting
on the second line of a function call to line up with the
first column after the openning parenthesis on the previous line.
What you're doing there looks awful, so you'll need to fix this
up before this patch will be considered seriously.
Thanks.
From: Christoph Fritz <hidden> Date: 2012-09-20 21:49:10
On small systems (e.g. embedded ones) IP addresses are often configured
by bootloaders and get assigned to kernel via parameter "ip=". If set to
"ip=dhcp", even nameserver entries from DHCP daemons are handled. These
entries exported in /proc/net/pnp are commonly linked by /etc/resolv.conf.
To configure nameservers for networks without DHCP, this patch adds option
<dns0-ip> and <dns1-ip> to kernel-parameter 'ip='.
Signed-off-by: Christoph Fritz <redacted>
Tested-by: Jan Weitzel <redacted>
---
v2: - fix indent
---
Documentation/filesystems/nfs/nfsroot.txt | 7 +++++
net/ipv4/ipconfig.c | 39 ++++++++++++++++++++++++++--
2 files changed, 43 insertions(+), 3 deletions(-)
@@ -158,6 +158,13 @@ ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoconf> Default: any+ <dns0-ip> IP address of first nameserver.+ Value gets exported by /proc/net/pnp which is often linked+ on embedded systems by /etc/resolv.conf.++ <dns1-ip> IP address of secound nameserver.+ Same as above.+ nfsrootdebug
@@ -158,6 +158,13 @@ ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoconf> Default: any+ <dns0-ip> IP address of first nameserver.+ Value gets exported by /proc/net/pnp which is often linked+ on embedded systems by /etc/resolv.conf.++ <dns1-ip> IP address of secound nameserver.+ Same as above.+ nfsrootdebug
This documentation update is not sufficient.
You have to properly show, in the lines above where you made your change,
where the new settings are placed in the "ip=" option.
From: Christoph Fritz <hidden> Date: 2012-09-21 18:31:36
On small systems (e.g. embedded ones) IP addresses are often configured
by bootloaders and get assigned to kernel via parameter "ip=". If set to
"ip=dhcp", even nameserver entries from DHCP daemons are handled. These
entries exported in /proc/net/pnp are commonly linked by /etc/resolv.conf.
To configure nameservers for networks without DHCP, this patch adds option
<dns0-ip> and <dns1-ip> to kernel-parameter 'ip='.
Signed-off-by: Christoph Fritz <redacted>
Tested-by: Jan Weitzel <redacted>
---
v2: - fix indent
v3: - fix docu: add new arguments to option "ip="
---
Documentation/filesystems/nfs/nfsroot.txt | 10 ++++++-
net/ipv4/ipconfig.c | 39 ++++++++++++++++++++++++++--
2 files changed, 45 insertions(+), 4 deletions(-)
@@ -78,7 +78,8 @@ nfsroot=[<server-ip>:]<root-dir>[,<nfs-options>] flags = hard, nointr, noposix, cto, ac-ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoconf>+ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoconf>:+ <dns0-ip>:<dns1-ip> This parameter tells the kernel how to configure IP addresses of devices and also how to set up the IP routing table. It was originally called
@@ -158,6 +159,13 @@ ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoconf> Default: any+ <dns0-ip> IP address of first nameserver.+ Value gets exported by /proc/net/pnp which is often linked+ on embedded systems by /etc/resolv.conf.++ <dns1-ip> IP address of secound nameserver.+ Same as above.+ nfsrootdebug
From: David Miller <davem@davemloft.net> Date: 2012-09-21 18:51:49
From: Christoph Fritz <redacted>
Date: Fri, 21 Sep 2012 20:31:19 +0200
On small systems (e.g. embedded ones) IP addresses are often configured
by bootloaders and get assigned to kernel via parameter "ip=". If set to
"ip=dhcp", even nameserver entries from DHCP daemons are handled. These
entries exported in /proc/net/pnp are commonly linked by /etc/resolv.conf.
To configure nameservers for networks without DHCP, this patch adds option
<dns0-ip> and <dns1-ip> to kernel-parameter 'ip='.
Signed-off-by: Christoph Fritz <redacted>
Tested-by: Jan Weitzel <redacted>
From: Christoph Fritz <hidden> Date: 2012-09-21 19:28:49
On Fri, 2012-09-21 at 14:51 -0400, David Miller wrote:
From: Christoph Fritz <redacted>
Date: Fri, 21 Sep 2012 20:31:19 +0200
quoted
On small systems (e.g. embedded ones) IP addresses are often configured
by bootloaders and get assigned to kernel via parameter "ip=". If set to
"ip=dhcp", even nameserver entries from DHCP daemons are handled. These
entries exported in /proc/net/pnp are commonly linked by /etc/resolv.conf.
To configure nameservers for networks without DHCP, this patch adds option
<dns0-ip> and <dns1-ip> to kernel-parameter 'ip='.
Signed-off-by: Christoph Fritz <redacted>
Tested-by: Jan Weitzel <redacted>
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Date: 2012-09-25 08:10:06
The commit 5e953778a2aab04929a5e7b69f53dc26e39b079e ("ipconfig: add nameserver
IPs to kernel-parameter ip=") introduces ic_nameservers_predef() that defined
only for BOOTP. However it is used by ip_auto_config_setup() as well. This
patch moves it outside of #ifdef BOOTP.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Christoph Fritz <redacted>
Cc: David S. Miller <davem@davemloft.net>
---
net/ipv4/ipconfig.c | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
The commit 5e953778a2aab04929a5e7b69f53dc26e39b079e ("ipconfig: add nameserver
IPs to kernel-parameter ip=") introduces ic_nameservers_predef() that defined
only for BOOTP. However it is used by ip_auto_config_setup() as well. This
patch moves it outside of #ifdef BOOTP.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>