Skip to content

Commit

Permalink
vf-net-link-name.sh: Fixed uplink representor interface name
Browse files Browse the repository at this point in the history
Issue: 4119262
Signed-off-by: Vladimir Sokolovsky <[email protected]>
  • Loading branch information
vladsokolovsky committed Oct 10, 2024
1 parent 82a057a commit 4011524
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion udev/scripts/vf-net-link-name.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
ORIG_NAME=$1
SWID=$3
# might be pf0vf1 so only get vf number
ORIG_PORT=$2
PORT=${2##*f}
PORT_NAME=`echo ${2} | sed -e "s/c[[:digit:]]\+//"`
IFINDEX=$4
Expand Down Expand Up @@ -61,7 +62,7 @@ if [ $is_bf -eq 1 ]; then
exit 0
fi

echo NAME=`echo ${1} | sed -e "s/\(pf[[:digit:]]\+\)$/\1hpf/;s/c[[:digit:]]\+//"`
echo NAME=`echo ${ORIG_PORT} | sed -e "s/\(pf[[:digit:]]\+\)$/\1hpf/;s/c[[:digit:]]\+//"`
exit 0
fi

Expand Down

0 comments on commit 4011524

Please sign in to comment.