Lines Matching full:fec
11 # Since commit 2b3ddcb35357 ("ethtool: fec: Change the prompt ...")
13 configured=$($ETHTOOL --show-fec $NSIM_NETDEV | tail -2 | head -1 | cut -d' ' -f1)
16 s=$($ETHTOOL --show-fec $NSIM_NETDEV | tail -2)
17 check $? "$s" "$configured FEC encodings: None
18 Active FEC encoding: None"
21 $ETHTOOL --set-fec $NSIM_NETDEV encoding auto
23 s=$($ETHTOOL --show-fec $NSIM_NETDEV | tail -2)
24 check $? "$s" "$configured FEC encodings: Auto
25 Active FEC encoding: Off"
29 $ETHTOOL --set-fec $NSIM_NETDEV encoding $o
31 s=$($ETHTOOL --show-fec $NSIM_NETDEV | tail -2)
32 check $? "$s" "$configured FEC encodings: Off
33 Active FEC encoding: Off"
37 $ETHTOOL --set-fec $NSIM_NETDEV encoding $o
39 s=$($ETHTOOL --show-fec $NSIM_NETDEV | tail -2)
40 check $? "$s" "$configured FEC encodings: BaseR
41 Active FEC encoding: BaseR"
45 $ETHTOOL --set-fec $NSIM_NETDEV encoding $o
47 s=$($ETHTOOL --show-fec $NSIM_NETDEV | tail -2)
48 check $? "$s" "$configured FEC encodings: ${o^^}
49 Active FEC encoding: ${o^^}"
53 $ETHTOOL --set-fec $NSIM_NETDEV encoding rs llrs
55 s=$($ETHTOOL --show-fec $NSIM_NETDEV | tail -2)
56 check $? "$s" "$configured FEC encodings: RS LLRS
57 Active FEC encoding: LLRS"
59 $ETHTOOL --set-fec $NSIM_NETDEV encoding rs off auto
61 s=$($ETHTOOL --show-fec $NSIM_NETDEV | tail -2)
62 check $? "$s" "$configured FEC encodings: Auto Off RS
63 Active FEC encoding: RS"
66 $ETHTOOL --set-fec $NSIM_NETDEV encoding FIBRE 2>/dev/null
69 $ETHTOOL --set-fec $NSIM_NETDEV encoding bla-bla-bla 2>/dev/null
73 $ETHTOOL --json --show-fec $NSIM_NETDEV | jq empty >>/dev/null 2>&1
75 $ETHTOOL --set-fec $NSIM_NETDEV encoding auto
78 s=$($ETHTOOL --json --show-fec $NSIM_NETDEV | jq '.[].config[]')
80 s=$($ETHTOOL --json --show-fec $NSIM_NETDEV | jq '.[].active[]')
83 $ETHTOOL --set-fec $NSIM_NETDEV encoding auto RS
86 s=$($ETHTOOL --json --show-fec $NSIM_NETDEV | jq '.[].config[]')
89 s=$($ETHTOOL --json --show-fec $NSIM_NETDEV | jq '.[].active[]')
96 $ETHTOOL --show-fec $NSIM_NETDEV >>/dev/null 2>&1
102 $ETHTOOL --show-fec $NSIM_NETDEV >>/dev/null 2>&1
105 $ETHTOOL --set-fec $NSIM_NETDEV encoding RS 2>/dev/null