Home
last modified time | relevance | path

Searched refs:ethtool (Results 1 – 25 of 115) sorted by relevance

12345

/Linux-v5.15/drivers/net/netdevsim/
Dethtool.c16 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.coalesce)); in nsim_set_coalesce()
72 memcpy(ring, &ns->ethtool.ring, sizeof(ns->ethtool.ring)); in nsim_get_ringparam()
80 memcpy(&ns->ethtool.ring, ring, sizeof(ns->ethtool.ring)); in nsim_set_ringparam()
[all …]
/Linux-v5.15/tools/testing/selftests/drivers/net/netdevsim/
Dethtool-pause.sh4 source ethtool-common.sh
7 if ! ethtool -h | grep include-stat 2>&1 >/dev/null; then
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')
30 s=$(ethtool -I --json -a $NSIM_NETDEV | jq '.[].statistics.tx_pause_frames')
33 echo y > $NSIM_DEV_DFS/ethtool/pause/report_stats_rx
[all …]
Dethtool-coalesce.sh4 source ethtool-common.sh
9 echo $(ethtool -c $NSIM_NETDEV | \
20 if ! ethtool -h | grep -q coalesce; then
107 ethtool -C $NSIM_NETDEV "$key" "$value"
118 ethtool -C $NSIM_NETDEV adaptive-rx on
119 s=$(ethtool -c $NSIM_NETDEV | grep -q "Adaptive RX: on TX: off")
122 ethtool -C $NSIM_NETDEV adaptive-tx on
123 s=$(ethtool -c $NSIM_NETDEV | grep -q "Adaptive RX: on TX: on")
Dethtool-ring.sh4 source ethtool-common.sh
9 echo $(ethtool -g $NSIM_NETDEV | \
21 if ! ethtool -h | grep -q set-ring >/dev/null; then
52 RING_MAX_LIST=$(ls $NSIM_DEV_DFS/ethtool/ring/)
55 echo $MAX_VALUE > $NSIM_DEV_DFS/ethtool/ring/$ring_max_entry
58 CURR_SETT_LINE=$(ethtool -g $NSIM_NETDEV | grep -i -m1 -n 'Current hardware settings' | cut -f1 -d:)
69 ethtool -G $NSIM_NETDEV "$key" "$value"
Dethtool-fec.sh4 source ethtool-common.sh
7 [ a$ETHTOOL == a ] && ETHTOOL=ethtool
90 echo 11 > $NSIM_DEV_DFS/ethtool/get_err
95 echo 0 > $NSIM_DEV_DFS/ethtool/get_err
96 echo 11 > $NSIM_DEV_DFS/ethtool/set_err
Dudp_tunnel_nic.sh159 ethtool --show-tunnels $NSIM_NETDEV | grep "$pp_expected" >/dev/null
163 ethtool --show-tunnels $NSIM_NETDEV
202 cnt=$(ethtool --show-tunnels $NSIM_NETDEV | grep -c "$pp_expected")
206 ethtool --show-tunnels $NSIM_NETDEV
255 ethtool -h | grep show-tunnels 2>&1 >/dev/null && HAS_ETHTOOL=y
701 ethtool -K $NSIM_NETDEV rx-udp_tunnel-port-offload off
706 ethtool -K $NSIM_NETDEV rx-udp_tunnel-port-offload on
715 ethtool -K $NSIM_NETDEV rx-udp_tunnel-port-offload off
723 ethtool -K $NSIM_NETDEV rx-udp_tunnel-port-offload on
847 ethtool -K $NSIM_NETDEV rx-udp_tunnel-port-offload off
[all …]
/Linux-v5.15/tools/testing/selftests/net/
Dveth.sh58 local flag=`ip netns exec $BASE$target ethtool -k veth$target |\
86 local cur_rx=`ip netns exec $BASE$target ethtool -l $dev |\
88 local cur_tx=`ip netns exec $BASE$target ethtool -l $dev |\
90 local cur_combined=`ip netns exec $BASE$target ethtool -l $dev |\
145 ip netns exec $NS_SRC ethtool -L veth$SRC rx $i tx $i
146 ip netns exec $NS_DST ethtool -L veth$DST rx $i tx $i
151 ip netns exec $NS_SRC ethtool -L veth$SRC rx $cur_cpu tx $cur_cpu
152 ip netns exec $NS_DST ethtool -L veth$DST rx $cur_cpu tx $cur_cpu
173 ip netns exec $NS_SRC ethtool -L veth$SRC rx 3 tx 3
174 ip netns exec $NS_DST ethtool -L veth$DST rx 3 tx 3
[all …]
Dudpgro_fwd.sh204 ip netns exec $NS_DST ethtool -K veth$DST rx-gro-list on
214 ip netns exec $NS_DST ethtool -K veth$DST rx-udp-gro-forwarding on
222 ip netns exec $NS_DST ethtool -K veth$DST rx-udp-gro-forwarding on
227 ip netns exec $NS_DST ethtool -K veth$DST rx-gro-list on
234 ip netns exec $NS_DST ethtool -K veth$DST rx-udp-gro-forwarding on
246 ip netns exec $NS_DST ethtool -K veth$DST rx-udp-gro-forwarding on
/Linux-v5.15/tools/testing/selftests/net/forwarding/
Dethtool.sh72 ethtool -s $h2 autoneg on
73 ethtool -s $h1 autoneg on
96 ethtool -s $h2 autoneg on
97 ethtool -s $h1 autoneg on
119 ethtool -s $h1 autoneg on
215 ethtool -s $h2 autoneg on
216 ethtool -s $h1 autoneg on
248 chosen_speed=$(ethtool $h1 | grep 'Speed:')
256 ethtool -s $h2 autoneg on
257 ethtool -s $h1 autoneg on
[all …]
Dethtool_lib.sh14 awk "${cmd}" /usr/include/linux/ethtool.h
20 local out=$(ethtool -s $cmd 2>&1 | wc -l)
72 speeds_str=$(ethtool "$dev" | \
Dloopback.sh46 ethtool -K $h1 loopback on
56 ethtool -K $h1 loopback off
79 if ethtool -k $h1 | grep loopback | grep -q fixed; then
Dethtool_extended_state.sh27 local ext_state=$(ethtool $dev | grep "Link detected" \
77 ethtool -s $swp2 autoneg on
78 ethtool -s $swp1 autoneg on
/Linux-v5.15/Documentation/networking/device_drivers/ethernet/aquantia/
Datlantic.rst14 - 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-v5.15/tools/testing/selftests/drivers/net/mlxsw/
Dethtool_lanes.sh24 busywait "$TIMEOUT" wait_for_port_up ethtool $swp2
27 local lanes_exist=$(ethtool $swp1 | grep 'Lanes:')
44 chosen_lanes=$(ethtool $dev | grep 'Lanes:')
65 ethtool -s $swp1 speed $max_speed lanes $unsupported_lanes $autoneg_str &> /dev/null
125 busywait "$TIMEOUT" wait_for_port_up ethtool $swp2
163 busywait "$TIMEOUT" wait_for_port_up ethtool $swp2
178 ethtool -s $swp2 autoneg on
179 ethtool -s $swp1 autoneg on
Dsch_ets.sh23 ethtool -s $h2 speed 1000 autoneg off
24 ethtool -s $swp2 speed 1000 autoneg off
58 ethtool -s $swp2 autoneg on
59 ethtool -s $h2 autoneg on
/Linux-v5.15/Documentation/networking/device_drivers/ethernet/intel/
Digbvf.rst27 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/
De100.rst60 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 …]
Dice.rst22 Driver information can be obtained using ethtool and lspci.
108 ethtool section in Additional Features and Configurations
110 The driver utilizes the ethtool interface for driver configuration and
111 diagnostics, as well as displaying statistical information. The latest ethtool
113 https://kernel.org/pub/software/network/ethtool/
115 NOTE: The rx_bytes value of ethtool does not match the rx_bytes value of
119 rx_bytes as "X", then ethtool (hardware statistics) will display rx_bytes as
233 two-byte pattern and offset by using the ethtool user-def and mask fields. Only
242 characteristics. They are enabled through ethtool's ntuple interface. To enable
245 # ethtool -K <ethX> ntuple <off|on>
[all …]
Di40e.rst21 Driver information can be obtained using ethtool, lspci, and ifconfig.
22 Instructions on updating ethtool can be found in the section Additional
100 NOTE: By default, the ethtool priv-flag vf-true-promisc-support is set to
105 #ethtool -set-priv-flags p261p1 vf-true-promisc-support on
140 user-defined flexible two-byte pattern and offset by using the ethtool user-def
147 # ethtool -K ethX ntuple <on|off>
155 # ethtool -N ethX flow-type tcp4 src-ip 192.168.10.1 dst-ip \
160 # ethtool -N ethX flow-type tcp4 src-ip 192.168.10.1 dst-ip \
165 # ethtool <-u|-n> ethX
172 Director rule is added from ethtool (Sideband filter), ATR is turned off by the
[all …]
/Linux-v5.15/Documentation/networking/
Dstatistics.rst17 - driver-defined statistics available via ethtool.
50 ethtool subsection
66 Standard ethtool statistics can be accessed via the interfaces used
67 for configuration. For example ethtool interface used
70 $ ethtool --include-statistics -a eth0
80 functionality are exposed via ``ethtool -S $ifc`` by specifying
83 $ ethtool -S eth0 --groups eth-phy eth-mac eth-ctrl rmon
103 Driver-defined ethtool statistics can be dumped using `ethtool -S $ifc`, e.g.::
105 $ ethtool -S ens4u1u1
150 ethtool section in uAPIs
[all …]
/Linux-v5.15/Documentation/networking/device_drivers/ethernet/microsoft/
Dnetvsc.rst29 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 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-v5.15/Documentation/networking/device_drivers/ethernet/freescale/
Dgianfar.rst19 packets. Use ethtool to enable or disable this feature for RX
49 The gianfar driver supports the use of ethtool for many
50 configuration options. You must run ethtool only on currently
51 open interfaces. See ethtool documentation for details.
Ddpaa.rst157 ethtool. Also, rx-flow-hash and rx-hashing was added. The addition of RSS
212 RSS can be turned off for a certain interface using ethtool, i.e.::
214 # ethtool -N fm1-mac9 rx-flow-hash tcp4 ""
218 # ethtool -N fm1-mac9 rx-flow-hash udp4 sfdn
227 on or off through ethtool, i.e.::
229 # ethtool -K fm1-mac9 rx-hashing off
230 # ethtool -k fm1-mac9 | grep hash
232 # ethtool -K fm1-mac9 rx-hashing on
235 # ethtool -k fm1-mac9 | grep hash
240 rx-hashing (without ethtool reporting it as off as that depends on the
[all …]
/Linux-v5.15/tools/testing/selftests/bpf/
Dtest_xdp_vlan.sh136 which ethtool > /dev/null
162 ip netns exec ns1 ethtool -K veth1 rxvlan off
163 ip netns exec ns2 ethtool -K veth2 rxvlan off
166 ip netns exec ns2 ethtool -K veth2 txvlan off
167 ip netns exec ns1 ethtool -K veth1 txvlan off
/Linux-v5.15/drivers/infiniband/ulp/ipoib/
Dipoib_ethtool.c81 coal->rx_coalesce_usecs = priv->ethtool.coalesce_usecs; in ipoib_get_coalesce()
82 coal->rx_max_coalesced_frames = priv->ethtool.max_coalesced_frames; in ipoib_get_coalesce()
111 priv->ethtool.coalesce_usecs = coal->rx_coalesce_usecs; in ipoib_set_coalesce()
112 priv->ethtool.max_coalesced_frames = coal->rx_max_coalesced_frames; in ipoib_set_coalesce()

12345