| /linux/tools/testing/selftests/drivers/net/mlxsw/ |
| H A D | sharedbuffer_configuration.py | 2 # SPDX-License-Identifier: GPL-2.0 19 - random size 22 - random pool number 23 - random threshold 26 - random threshold 28 def __init__(self, pools): 33 def _cell_size(self): 36 def _get_static_size(self, th): 37 # For threshold of 16, this works out to be about 12MB on Spectrum-1, 38 # and about 17MB on Spectrum-2. [all …]
|
| /linux/tools/testing/selftests/drivers/net/hw/ |
| H A D | devlink_port_split.py | 2 # SPDX-License-Identifier: GPL-2.0 12 # Test port split configuration using devlink-port lanes attribute. 21 # Kselftest framework requirement - SKIP code is 4 23 Port = collections.namedtuple('Port', 'bus_info name') variable 26 def run_command(cmd, should_fail=False): 49 def get_if_names(dev): 52 Return: Array of tuples (bus_info/port, if_name). 57 cmd = "devlink -j port show" 60 ports = json.loads(stdout)['port'] 64 for port in ports: [all …]
|
| H A D | iou-zcrx.py | 2 # SPDX-License-Identifier: GPL-2.0 11 def _get_current_settings(cfg): 12 output = ethtool(f"-g {cfg.ifname}", json=True)[0] 13 return (output['rx'], output['hds-thresh']) 16 def _get_combined_channels(cfg): 17 output = ethtool(f"-l {cfg.ifname}").stdout 22 def _create_rss_ctx(cfg, chan): 23 output = ethtool(f"-X {cfg.ifname} context new start {chan} equal 1").stdout 26 return (ctx_id, defer(ethtool, f"-X {cfg.ifname} delete context {ctx_id}")) 29 def _set_flow_rule(cfg, port, chan): argument [all …]
|
| H A D | rss_ctx.py | 2 # SPDX-License-Identifier: GPL-2.0 16 def _rss_key_str(key): 20 def _rss_key_rand(length): 24 def _rss_key_check(cfg, data=None, context=0): 27 if 'rss-hash-key' not in data: 29 non_zero = [x for x in data['rss-hash-ke 85 _send_traffic_check(cfg, port, name, params) global() argument [all...] |
| H A D | devmem.py | 2 # SPDX-License-Identifier: GPL-2.0 12 def require_devmem(cfg): 14 probe_command = f"{cfg.bin_local} -f {cfg.ifname}" 23 def check_rx(cfg) -> None: 26 port = rand_port() 27 socat = f"socat -u - TC [all...] |
| H A D | devlink_rate_tc_bw.py | 2 # SPDX-License-Identifier: GPL-2.0 8 This test suite verifies the functionality of devlink-rate traffic class (TC) 14 ---------------- 15 - Creates 1 VF 16 - Establishes a bridge connecting the VF representor and the uplink representor 17 - Sets up 2 VLAN interfaces on the VF with different VLAN IDs (101, 102) 18 - Configures different traffic classes (TC3 and TC4) for each VLAN 21 ---------- 23 - Verifies that without TC mapping, bandwidth is NOT distributed according to 25 - This test should fail if bandwidth matches the 80/20 split without TC [all …]
|
| H A D | tso.py | 2 # SPDX-License-Identifier: GPL-2.0 18 def sock_wait_drain(sock, max_wait=1000): 30 def tcp_sock_get_retrans(sock): 36 def run_one_stream(cfg, ipver, remote_v4, remote_v6, should_lso): 39 port = rand_port() 40 listen_cmd = f"socat -{ipver} -t 2 - [all...] |
| H A D | rss_api.py | 2 # SPDX-License-Identifier: GPL-2.0 18 def _require_2qs(cfg): 19 qcnt = len(glob.glob(f"/sys/class/net/{cfg.ifname}/queues/rx-*")) 25 def _ethtool_create(cfg, act, opts): 29 return int(output.split()[-1]) 32 def _ethtool_get_cfg(cfg, fl_type, to_nl=False): 33 descr = ethtool(f"-n {cfg.ifname} rx-flow-hash {fl_type}").stdout 37 "IP SA": "ip-src", 38 "IP DA": "ip-dst", 39 "L4 bytes 0 & 1 [TCP/UDP src port]": "l4-b-0-1", [all …]
|
| /linux/tools/testing/selftests/drivers/net/ |
| H A D | xdp.py | 2 # SPDX-License-Identifier: GPL-2.0 24 PORT = 1 # Port configuration to communicate with the remote host variable in TestConfig 56 def _exchg_udp(cfg, port, test_string): argument 62 port: Port number to use for the UDP communication. 70 rx_udp_cmd = f"socat -{cfg.addr_ipver} -T 2 -u UDP-RECV:{port},reuseport STDOUT" 71 tx_udp_cmd = f"echo -n {test_string} | socat -t 2 -u STDIN UDP:{cfg.baddr}:{port}" 74 wait_port_listen(port, proto="udp") 80 def _test_udp(cfg, port, size=256): argument 86 port: Port number to use for the UDP communication. 93 recvd_str = _exchg_udp(cfg, port, test_str) [all …]
|
| H A D | ping.py | 2 # SPDX-License-Identifier: GPL-2.0 14 def _test_v4(cfg) -> None: 18 cmd("ping -c 1 -W0.5 " + cfg.remote_addr_v["4"]) 19 cmd("ping -c 1 -W0.5 " + cfg.addr_v["4"], host=cfg.remote) 20 cmd("ping -s 65000 -c 1 -W0.5 " + cfg.remote_addr_v["4"]) 21 cmd("ping -s 65000 -c 1 -W0.5 " + cfg.addr_v["4"], host=cfg.remote) 23 def _test_v6(cfg) -> None: 27 cmd("ping -c 1 -W5 " + cfg.remote_addr_v["6"]) 28 cmd("ping -c 1 -W5 " + cfg.addr_v["6"], host=cfg.remote) 29 cmd("ping -s 65000 -c 1 -W0.5 " + cfg.remote_addr_v["6"]) [all …]
|
| H A D | napi_id.py | 2 # SPDX-License-Identifier: GPL-2.0 8 def test_napi_id(cfg) -> None: 9 port = rand_port() 10 listen_cmd = f"{cfg.test_dir}/napi_id_helper {cfg.addr} {port}" 13 cmd(f"echo a | socat - TCP:{cfg.baddr}:{port}", host=cfg.remote, shell=True) 17 def main() -> None:
|
| /linux/tools/testing/selftests/drivers/net/lib/py/ |
| H A D | load.py | 1 # SPDX-License-Identifier: GPL-2.0 9 def __init__(self, env, port=None): argument 14 self.port = rand_port() if port is None else port 15 self._iperf_server = cmd(f"iperf3 -s -1 -p {self.port}", background=True) 16 wait_port_listen(self.port) 18 self._iperf_client = cmd(f"iperf3 -c {env.addr} -P 16 -p {self.port} -t 86400", 26 def _wait_pkts(self, pkt_cnt=None, pps=None): 31 … pkt_start = ip("-s link show dev " + self.env.ifname, json=True)[0]["stats64"]["rx"]["packets"] 34 … pkt_now = ip("-s link show dev " + self.env.ifname, json=True)[0]["stats64"]["rx"]["packets"] 36 if pkt_now - pkt_start > pps / 10: [all …]
|
| /linux/tools/testing/selftests/net/lib/py/ |
| H A D | utils.py | 1 # SPDX-License-Identifier: GPL-2.0 13 def __init__(self, msg, cmd_obj): 18 def fd_read_timeout(fd, timeout): 34 def __init__(self, comm, shell=None, fail=True, ns=None, background=False, 77 def process(self, terminate=True, fail=None, timeout=5): 86 self.stdout = stdout.decode("utf-8") 87 self.stderr = stderr.decode("utf-8") 93 if len(stderr) > 0 and stderr[- 236 wait_port_listen(port, proto="tcp", ns=None, host=None, sleep=0.005, deadline=5) global() argument [all...] |
| /linux/tools/usb/ |
| H A D | p9_fwd.py | 2 # SPDX-License-Identifier: GPL-2.0 15 def path_from_usb_dev(dev): 23 return f"{dev.bus}-{dev_path}" 32 def _log_hexdump(data): 43 def __init__(self, server, vid, pid, path): 52 def find_filter(dev): 69 # we have to detach the usb-storage driver from multi gadget since 70 # stall option could be set, which will lead to spontaneous port 105 def c2s(self): 124 data += self.ep_in.read(size - len(data)) [all …]
|
| /linux/scripts/gdb/linux/ |
| H A D | proc.py | 1 # SPDX-License-Identifier: GPL-2.0 29 def __init__(self): 30 super(LxCmdLine, self).__init__("lx-cmdline", gdb.COMMAND_DATA) 32 def invoke(self, arg, from_tty): 43 def __init__(self): 44 super(LxVersion, self).__init__("lx-version", gdb.COMMAND_DATA) 46 def invoke(self, arg, from_tty): 58 def get_resources(resource, depth): 70 def show_lx_resources(resource_str): 78 "{0:0{1}x}-".format(start, width) + [all …]
|
| /linux/Documentation/scsi/ |
| H A D | advansys.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 RISC-based, Bus-Mastering, Fast (10 Mhz) and Ultra (20 Mhz) Narrow 9 (8-bit transfer) SCSI Host Adapters for the ISA, EISA, VL, and PCI 10 buses and RISC-based, Bus-Mastering, Ultra (20 Mhz) Wide (16-bit 21 - ABP-480 - Bus-Master CardBus (16 CDB) 24 - ABP510/5150 - Bus-Master ISA (240 CDB) 25 - ABP5140 - Bus-Master ISA PnP (16 CDB) 26 - ABP5142 - Bus-Master ISA PnP with floppy (16 CDB) 27 - ABP902/3902 - Bus-Master PCI (16 CDB) 28 - ABP3905 - Bus-Master PCI (16 CDB) [all …]
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_ptp_hw.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 67 * struct ice_phy_reg_info_eth56g - ETH56G PHY register parameters 113 * different link speeds, either the deskew marker for multi-lane link speeds 114 * or the Reed Solomon gearbox marker for RS-FEC. 134 * struct ice_eth56g_mac_reg_cfg - MAC config values for specific PTP registers 153 u8 def; member 158 u8 def; member 162 u8 def; member 166 u8 def; member 170 u8 def; member [all …]
|
| /linux/tools/power/pm-graph/ |
| H A D | README | 8 pm-graph: suspend/resume/boot timing analysis tools 11 …Home Page: https://www.intel.com/content/www/us/en/developer/topic-technology/open/pm-graph/overvi… 13 Report bugs/issues at bugzilla.kernel.org Tools/pm-graph 14 - https://bugzilla.kernel.org/buglist.cgi?component=pm-graph&product=Tools 17 - Getting Started: 20 - Feature Summary: 21 https://www.intel.com/content/www/us/en/developer/topic-technology/open/pm-graph/features.html 23 - upstream version in git: 24 git clone https://github.com/intel/pm-graph/ 27 - Overview [all …]
|
| /linux/tools/net/ynl/pyynl/ |
| H A D | ethtool.py | 2 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 15 def args_to_req(ynl, op_name, args, req): 17 Verify and convert command-line arguments to the ynl-compatible request. 20 valid_attrs.remove('header') # not user-provided 42 def print_field(reply, *desc): 44 Pretty-print a set of fields from the reply. desc specifies the 70 def print_speed(name, value): 72 Print out the speed-like strings from the value dict. 74 speed_re = re.compile(r'[0-9]+base[^/]+/.+') 78 def doit(ynl, args, op_name): [all …]
|
| /linux/tools/testing/selftests/net/openvswitch/ |
| H A D | ovs-dpctl.py | 2 # SPDX-License-Identifier: GPL-2.0 68 def macstr(mac): 73 def strcspn(str1, str2): 76 if str2.find(char) != -1: 82 def strspn(str1, str2): 85 if str2.find(char) == -1: 91 def intparse(statestr, defmask="0xffffffff"): 97 if firstnum[- [all...] |
| /linux/drivers/net/ethernet/sun/ |
| H A D | sunvnet_common.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 14 #define VNET_TX_WAKEUP_THRESH(dr) ((dr)->pending / 4) 52 /* Structure to describe a vnet-port or vsw-port in the MD. 54 * port, and the net_device can be found from ->dev. If the 55 * vsw bit is not set, the net_device is available from ->vp->dev. 99 #define VNET_PORT_HASH_MASK (VNET_PORT_HASH_SIZE - 1) 128 /* Def used by common code to get the net_device from the proper location */ 130 ((__port)->vsw ? (__port)->dev : (__port)->vp->dev) 151 void sunvnet_port_free_tx_bufs_common(struct vnet_port *port); 152 void vnet_port_reset(struct vnet_port *port); [all …]
|
| /linux/Documentation/networking/device_drivers/ethernet/intel/ |
| H A D | ice.rst | 1 .. SPDX-License-Identifier: GPL-2.0+ 8 Copyright(c) 2018-2021 Intel Corporation. 13 - Overview 14 - Identifying Your Adapter 15 - Important Notes 16 - Additional Features & Configurations 17 - Performance Optimization 28 This driver supports XDP (Express Data Path) and AF_XDP zero-copy. Note that 43 ------------------------------------------- 54 1) Make sure that your system's physical memory is in a high-performance [all …]
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
| H A D | dm.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2009-2012 Realtek Corporation.*/ 7 #include "def.h" 14 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl92cu_dm_dynamic_txpower() 18 if (!rtlpriv->dm.dynamic_txpower_enable) in rtl92cu_dm_dynamic_txpower() 21 if (rtlpriv->dm.dm_flag & HAL_DM_HIPWR_DISABLE) { in rtl92cu_dm_dynamic_txpower() 22 rtlpriv->dm.dynamic_txhighpower_lvl = TXHIGHPWRLEVEL_NORMAL; in rtl92cu_dm_dynamic_txpower() 26 if ((mac->link_state < MAC80211_LINKED) && in rtl92cu_dm_dynamic_txpower() 27 (rtlpriv->dm.entry_min_undec_sm_pwdb == 0)) { in rtl92cu_dm_dynamic_txpower() 31 rtlpriv->dm.dynamic_txhighpower_lvl = TXHIGHPWRLEVEL_NORMAL; in rtl92cu_dm_dynamic_txpower() [all …]
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
| H A D | dm.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2009-2012 Realtek Corporation.*/ 9 #include "def.h" 17 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl92ce_dm_dynamic_txpower() 21 if (!rtlpriv->dm.dynamic_txpower_enable) in rtl92ce_dm_dynamic_txpower() 24 if (rtlpriv->dm.dm_flag & HAL_DM_HIPWR_DISABLE) { in rtl92ce_dm_dynamic_txpower() 25 rtlpriv->dm.dynamic_txhighpower_lvl = TXHIGHPWRLEVEL_NORMAL; in rtl92ce_dm_dynamic_txpower() 29 if ((mac->link_state < MAC80211_LINKED) && in rtl92ce_dm_dynamic_txpower() 30 (rtlpriv->dm.entry_min_undec_sm_pwdb == 0)) { in rtl92ce_dm_dynamic_txpower() 34 rtlpriv->dm.dynamic_txhighpower_lvl = TXHIGHPWRLEVEL_NORMAL; in rtl92ce_dm_dynamic_txpower() [all …]
|
| /linux/drivers/soundwire/ |
| H A D | mipi_disco.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) 2 // Copyright(c) 2015-17 Intel Corporation. 47 * sdw_master_read_prop() - Read Master properties 52 struct sdw_master_prop *prop = &bus->prop; in sdw_master_read_prop() 60 device_property_read_u32(bus->dev, in sdw_master_read_prop() 61 "mipi-sdw-sw-interface-revision", in sdw_master_read_prop() 62 &prop->revision); in sdw_master_read_prop() 66 "mipi-sdw-link-%d-subproperties", bus->link_id); in sdw_master_read_prop() 68 link = device_get_named_child_node(bus->dev, name); in sdw_master_read_prop() 70 dev_err(bus->dev, "Master node %s not found\n", name); in sdw_master_read_prop() [all …]
|