| /linux/drivers/net/netdevsim/ |
| H A D | ethtool.c | 16 if (ns->ethtool.pauseparam.report_stats_rx) in nsim_get_pause_stats() 18 if (ns->ethtool.pauseparam.report_stats_tx) in nsim_get_pause_stats() 28 pause->rx_pause = ns->ethtool.pauseparam.rx; in nsim_get_pauseparam() 29 pause->tx_pause = ns->ethtool.pauseparam.tx; in nsim_get_pauseparam() 40 ns->ethtool.pauseparam.rx = pause->rx_pause; in nsim_set_pauseparam() 41 ns->ethtool.pauseparam.tx = pause->tx_pause; in nsim_set_pauseparam() 52 memcpy(coal, &ns->ethtool.coalesce, sizeof(ns->ethtool.coalesce)); in nsim_get_coalesce() 63 memcpy(&ns->ethtool.coalesce, coal, sizeof(ns->ethtool in nsim_set_coalesce() 240 struct dentry *ethtool, *dir; nsim_ethtool_init() local [all...] |
| /linux/tools/testing/selftests/drivers/net/netdevsim/ |
| H A D | ethtool-fec.sh | 4 source ethtool-common.sh 7 [ a$ETHTOOL == a ] && ETHTOOL=ethtool 11 # Since commit 2b3ddcb35357 ("ethtool: fec: Change the prompt ...") 12 # in ethtool CLI the Configured lines start with Supported/Configured. 13 configured=$($ETHTOOL --show-fec $NSIM_NETDEV | tail -2 | head -1 | cut -d' ' -f1) 16 s=$($ETHTOOL --show-fec $NSIM_NETDEV | tail -2) 21 $ETHTOOL --set-fec $NSIM_NETDEV encoding auto 23 s=$($ETHTOOL --show-fec $NSIM_NETDEV | tail -2) 29 $ETHTOOL --set-fec $NSIM_NETDEV encoding $o 31 s=$($ETHTOOL --show-fec $NSIM_NETDEV | tail -2) [all …]
|
| H A D | ethtool-pause.sh | 4 source ethtool-common.sh 6 # Bail if ethtool is too old 7 if ! ethtool -h | grep include-stat 2>&1 >/dev/null; then 8 echo "SKIP: No --include-statistics support in ethtool" 16 echo n > $NSIM_DEV_DFS/ethtool/pause/report_stats_tx 17 echo n > $NSIM_DEV_DFS/ethtool/pause/report_stats_rx 19 s=$(ethtool --json -a $NSIM_NETDEV | jq '.[].statistics') 22 s=$(ethtool -I --json -a $NSIM_NETDEV | jq '.[].statistics') 25 echo y > $NSIM_DEV_DFS/ethtool/pause/report_stats_tx 27 s=$(ethtool -I --json -a $NSIM_NETDEV | jq '.[].statistics | length') [all …]
|
| H A D | ethtool-ring.sh | |
| H A D | ethtool-coalesce.sh | 4 source ethtool-common.sh 9 echo $(ethtool -c $NSIM_NETDEV | \ 20 if ! ethtool -h | grep -q coalesce; then 21 echo "SKIP: No --coalesce support in ethtool" 107 ethtool -C $NSIM_NETDEV "$key" "$value" 117 # bool settings which ethtool displays on the same line 118 ethtool -C $NSIM_NETDEV adaptive-rx on 119 s=$(ethtool -c $NSIM_NETDEV) 123 ethtool -C $NSIM_NETDEV adaptive-tx on 124 s=$(ethtool -c $NSIM_NETDEV)
|
| H A D | Makefile | 7 ethtool-coalesce.sh \ 8 ethtool-features.sh \ 9 ethtool-fec.sh \ 10 ethtool-pause.sh \ 22 ethtool-common.sh
|
| H A D | tc-mq-visibility.sh | 4 source ethtool-common.sh 40 ethtool -L $NDEV combined $n 47 ethtool -L $NDEV combined $n 55 ethtool -L $NDEV combined 1 58 ethtool -L $NDEV combined 4 68 ethtool -L $NDEV combined 1
|
| /linux/tools/testing/selftests/drivers/net/hw/ |
| H A D | iou-zcrx.py | 10 from lib.py import bkg, cmd, defer, ethtool, rand_port, wait_port_listen 28 output = ethtool(f"-X {cfg.ifname} context new start {cfg.target} equal 1").stdout 35 output = ethtool(f"-X {cfg.ifname} context new start {start} equal {count}").stdout 41 output = ethtool(f"-N {cfg.ifname} flow-type tcp6 dst-port {cfg.port} action {cfg.target}").stdout 47 output = ethtool(f"-N {cfg.ifname} flow-type tcp6 dst-port {cfg.port} context {rss_ctx_id}").stdout 90 ethtool(f"-X {cfg.ifname} equal {cfg.target}") 91 defer(ethtool, f"-X {cfg.ifname} default") 94 defer(ethtool, f"-N {cfg.ifname} delete {flow_rule_id}") 118 ethtool(f"-X {cfg.ifname} equal {cfg.target}") 119 defer(ethtool, [all...] |
| H A D | rss_ctx.py | 15 from lib.py import cmd, ethtool, ip, defer, CmdExitFailure, wait_file 37 return ethtool(f"-x {cfg.ifname} context {context}", json=True)[0] 51 output = ethtool(f"{act} {cfg.ifname} {opts}").stdout 58 features = ethtool(f"-k {cfg.ifname}", json=True)[0] 62 ethtool(f"-K {cfg.ifname} ntuple-filters on") 63 defer(ethtool, f"-K {cfg.ifname} ntuple-filters off") 115 text = ethtool(f"-n {cfg.ifname} rule {rule_id}").stdout 131 raise KsftFailEx("ethtool results missing key: " + k) 133 raise KsftFailEx(f"ethtool results empty for '{k}': {data[k]}") 140 ethtool(f"-X {cfg.ifname} hkey " + _rss_key_str(key)) [all …]
|
| H A D | ethtool_mm.sh | 58 ethtool --set-mm $rx tx-enabled on 59 ethtool --set-mm $tx verify-enabled on tx-enabled on 64 ethtool --json --show-mm $tx | jq -r '.[]."verify-status"' | \ 68 ethtool --json --show-mm $tx | jq -r '.[]."tx-active"' | grep -q 'true' 74 ethtool --set-mm $tx verify-enabled off tx-enabled off 75 ethtool --set-mm $rx tx-enabled off 97 ethtool --set-mm $tx verify-enabled off tx-enabled on 99 ethtool --json --show-mm $tx | jq -r '.[]."verify-status"' | \ 103 ethtool --json --show-mm $tx | jq -r '.[]."tx-active"' | grep -q 'true' 109 ethtool --set-mm $tx verify-enabled off tx-enabled off [all …]
|
| H A D | ethtool.sh | 72 ethtool -s $h2 autoneg on 73 ethtool -s $h1 autoneg on 96 ethtool -s $h2 autoneg on 97 ethtool -s $h1 autoneg on 118 ethtool -s $h1 autoneg on 213 ethtool -s $h2 autoneg on 214 ethtool -s $h1 autoneg on 246 chosen_speed=$(ethtool $h1 | grep 'Speed:') 254 ethtool -s $h2 autoneg on 255 ethtool -s $h1 autoneg on [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A D | veth.sh | 62 local flag=`ip netns exec $BASE$target ethtool -k veth$target |\ 121 local cur_rx=`ip netns exec $BASE$target ethtool -l $dev |\ 123 local cur_tx=`ip netns exec $BASE$target ethtool -l $dev |\ 125 local cur_combined=`ip netns exec $BASE$target ethtool -l $dev |\ 182 ip netns exec "$BASE$target" ethtool -L "veth$target" \ 188 if ip netns exec "$BASE$target" ethtool -L "veth$target" \ 252 ip netns exec $NS_SRC ethtool -L veth$SRC rx $i tx $i 253 ip netns exec $NS_DST ethtool -L veth$DST rx $i tx $i 258 ip netns exec $NS_SRC ethtool -L veth$SRC rx $cur_cpu tx $cur_cpu 259 ip netns exec $NS_DST ethtool [all...] |
| H A D | netdevice.sh | 79 # test an ethtool command 80 # arg1: return code for not supported (see ethtool code source) 86 echo "SKIP: $netdev: ethtool: invalid number of arguments" 93 echo "XFAIL: $netdev: ethtool $2 not supported" 96 echo "FAIL: $netdev: ethtool $2" 100 echo "PASS: $netdev: ethtool $2" 105 # test ethtool commands 111 #check presence of ethtool 112 ethtool --version 2>/dev/null >/dev/null 114 echo "SKIP: ethtool not present" [all …]
|
| H A D | vlan_hw_filter.sh | 44 ip netns exec ${NETNS} ethtool -K bond0 rx-vlan-filter off 57 ip netns exec ${NETNS} ethtool -K bond0 rx-vlan-filter off 59 ip netns exec ${NETNS} ethtool -K bond0 rx-vlan-filter on 70 ip netns exec ${NETNS} ethtool -K bond0 rx-vlan-filter off 72 ip netns exec ${NETNS} ethtool -K bond0 rx-vlan-filter on 86 ip netns exec ${NETNS} ethtool -K bond0 rx-vlan-filter off 88 ip netns exec ${NETNS} ethtool -K bond0 rx-vlan-filter on 97 ip netns exec ${NETNS} ethtool -K bond0 rx-vlan-filter off
|
| /linux/Documentation/networking/device_drivers/ethernet/aquantia/ |
| H A D | atlantic.rst | 14 - Supported ethtool options 57 ethtool section in Configuration 59 The driver utilizes the ethtool interface for driver configuration and 61 ethtool version is required for this functionality. 67 Supported ethtool options 75 ethtool <ethX> 114 ethtool -s eth0 autoneg off speed 2500 121 ethtool -i <ethX> 142 ethtool -S <ethX> 195 ethtool -c <ethX> [all …]
|
| /linux/Documentation/networking/device_drivers/ethernet/intel/ |
| H A D | ice.rst | 22 Driver information can be obtained using ethtool and lspci. 90 ethtool section in Additional Features and Configurations 92 The driver utilizes the ethtool interface for driver configuration and 93 diagnostics, as well as displaying statistical information. The latest ethtool 95 https://kernel.org/pub/software/network/ethtool/ 97 NOTE: The rx_bytes value of ethtool does not match the rx_bytes value of 101 rx_bytes as "X", then ethtool (hardware statistics) will display rx_bytes as 104 ethtool reset 115 These are mapped to ethtool reset flags as follow: 119 # ethtool --reset <ethX> irq dma filter offload [all …]
|
| H A D | idpf.rst | 15 Driver information can be obtained using ethtool, lspci, and ip. 32 ethtool section in Additional Features and Configurations 34 The driver utilizes the ethtool interface for driver configuration and 35 diagnostics, as well as displaying statistical information. The latest ethtool 38 https://kernel.org/pub/software/network/ethtool/ 90 control for specific workloads, via ethtool, adjusting the number of 95 # ethtool -C <ethX> adaptive-rx off adaptive-tx off 104 # ethtool -C <ethX> adaptive-rx off adaptive-tx off rx-usecs 80 109 using ethtool:: 111 # ethtool -C <ethX> adaptive-rx off adaptive-tx off rx-usecs 0 [all …]
|
| H A D | e100.rst | 60 ethtool -G eth? rx n 72 ethtool -G eth? tx n 78 default. The ethtool utility can be used as follows to force speed/duplex.:: 80 ethtool -s eth? autoneg off speed {10|100} duplex {full|half} 90 ethtool -s eth? msglvl n 131 ethtool section in Additional Configurations 134 The driver utilizes the ethtool interface for driver configuration and 135 diagnostics, as well as displaying statistical information. The ethtool 138 The latest release of ethtool can be found from 139 https://www.kernel.org/pub/software/network/ethtool/ [all …]
|
| H A D | igbvf.rst | 27 Driver information can be obtained using ethtool, lspci, and ifconfig. 28 Instructions on updating ethtool can be found in the section Additional 44 ethtool section in Additional Features and Configurations 46 The driver utilizes the ethtool interface for driver configuration and 47 diagnostics, as well as displaying statistical information. The latest ethtool 50 https://www.kernel.org/pub/software/network/ethtool/
|
| /linux/tools/testing/selftests/drivers/net/hw/lib/py/ |
| H A D | linkconfig.py | |
| /linux/Documentation/networking/device_drivers/ethernet/microsoft/ |
| H A D | netvsc.rst | 29 For TCP & UDP, we can switch hash level between L3 and L4 by ethtool 41 ethtool -N eth0 rx-flow-hash udp4 sdfn 45 ethtool -N eth0 rx-flow-hash udp4 sd 49 ethtool -n eth0 rx-flow-hash udp4 62 and later. It may be changed by ethtool command:: 64 ethtool -K eth0 lro on 65 ethtool -K eth0 lro off 88 via ethtool Rx ring parameters. 118 ethtool -K eth0 lro off
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_fs_ethtool.c | 85 struct mlx5e_ethtool_steering *ethtool = mlx5e_fs_get_ethtool(priv->fs); in get_flow_table() local 103 eth_ft = ðtool->l3_l4_ft[prio]; in get_flow_table() 108 eth_ft = ðtool->l2_ft[prio]; in get_flow_table() 398 struct mlx5e_ethtool_steering *ethtool = mlx5e_fs_get_ethtool(priv->fs); in add_rule_to_list() local 399 struct list_head *head = ðtool->rules; in add_rule_to_list() 402 list_for_each_entry(iter, ðtool->rules, list) { in add_rule_to_list() 407 ethtool->tot_num_rules++; in add_rule_to_list() 498 netdev_err(priv->netdev, "%s: failed to add ethtool steering rule: %d\n", in add_ethtool_flow_rule() 511 struct mlx5e_ethtool_steering *ethtool = mlx5e_fs_get_ethtool(fs); in del_ethtool_rule() local 517 ethtool->tot_num_rules--; in del_ethtool_rule() [all …]
|
| /linux/drivers/net/ethernet/intel/iavf/ |
| H A D | iavf_ethtool.c | 9 /* ethtool support for iavf */ 12 /* ethtool statistics helpers */ 15 * struct iavf_stats - definition for an ethtool statistic 16 * @stat_string: statistic name to display in ethtool -S output 20 * This structure defines a statistic to be added to the ethtool stats buffer. 79 /* ensure that the ethtool data buffer is zero'd for any stats in iavf_add_one_ethtool_stat() 108 * __iavf_add_ethtool_stats - copy stats into the ethtool supplied buffer 109 * @data: ethtool stats buffer 115 * the data buffer supplied by ethtool. Updates the data pointer to point to 132 * iavf_add_ethtool_stats - copy stats into ethtool supplied buffer [all …]
|
| /linux/tools/testing/selftests/drivers/net/ |
| H A D | napi_threaded.py | 11 from lib.py import cmd, defer, ethtool 32 combined = ethtool(f"-l {cfg.ifname}", json=True)[0].get("combined", 0) 34 defer(ethtool, f"-L {cfg.ifname} combined {combined}") 51 cmd(f"ethtool -L {cfg.ifname} combined 1") 53 cmd(f"ethtool -L {cfg.ifname} combined {qcnt}") 60 cmd(f"ethtool -L {cfg.ifname} combined 1") 62 cmd(f"ethtool -L {cfg.ifname} combined {qcnt}") 95 cmd(f"ethtool -L {cfg.ifname} combined 1") 96 cmd(f"ethtool -L {cfg.ifname} combined {qcnt}") 123 cmd(f"ethtool [all...] |
| /linux/tools/testing/selftests/drivers/net/mlxsw/ |
| H A D | ethtool_lanes.sh | 25 busywait "$TIMEOUT" wait_for_port_up ethtool $swp2 28 busywait $TIMEOUT sh -c "ethtool $swp1 | grep -q Lanes:" 45 chosen_lanes=$(ethtool $dev | grep 'Lanes:') 66 ethtool -s $swp1 speed $max_speed lanes $unsupported_lanes $autoneg_str &> /dev/null 127 busywait $TIMEOUT sh -c "ethtool $swp1 | grep -q Lanes:" 166 busywait $TIMEOUT sh -c "ethtool $swp1 | grep -q Lanes:" 181 ethtool -s $swp2 autoneg on 182 ethtool -s $swp1 autoneg on
|