Home
last modified time | relevance | path

Searched refs:ethtool (Results 1 - 25 of 969) sorted by relevance

12345678910>>...39

/kernel/linux/linux-6.6/drivers/net/netdevsim/
H A Dethtool.c5 #include <linux/ethtool.h>
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 in nsim_set_coalesce()
179 struct dentry *ethtool, *dir; nsim_ethtool_init() local
[all...]
/kernel/linux/linux-5.10/drivers/net/netdevsim/
H A Dethtool.c5 #include <linux/ethtool.h>
16 if (ns->ethtool.report_stats_rx) in nsim_get_pause_stats()
18 if (ns->ethtool.report_stats_tx) in nsim_get_pause_stats()
28 pause->rx_pause = ns->ethtool.rx; in nsim_get_pauseparam()
29 pause->tx_pause = ns->ethtool.tx; in nsim_get_pauseparam()
40 ns->ethtool.rx = pause->rx_pause; in nsim_set_pauseparam()
41 ns->ethtool.tx = pause->tx_pause; in nsim_set_pauseparam()
53 struct dentry *ethtool, *dir; in nsim_ethtool_init() local
57 ethtool = debugfs_create_dir("ethtool", n in nsim_ethtool_init()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A Dveth.sh59 local flag=`ip netns exec $BASE$target ethtool -k veth$target |\
87 local cur_rx=`ip netns exec $BASE$target ethtool -l $dev |\
89 local cur_tx=`ip netns exec $BASE$target ethtool -l $dev |\
91 local cur_combined=`ip netns exec $BASE$target ethtool -l $dev |\
146 ip netns exec $NS_SRC ethtool -L veth$SRC rx $i tx $i
147 ip netns exec $NS_DST ethtool -L veth$DST rx $i tx $i
152 ip netns exec $NS_SRC ethtool -L veth$SRC rx $cur_cpu tx $cur_cpu
153 ip netns exec $NS_DST ethtool -L veth$DST rx $cur_cpu tx $cur_cpu
174 ip netns exec $NS_SRC ethtool -L veth$SRC rx 3 tx 3
175 ip netns exec $NS_DST ethtool
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/netdevsim/
H A Dethtool-pause.sh59 # Bail if ethtool is too old
60 if ! ethtool -h | grep include-stat 2>&1 >/dev/null; then
61 echo "SKIP: No --include-statistics support in ethtool"
75 echo n > $NSIM_DEV_DFS/ethtool/pause/report_stats_tx
76 echo n > $NSIM_DEV_DFS/ethtool/pause/report_stats_rx
78 s=$(ethtool --json -a $NSIM_NETDEV | jq '.[].statistics')
81 s=$(ethtool -I --json -a $NSIM_NETDEV | jq '.[].statistics')
84 echo y > $NSIM_DEV_DFS/ethtool/pause/report_stats_tx
86 s=$(ethtool -I --json -a $NSIM_NETDEV | jq '.[].statistics | length')
89 s=$(ethtool
[all...]
H A Dudp_tunnel_nic.sh159 ethtool --show-tunnels $NSIM_NETDEV | grep "$pp_expected" >/dev/null
161 err_cnt "ethtool table $1 on port $port: $pfx - $msg"
162 echo " check_table: ethtool does not contain '$pp_expected'"
163 ethtool --show-tunnels $NSIM_NETDEV
202 cnt=$(ethtool --show-tunnels $NSIM_NETDEV | grep -c "$pp_expected")
204 err_cnt "ethtool static entry: $pfx - $msg"
205 echo " check_table: ethtool does not contain '$pp_expected'"
206 ethtool --show-tunnels $NSIM_NETDEV
254 # Probe ethtool support
255 ethtool
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/net/forwarding/
H A Dethtool_mm.sh53 ethtool --set-mm $rx tx-enabled on
54 ethtool --set-mm $tx verify-enabled on tx-enabled on
59 ethtool --json --show-mm $tx | jq -r '.[]."verify-status"' | \
63 ethtool --json --show-mm $tx | jq -r '.[]."tx-active"' | grep -q 'true'
69 ethtool --set-mm $tx verify-enabled off tx-enabled off
70 ethtool --set-mm $rx tx-enabled off
92 ethtool --set-mm $tx verify-enabled off tx-enabled on
94 ethtool --json --show-mm $tx | jq -r '.[]."verify-status"' | \
98 ethtool --json --show-mm $tx | jq -r '.[]."tx-active"' | grep -q 'true'
104 ethtool
[all...]
H A 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
[all...]
H A 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" | \
H A Dloopback.sh46 ethtool -K $h1 loopback on
56 ethtool -K $h1 loopback off
79 if ethtool -k $h1 | grep loopback | grep -q fixed; then
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/netdevsim/
H A Dethtool-coalesce.sh4 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 | grep -q "Adaptive RX: on TX: off")
122 ethtool -C $NSIM_NETDEV adaptive-tx on
123 s=$(ethtool
[all...]
H A Dethtool-ring.sh4 source ethtool-common.sh
9 echo $(ethtool -g $NSIM_NETDEV | \
21 if ! ethtool -h | grep -q set-ring >/dev/null; then
22 echo "SKIP: No --set-ring support in ethtool"
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"
H A Dtc-mq-visibility.sh4 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
65 ethtool -L $NDEV combined 1
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/
H A 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
[all...]
H A Dethtool_lib.sh14 awk "${cmd}" /usr/include/linux/ethtool.h
20 local out=$(ethtool -s $cmd 2>&1 | wc -l)
38 speeds_str=$(ethtool "$dev" | \
H A Dloopback.sh46 ethtool -K $h1 loopback on
56 ethtool -K $h1 loopback off
79 if ethtool -k $h1 | grep loopback | grep -q fixed; then
H A Dethtool_extended_state.sh27 local ext_state=$(ethtool $dev | grep "Link detected" \
77 ethtool -s $swp2 autoneg on
78 ethtool -s $swp1 autoneg on
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/mlxsw/
H A 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
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dfs_ethtool.h10 int mlx5e_ethtool_alloc(struct mlx5e_ethtool_steering **ethtool);
11 void mlx5e_ethtool_free(struct mlx5e_ethtool_steering *ethtool);
18 static inline int mlx5e_ethtool_alloc(struct mlx5e_ethtool_steering **ethtool) in mlx5e_ethtool_alloc() argument
20 static inline void mlx5e_ethtool_free(struct mlx5e_ethtool_steering *ethtool) { } in mlx5e_ethtool_free() argument
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_fs_ethtool.c85 struct mlx5e_ethtool_steering *ethtool = mlx5e_fs_get_ethtool(priv->fs); in get_flow_table() local
103 eth_ft = &ethtool->l3_l4_ft[prio]; in get_flow_table()
108 eth_ft = &ethtool->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 = &ethtool->rules; in add_rule_to_list()
402 list_for_each_entry(iter, &ethtool->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 in del_ethtool_rule()
525 struct mlx5e_ethtool_steering *ethtool = mlx5e_fs_get_ethtool(priv->fs); find_ethtool_rule() local
793 struct mlx5e_ethtool_steering *ethtool = mlx5e_fs_get_ethtool(priv->fs); mlx5e_ethtool_get_flow() local
837 mlx5e_ethtool_alloc(struct mlx5e_ethtool_steering **ethtool) mlx5e_ethtool_alloc() argument
845 mlx5e_ethtool_free(struct mlx5e_ethtool_steering *ethtool) mlx5e_ethtool_free() argument
852 struct mlx5e_ethtool_steering *ethtool = mlx5e_fs_get_ethtool(fs); mlx5e_ethtool_cleanup_steering() local
862 struct mlx5e_ethtool_steering *ethtool = mlx5e_fs_get_ethtool(fs); mlx5e_ethtool_init_steering() local
1001 struct mlx5e_ethtool_steering *ethtool = mlx5e_fs_get_ethtool(priv->fs); mlx5e_ethtool_get_rxnfc() local
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/
H A 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
/kernel/linux/linux-5.10/drivers/infiniband/ulp/ipoib/
H A Dipoib_ethtool.c34 #include <linux/ethtool.h>
79 coal->rx_coalesce_usecs = priv->ethtool.coalesce_usecs; in ipoib_get_coalesce()
80 coal->rx_max_coalesced_frames = priv->ethtool.max_coalesced_frames; in ipoib_get_coalesce()
107 priv->ethtool.coalesce_usecs = coal->rx_coalesce_usecs; in ipoib_set_coalesce()
108 priv->ethtool.max_coalesced_frames = coal->rx_max_coalesced_frames; in ipoib_set_coalesce()
/kernel/linux/linux-6.6/drivers/infiniband/ulp/ipoib/
H A Dipoib_ethtool.c34 #include <linux/ethtool.h>
81 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()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
H A 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
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A Dtest_xdp_vlan.sh141 which ethtool > /dev/null
167 ip netns exec ${NS1} ethtool -K veth1 rxvlan off
168 ip netns exec ${NS2} ethtool -K veth2 rxvlan off
171 ip netns exec ${NS2} ethtool -K veth2 txvlan off
172 ip netns exec ${NS1} ethtool -K veth1 txvlan off
H A Dtest_xdp_features.sh26 ethtool -K v1 gro on
27 ethtool -K v1 tx-checksumming off
28 ip netns exec ${NS} ethtool -K v0 gro on
29 ip netns exec ${NS} ethtool -K v0 tx-checksumming off

Completed in 9 milliseconds

12345678910>>...39