2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-11-25 03:42:14 +00:00

Merge pull request #8001 from VersatusHPC/fix/riscv64-intel-net-drivers

fix(netboot): give riscv64 images the Intel 700 and 800 series drivers
This commit is contained in:
Daniel Hilst
2026-11-03 13:13:21 -03:00
committed by GitHub
3 changed files with 7 additions and 8 deletions
@@ -380,7 +380,7 @@ sub default_net_drivers {
x86 => [qw(tg3 bnx2 bnx2x e1000 e1000e igb mlx_en mlx5_core virtio_net be2net)],
x86_64 => [qw(tg3 bnx2 bnx2x e1000 e1000e igb mlx_en mlx5_core virtio_net be2net)],
aarch64 => [qw(tg3 bnx2 bnx2x e1000e igb mlx_en mlx5_core virtio_net)],
riscv64 => [qw(e1000 e1000e igb ixgbe r8169 tg3 bnx2x mlx5_core virtio_net)],
riscv64 => [qw(e1000 e1000e igb ixgbe i40e ice r8169 tg3 bnx2x mlx5_core virtio_net)],
ppc64 => [qw(e1000 e1000e igb ibmveth ehea)],
s390x => [qw(qdio ccwgroup)],
},
@@ -395,7 +395,7 @@ sub default_net_drivers {
x86_64 => [qw(tg3 bnx2 bnx2x e1000 e1000e igb mlx_en mlx5_core virtio_net overlay)],
ppc64el => [qw(tg3 bnx2 bnx2x e1000 e1000e igb ibmveth ehea mlx_en mlx4_en mlx5_core virtio_net overlay)],
ppc64 => [qw(e1000 e1000e igb ibmveth ehea)],
riscv64 => [qw(e1000 e1000e igb ixgbe r8169 tg3 bnx2x mlx5_core virtio_net overlay)],
riscv64 => [qw(e1000 e1000e igb ixgbe i40e ice r8169 tg3 bnx2x mlx5_core virtio_net overlay)],
s390x => [qw(qdio ccwgroup)],
},
);
+4 -5
View File
@@ -88,11 +88,10 @@ ok(
'POWER media retain their separate architecture route',
);
is_deeply(
[ imgutils::default_net_drivers( 'rh', 'riscv64' ) ],
[qw(e1000 e1000e igb ixgbe r8169 tg3 bnx2x mlx5_core virtio_net)],
'riscv64 diskless images receive the intended default network drivers',
);
my %riscv64_drivers = map { $_ => 1 } imgutils::default_net_drivers( 'rh', 'riscv64' );
for my $driver (qw(e1000 e1000e igb ixgbe i40e ice r8169 tg3 bnx2x mlx5_core virtio_net)) {
ok( $riscv64_drivers{$driver}, "riscv64 diskless images receive the $driver network driver" );
}
is_deeply(
[ imgutils::resolver_library_paths('riscv64') ],
[ 'lib64/libnss_dns.so.2', 'lib64/libresolv.so.2' ],
+1 -1
View File
@@ -18,7 +18,7 @@ require imgutils;
my @riscv = imgutils::default_net_drivers( 'ubuntu', 'riscv64' );
ok( scalar @riscv, 'a riscv64 Ubuntu image is given network drivers' );
for my $driver (qw(virtio_net e1000 e1000e igb r8169 tg3 mlx5_core)) {
for my $driver (qw(virtio_net e1000 e1000e igb ixgbe i40e ice r8169 tg3 mlx5_core)) {
ok( scalar( grep { $_ eq $driver } @riscv ), "the list carries $driver" );
}