]> git.ipfire.org Git - thirdparty/grub.git/commit
efinet: open Simple Network Protocol exclusively
authorAndrei Borzenkov <arvidjaar@gmail.com>
Thu, 7 May 2015 17:37:17 +0000 (20:37 +0300)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Thu, 7 May 2015 17:37:17 +0000 (20:37 +0300)
commit49426e9fd2e562c73a4f1206f32eff9e424a1a73
tree01a426465c168f76806ddf7314a0d9d16c03157e
parentc52ae40570c3bfbcca22d2195f5e6b31009d8a3f
efinet: open Simple Network Protocol exclusively

EDK2 network stack is based on Managed Network Protocol which is layered
on top of Simple Management Protocol and does background polling. This
polling races with grub for received (and probably trasmitted) packets
which causes either serious slowdown or complete failure to load files.

Open SNP device exclusively.  This destroys all child MNP instances and
stops background polling.

Exclusive open cannot be done when enumerating cards, as it would destroy
PXE information we need to autoconfigure interface; and it cannot be done
during autoconfiguration as we need to do it for non-PXE boot as well. So
move SNP open to card ->open method and add matching ->close to clean up.

Based on patch from Mark Salter <msalter@redhat.com>

Also-By: Mark Salter <msalter@redhat.com>
Closes: 41731
grub-core/net/drivers/efi/efinet.c