]> git.proxmox.com Git - grub2.git/commit
ofnet: move the allocation of the transmit buffer into a function
authorStanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
Mon, 12 Dec 2016 15:03:38 +0000 (18:03 +0300)
committerDaniel Kiper <daniel.kiper@oracle.com>
Wed, 14 Dec 2016 13:13:34 +0000 (14:13 +0100)
commit7b4c54c4ad6a1c92228e1f05047bf820b3a6d36d
tree825d6459603e284a27869feb2e2dba39a149745c
parent0d2345774dddfb94d753a97db802d19494e31a82
ofnet: move the allocation of the transmit buffer into a function

In the current code search_net_devices() uses the "alloc-mem" command
from the IEEE1275 User Interface for allocation of the transmit buffer
for the case when GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN is set.

I don't have hardware where this flag is set to verify if this
workaround is still needed. However, further changes to ofnet will
require to execute this workaround one more time. Therefore, to
avoid possible duplication of code I'm moving this piece of
code into a function.

Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/net/drivers/ieee1275/ofnet.c