]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: eth-raw: Allow interface to be specified by index
authorJoe Hershberger <joe.hershberger@ni.com>
Mon, 2 Jul 2018 19:47:52 +0000 (14:47 -0500)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 26 Jul 2018 19:08:18 +0000 (14:08 -0500)
commitc9e2caff8503b0dfa750b5ed08f882919fd3b510
tree37c9f94265e4fe0be0a8cec139cb42b9b18f0df3
parentac13270b49d55677aeea5a64dfbf1764118820e3
sandbox: eth-raw: Allow interface to be specified by index

With systemd stable interface names, eth0 will almost never exist.
Instead of using that name in the sandbox.dts, use an index.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/eth-raw-os.c
arch/sandbox/include/asm/eth-raw-os.h
drivers/net/sandbox-raw.c