Skip to content

Commit 22bb37f

Browse files
authored
Merge pull request #4 from JunfeiYang/patch-1
Fix interface not find
2 parents 2c81289 + e95ba93 commit 22bb37f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ops-scripts/performance_tuning/set_rps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ esac
3434
cpu_count=`head -n1 /proc/interrupts|awk '{print NF}'`
3535

3636
# get interface name
37-
interfaces=`route -n | awk 'NR>2 && !a[$NF]++{print $NF}' | grep '^eth[0-9]\|bond[0-9]$'`
37+
interfaces=`route -n | awk 'NR>2 && !a[$NF]++{print $NF}' | grep '^eth[0-9.]\+\|bond[0-9.]\+$'`
3838

3939
set_rps(){
4040
interface="$@"

0 commit comments

Comments
 (0)