Project

General

Profile

Actions

Feature #8140

closed

loader: network read rework

Added by Toomas Soome about 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
bootloader
Start date:
2017-05-01
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

The current networking code is building receive buffer from up to down - guessing the size of the data. Amazingly it mostly appears to work, but not always. Also this approach actually does limit us pretty badly. Therefore we need to allocate the memory where the data is appearing - while reading the packet from the interface and pass it all up.

As an secondary part of this work, we drop PXE UDP based IO and use UNDI instead - this will enable us more generic access to network.

With new data allocation, the essential problem is about releasing the memory; one option would allocate and reuse the buffer, in this work I use the approach to release memory whenever the packet is not needed any more.

Actions

Also available in: Atom PDF