|
|
ab92d3 |
From 7b5182a572c03279b65f0c6abd434edd513e956d Mon Sep 17 00:00:00 2001
|
|
|
ab92d3 |
From: Thomas Blume <Thomas.Blume@suse.com>
|
|
|
ab92d3 |
Date: Fri, 7 Aug 2020 08:39:26 +0200
|
|
|
ab92d3 |
Subject: [PATCH] net-lib.sh: support infiniband network mac addresses
|
|
|
ab92d3 |
|
|
|
ab92d3 |
Infiniband MAC addresses have 20 octets.
|
|
|
ab92d3 |
|
|
|
ab92d3 |
Reference: bsc#996146
|
|
|
ab92d3 |
(cherry picked from commit 376ce85105121936666349aa5a777768d52516f7)
|
|
|
ab92d3 |
|
|
|
ab92d3 |
Resolves: #1964538
|
|
|
ab92d3 |
---
|
|
|
ab92d3 |
modules.d/40network/net-lib.sh | 5 +++++
|
|
|
ab92d3 |
1 file changed, 5 insertions(+)
|
|
|
ab92d3 |
|
|
|
ab92d3 |
diff --git a/modules.d/40network/net-lib.sh b/modules.d/40network/net-lib.sh
|
|
|
ab92d3 |
index f0c1c041..128d6343 100755
|
|
|
ab92d3 |
--- a/modules.d/40network/net-lib.sh
|
|
|
ab92d3 |
+++ b/modules.d/40network/net-lib.sh
|
|
|
ab92d3 |
@@ -570,6 +570,11 @@ parse_ifname_opts() {
|
|
|
ab92d3 |
# udev requires MAC addresses to be lower case
|
|
|
ab92d3 |
ifname_mac=$(echo $2:$3:$4:$5:$6:$7 | sed 'y/ABCDEF/abcdef/')
|
|
|
ab92d3 |
;;
|
|
|
ab92d3 |
+ 21)
|
|
|
ab92d3 |
+ ifname_if=$1
|
|
|
ab92d3 |
+ # udev requires MAC addresses to be lower case
|
|
|
ab92d3 |
+ ifname_mac=$(echo $2:$3:$4:$5:$6:$7:$8:$9:${10}:${11}:${12}:${13}:${14}:${15}:${16}:${17}:${18}:${19}:${20}:${21} | sed 'y/ABCDEF/abcdef/')
|
|
|
ab92d3 |
+ ;;
|
|
|
ab92d3 |
*)
|
|
|
ab92d3 |
die "Invalid arguments for ifname="
|
|
|
ab92d3 |
;;
|
|
|
ab92d3 |
|