The UEFI specification does not state whether or not a return value of EFI_BUFFER_TOO_SMALL from the SNP Receive() method should follow the usual EFI API behaviour of allowing the caller to retry the request with an increased buffer size. Examination of the SnpDxe driver in EDK2 suggests that Receive() will just return the truncated packet (complete with any requested link-layer header fields), so match this behaviour. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
710 |
|
710 |
|
711 |
|
711 |
|
712 |
|
712 |
|
713 |
|
|
|
|
713 |
|
|
714 |
|
714 |
|
715 |
|
715 |
|
716 |
|
716 |
|
|
|
||
732 |
|
732 |
|
733 |
|
733 |
|
734 |
|
734 |
|
735 |
|
|
|
736 |
|
|
|
737 |
|
|
|
738 |
|
|
|
739 |
|
|
|
740 |
|
|
|
741 |
|
|
|
742 |
|
|
|
743 |
|
735 |
|
744 |
|
736 |
|
745 |
|
737 |
|
746 |
|
|
|
747 |
|
|
|
|
738 |
|
|
|
739 |
|
|
|
740 |
|
|
|
741 |
|
|
|
742 |
|
|
|
743 |
|
|
748 |
|
744 |
|
749 |
|
745 |
|
750 |
|
746 |
|
|
|
||
765 |
|
761 |
|
766 |
|
762 |
|
767 |
|
763 |
|
768 |
|
|
|
|
764 |
|
|
|
765 |
|
|
769 |
|
766 |
|
770 |
|
767 |
|
771 |
|
768 |
|
772 |
|
|
|
773 |
|
769 |
|
774 |
|
770 |
|
775 |
|
771 |
|