initialize net_mode.if_type
authorAndrew Thomas <andrew.thomas@oracle.com>
Thu, 21 Jun 2018 23:21:01 +0000 (16:21 -0700)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 26 Jul 2018 19:08:20 +0000 (14:08 -0500)
commitf25ddca16c96f13c3f7cf7968566d1ff03917012
tree71eee7081970adc24a12fa617c3eb0507ea7e0fe
parent6ab12830921c1de4eb90a0d471bf5f4677af734c
initialize net_mode.if_type

if_type is not correctly initialized

Failure to initialize if_type means that grub2/efinet sends
a bogus arp request. It therefore gets no response. On Raspberry Pi 3B+
this leads to a pause at:

lan78xx_eth Waiting for PHY auto negotiation to complete....... done
lan78xx_eth Waiting for PHY auto negotiation to complete....... done

Signed-off-by: Andrew Thomas <andrew.thomas@oracle.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
lib/efi_loader/efi_net.c