Skip to content

Commit 71295e0

Browse files
authored
Merge pull request #1027 from kernelkit/add-mqprio-quirk
imx8mp-evk: Disable mqprio for eth1
2 parents 794872c + 3375555 commit 71295e0

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh
2+
if [ $# -lt 2 ]; then
3+
echo "usage: $0 <quirk-name> <ifname>"
4+
exit 1
5+
fi
6+
quirk=$1
7+
ifname=$2
8+
if [ -f "/etc/product/interface-quirks.json" ]; then
9+
echo "$(jq -r --arg iface "$ifname" --arg quirk "$quirk" '.[$iface][$quirk] // "false"' /etc/product/interface-quirks.json)"
10+
else
11+
echo "false"
12+
fi

board/common/rootfs/usr/libexec/infix/init.d/25-mqprio

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ while [ "$1" ]; do
4343
txqs="$2"
4444
shift 2
4545

46+
[ $(/usr/libexec/infix/has-quirk "broken-mqprio" "$iface") = "true" ] && echo "Skipping $iface, does not support mqprio" && continue
4647
[ $txqs -lt 2 ] && continue
4748
[ $txqs -gt 8 ] && txqs=8
4849

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"eth0": {
33
"phy-detached-when-down": true
4+
},
5+
"eth1": {
6+
"broken-mqprio": true
47
}
58
}

0 commit comments

Comments
 (0)