[undi] Clean up driver and device name information
authorMichael Brown <mcb30@ipxe.org>
Mon, 5 Dec 2016 15:45:17 +0000 (15:45 +0000)
committerMichael Brown <mcb30@ipxe.org>
Mon, 5 Dec 2016 15:48:37 +0000 (15:48 +0000)
commit6997d3c2fab72732d8af0955c9c760f7f5c4562b
treef6d8d2bc42b4393c1f85d95e336922af6f3991ba
parentcc40fcbf8b0dedc18431b9281f793c20c6276f96
[undi] Clean up driver and device name information

Fix the <NULL> driver name reported by "ifstat" when using the undipci
driver (due to the unnecessary extra device node inserted as a child
of the PCI device).

Remove the "UNDI-" prefix from device names since the driver name is
also now visible via "ifstat", and tidy up the device name to match
the format used by standard PCI devices.

The output from "ifstat" now resembles:

  iPXE> ifstat
  net0: 52:54:00:12:34:56 using undipci on 0000:00:03.0

  iPXE> ifstat
  net0: 52:54:00:12:34:56 using undionly on 0000:00:03.0

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/drivers/net/undi.c
src/arch/x86/drivers/net/undinet.c
src/arch/x86/drivers/net/undionly.c
src/arch/x86/include/undi.h
src/arch/x86/include/undinet.h