]> git.baikalelectronics.ru Git - uboot.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)
commit5e5099b503ddb9f7b58107c81392826096243218
tree37c9f94265e4fe0be0a8cec139cb42b9b18f0df3
parentc6eb32a0f6a89d8db981de089e94af250d524cae
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