All of lore.kernel.org
 help / color / mirror / Atom feed
From: Florian Fainelli <f.fainelli@gmail.com>
To: Andrew Lunn <andrew@lunn.ch>
Cc: Netdev <netdev@vger.kernel.org>,
	Scott Feldman <sfeldma@gmail.com>, Jiri Pirko <jiri@resnulli.us>
Subject: Re: Weird DHCP related problems with net-next
Date: Tue, 09 Jun 2015 13:31:31 -0700	[thread overview]
Message-ID: <55774D23.1010508@gmail.com> (raw)
In-Reply-To: <20150609192242.GD16778@lunn.ch>

Hi Andrew,

On 09/06/15 12:22, Andrew Lunn wrote:
> On Tue, Jun 09, 2015 at 11:54:50AM -0700, Florian Fainelli wrote:
>> Hi,
>>
>> I am observing a strange problem on net-next (not observed with net,
>> bisection in progress) where the initial DHCP configuration using
>> busybox's udhcpc is able to configure the local interface address and
>> DNS serer, but not the default gateway. Restarting udhcpc a second time
>> does not exhibit this problem.
> 
> Hi Florian
> 
> I've seen something similar, but different, again with DSA involved,
> on a WiFi Access point. I have debian, and i'm using isc dhcp. It gets
> an address, sets the address on the interface, but does not add the
> interface route to the routing table. Not sure about default route, i
> would have to go check that.

Interesting, did you also observe this with 'net', or just with 'net-next'?

Contrary to what I reported above, this is only an issue with
SYSTEMPORT/DSA/SF2, I could not reproduce this GENET or the Asix driver,
I was just conflating two different systems here.

My bisection seems to point at this commit:

58c2cb16b116d7feace621bd6b647bbabacfa225 ("switchdev: convert
fib_ipv4_add/del over to switchdev_port_obj_add/del")

And indeed, hacking a bit the kernel to remove the SWITCHDEV/DSA
dependencies to leave just DSA makes thing work again.

Scott, Jiri, any clues? I can instrument the kernel a bit more to help
find what is the problem here. Note that I am observing this on ARM
(Andrew probably is as well), where uninitialized stack variables are
potentially garbage.
-- 
Florian

  reply	other threads:[~2015-06-09 20:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-09 18:54 Weird DHCP related problems with net-next Florian Fainelli
2015-06-09 19:22 ` Andrew Lunn
2015-06-09 20:31   ` Florian Fainelli [this message]
2015-06-09 21:42     ` Andrew Lunn
2015-06-10  0:12     ` Florian Fainelli
2015-06-10 21:44       ` Scott Feldman
2015-06-10 22:04         ` Florian Fainelli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55774D23.1010508@gmail.com \
    --to=f.fainelli@gmail.com \
    --cc=andrew@lunn.ch \
    --cc=jiri@resnulli.us \
    --cc=netdev@vger.kernel.org \
    --cc=sfeldma@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.