Reject network devices which appear to be duplicates of those already available via a different underlying hardware device. On a Xen PV-HVM system, this allows us to filter out the emulated PCI NICs (which would otherwise appear alongside the netfront NICs). Note that we cannot use the Xen facility to "unplug" the emulated PCI NICs, since there is no guarantee that the OS we subsequently load will have a native netfront driver. We permit devices with the same MAC address if they are attached to the same underlying hardware device (e.g. VLAN devices). Inspired-by: Marin Hannache <git@mareo.fr> Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
685 |
|
685 |
|
686 |
|
686 |
|
687 |
|
687 |
|
|
688 |
|
|
|
689 |
|
|
688 |
|
690 |
|
689 |
|
691 |
|
690 |
|
692 |
|
|
|
||
602 |
|
602 |
|
603 |
|
603 |
|
604 |
|
604 |
|
|
605 |
|
|
605 |
|
606 |
|
606 |
|
607 |
|
607 |
|
608 |
|
|
609 |
|
|
|
610 |
|
|
|
611 |
|
|
|
612 |
|
|
|
613 |
|
|
|
614 |
|
|
|
615 |
|
|
|
616 |
|
|
|
617 |
|
|
|
618 |
|
|
|
619 |
|
|
|
620 |
|
|
|
621 |
|
|
|
622 |
|
|
|
623 |
|
|
|
624 |
|
|
|
625 |
|
|
608 |
|
626 |
|
609 |
|
627 |
|
610 |
|
628 |
|
|
|
||
612 |
|
630 |
|
613 |
|
631 |
|
614 |
|
632 |
|
615 |
|
|
|
616 |
|
|
|
617 |
|
|
|
618 |
|
|
|
619 |
|
|
|
620 |
|
633 |
|
621 |
|
634 |
|
622 |
|
635 |
|
|
|
||
660 |
|
673 |
|
661 |
|
674 |
|
662 |
|
675 |
|
|
676 |
|
|
663 |
|
677 |
|
664 |
|
678 |
|
665 |
|
679 |
|
|
|
||
852 |
|
866 |
|
853 |
|
867 |
|
854 |
|
868 |
|
|
869 |
|
|
|
870 |
|
|
|
871 |
|
|
|
872 |
|
|
|
873 |
|
|
|
874 |
|
|
|
875 |
|
|
|
876 |
|
|
|
877 |
|
|
|
878 |
|
|
|
879 |
|
|
|
880 |
|
|
|
881 |
|
|
|
882 |
|
|
|
883 |
|
|
|
884 |
|
|
|
885 |
|
|
|
886 |
|
|
|
887 |
|
|
|
888 |
|
|
|
889 |
|
|
855 |
|
890 |
|
856 |
|
891 |
|
857 |
|
892 |
|