summary refs log tree commit diff stats
path: root/scripts/qapi/types.py
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2018-04-17 07:36:10 +0200
committerThomas Huth <thuth@redhat.com>2018-05-02 11:27:14 +0200
commit0c18822953011ec0a3038c8a5eca1803b72a213e (patch)
treed184968a60f345343c40edbe14494bfe8682a172 /scripts/qapi/types.py
parent622b39178057289a1c8c1b5148f513e658e90ea1 (diff)
downloadfocaccia-qemu-0c18822953011ec0a3038c8a5eca1803b72a213e.tar.gz
focaccia-qemu-0c18822953011ec0a3038c8a5eca1803b72a213e.zip
pc-bios/s390-ccw/net: Split up net_load() into init, load and release parts
When we want to support pxelinux-style network booting later, we've got
to do several TFTP transfers - and we do not want to apply for a new IP
address via DHCP each time. So split up net_load into three parts:

1. net_init(), which initializes virtio-net, gets an IP address via DHCP
   and prints out the related information.

2. The tftp_load call is now moved directly into the main() function

3. A new net_release() function which should tear down the network stack
   before we are done in the firmware.

This will make it easier to extend the code in the next patches.

Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'scripts/qapi/types.py')
0 files changed, 0 insertions, 0 deletions