summaryrefslogtreecommitdiffstats
path: root/dumps/att-walk-nic
diff options
context:
space:
mode:
authorEddy Pedroni <epedroni@pm.me>2024-01-20 09:21:22 +0100
committerEddy Pedroni <epedroni@pm.me>2024-01-20 09:21:22 +0100
commit16da39271c76b903a80f313e3f7663bbd17afac7 (patch)
tree9d64f04075a25ed46f28a1f3eac7be92e4e19bd6 /dumps/att-walk-nic
Initial commit, basic udev rules and dummy action script
Diffstat (limited to 'dumps/att-walk-nic')
-rw-r--r--dumps/att-walk-nic366
1 files changed, 366 insertions, 0 deletions
diff --git a/dumps/att-walk-nic b/dumps/att-walk-nic
new file mode 100644
index 0000000..9fcbc19
--- /dev/null
+++ b/dumps/att-walk-nic
@@ -0,0 +1,366 @@
+
+Udevadm info starts with the device specified by the devpath and then
+walks up the chain of parent devices. It prints for every device
+found, all possible attributes in the udev rules key format.
+A rule to match, can be composed by the attributes of the device
+and the attributes from one single parent device.
+
+ looking at device '/devices/pci0000:00/0000:00:08.3/0000:c3:00.4/usb8/8-1/8-1.4/8-1.4:1.0/net/enp195s0f4u1u4':
+ KERNEL=="enp195s0f4u1u4"
+ SUBSYSTEM=="net"
+ DRIVER==""
+ ATTR{addr_assign_type}=="0"
+ ATTR{addr_len}=="6"
+ ATTR{address}=="ac:91:a1:fe:97:bf"
+ ATTR{broadcast}=="ff:ff:ff:ff:ff:ff"
+ ATTR{carrier_changes}=="0"
+ ATTR{carrier_down_count}=="0"
+ ATTR{carrier_up_count}=="0"
+ ATTR{dev_id}=="0x0"
+ ATTR{dev_port}=="0"
+ ATTR{flags}=="0x1002"
+ ATTR{gro_flush_timeout}=="0"
+ ATTR{ifalias}==""
+ ATTR{ifindex}=="3"
+ ATTR{iflink}=="3"
+ ATTR{link_mode}=="0"
+ ATTR{mtu}=="1500"
+ ATTR{name_assign_type}=="4"
+ ATTR{napi_defer_hard_irqs}=="0"
+ ATTR{netdev_group}=="0"
+ ATTR{operstate}=="down"
+ ATTR{power/control}=="auto"
+ ATTR{power/runtime_active_time}=="0"
+ ATTR{power/runtime_status}=="unsupported"
+ ATTR{power/runtime_suspended_time}=="0"
+ ATTR{proto_down}=="0"
+ ATTR{queues/rx-0/rps_cpus}=="0000"
+ ATTR{queues/rx-0/rps_flow_cnt}=="0"
+ ATTR{queues/tx-0/byte_queue_limits/hold_time}=="1000"
+ ATTR{queues/tx-0/byte_queue_limits/inflight}=="0"
+ ATTR{queues/tx-0/byte_queue_limits/limit}=="0"
+ ATTR{queues/tx-0/byte_queue_limits/limit_max}=="1879048192"
+ ATTR{queues/tx-0/byte_queue_limits/limit_min}=="0"
+ ATTR{queues/tx-0/tx_maxrate}=="0"
+ ATTR{queues/tx-0/tx_timeout}=="0"
+ ATTR{queues/tx-0/xps_rxqs}=="0"
+ ATTR{statistics/collisions}=="0"
+ ATTR{statistics/multicast}=="0"
+ ATTR{statistics/rx_bytes}=="0"
+ ATTR{statistics/rx_compressed}=="0"
+ ATTR{statistics/rx_crc_errors}=="0"
+ ATTR{statistics/rx_dropped}=="0"
+ ATTR{statistics/rx_errors}=="0"
+ ATTR{statistics/rx_fifo_errors}=="0"
+ ATTR{statistics/rx_frame_errors}=="0"
+ ATTR{statistics/rx_length_errors}=="0"
+ ATTR{statistics/rx_missed_errors}=="0"
+ ATTR{statistics/rx_nohandler}=="0"
+ ATTR{statistics/rx_over_errors}=="0"
+ ATTR{statistics/rx_packets}=="0"
+ ATTR{statistics/tx_aborted_errors}=="0"
+ ATTR{statistics/tx_bytes}=="0"
+ ATTR{statistics/tx_carrier_errors}=="0"
+ ATTR{statistics/tx_compressed}=="0"
+ ATTR{statistics/tx_dropped}=="0"
+ ATTR{statistics/tx_errors}=="0"
+ ATTR{statistics/tx_fifo_errors}=="0"
+ ATTR{statistics/tx_heartbeat_errors}=="0"
+ ATTR{statistics/tx_packets}=="0"
+ ATTR{statistics/tx_window_errors}=="0"
+ ATTR{threaded}=="0"
+ ATTR{tx_queue_len}=="1000"
+ ATTR{type}=="1"
+
+ looking at parent device '/devices/pci0000:00/0000:00:08.3/0000:c3:00.4/usb8/8-1/8-1.4/8-1.4:1.0':
+ KERNELS=="8-1.4:1.0"
+ SUBSYSTEMS=="usb"
+ DRIVERS=="r8152"
+ ATTRS{authorized}=="1"
+ ATTRS{bAlternateSetting}==" 0"
+ ATTRS{bInterfaceClass}=="ff"
+ ATTRS{bInterfaceNumber}=="00"
+ ATTRS{bInterfaceProtocol}=="00"
+ ATTRS{bInterfaceSubClass}=="ff"
+ ATTRS{bNumEndpoints}=="03"
+ ATTRS{supports_autosuspend}=="1"
+
+ looking at parent device '/devices/pci0000:00/0000:00:08.3/0000:c3:00.4/usb8/8-1/8-1.4':
+ KERNELS=="8-1.4"
+ SUBSYSTEMS=="usb"
+ DRIVERS=="r8152-cfgselector"
+ ATTRS{authorized}=="1"
+ ATTRS{avoid_reset_quirk}=="0"
+ ATTRS{bConfigurationValue}=="1"
+ ATTRS{bDeviceClass}=="00"
+ ATTRS{bDeviceProtocol}=="00"
+ ATTRS{bDeviceSubClass}=="00"
+ ATTRS{bMaxPacketSize0}=="9"
+ ATTRS{bMaxPower}=="256mA"
+ ATTRS{bNumConfigurations}=="3"
+ ATTRS{bNumInterfaces}==" 1"
+ ATTRS{bcdDevice}=="3310"
+ ATTRS{bmAttributes}=="a0"
+ ATTRS{busnum}=="8"
+ ATTRS{configuration}==""
+ ATTRS{devnum}=="6"
+ ATTRS{devpath}=="1.4"
+ ATTRS{idProduct}=="8153"
+ ATTRS{idVendor}=="0bda"
+ ATTRS{ltm_capable}=="yes"
+ ATTRS{manufacturer}=="Realtek"
+ ATTRS{maxchild}=="0"
+ ATTRS{power/active_duration}=="3894"
+ ATTRS{power/autosuspend}=="2"
+ ATTRS{power/autosuspend_delay_ms}=="2000"
+ ATTRS{power/connected_duration}=="1607260"
+ ATTRS{power/control}=="auto"
+ ATTRS{power/level}=="auto"
+ ATTRS{power/persist}=="1"
+ ATTRS{power/runtime_active_time}=="3803"
+ ATTRS{power/runtime_status}=="suspended"
+ ATTRS{power/runtime_suspended_time}=="1603368"
+ ATTRS{power/wakeup}=="enabled"
+ ATTRS{power/wakeup_abort_count}=="0"
+ ATTRS{power/wakeup_active}=="0"
+ ATTRS{power/wakeup_active_count}=="0"
+ ATTRS{power/wakeup_count}=="0"
+ ATTRS{power/wakeup_expire_count}=="0"
+ ATTRS{power/wakeup_last_time_ms}=="0"
+ ATTRS{power/wakeup_max_time_ms}=="0"
+ ATTRS{power/wakeup_total_time_ms}=="0"
+ ATTRS{product}=="USB 10/100/1000 LAN"
+ ATTRS{quirks}=="0x400"
+ ATTRS{removable}=="fixed"
+ ATTRS{remove}=="(not readable)"
+ ATTRS{rx_lanes}=="1"
+ ATTRS{serial}=="0133000001"
+ ATTRS{speed}=="5000"
+ ATTRS{tx_lanes}=="1"
+ ATTRS{urbnum}=="313"
+ ATTRS{version}==" 3.20"
+
+ looking at parent device '/devices/pci0000:00/0000:00:08.3/0000:c3:00.4/usb8/8-1':
+ KERNELS=="8-1"
+ SUBSYSTEMS=="usb"
+ DRIVERS=="usb"
+ ATTRS{authorized}=="1"
+ ATTRS{avoid_reset_quirk}=="0"
+ ATTRS{bConfigurationValue}=="1"
+ ATTRS{bDeviceClass}=="09"
+ ATTRS{bDeviceProtocol}=="03"
+ ATTRS{bDeviceSubClass}=="00"
+ ATTRS{bMaxPacketSize0}=="9"
+ ATTRS{bMaxPower}=="0mA"
+ ATTRS{bNumConfigurations}=="1"
+ ATTRS{bNumInterfaces}==" 1"
+ ATTRS{bcdDevice}=="0117"
+ ATTRS{bmAttributes}=="e0"
+ ATTRS{busnum}=="8"
+ ATTRS{configuration}==""
+ ATTRS{devnum}=="2"
+ ATTRS{devpath}=="1"
+ ATTRS{idProduct}=="0409"
+ ATTRS{idVendor}=="0bda"
+ ATTRS{ltm_capable}=="no"
+ ATTRS{manufacturer}=="Generic"
+ ATTRS{maxchild}=="4"
+ ATTRS{physical_location/dock}=="no"
+ ATTRS{physical_location/horizontal_position}=="center"
+ ATTRS{physical_location/lid}=="no"
+ ATTRS{physical_location/panel}=="left"
+ ATTRS{physical_location/vertical_position}=="center"
+ ATTRS{power/active_duration}=="5984"
+ ATTRS{power/autosuspend}=="0"
+ ATTRS{power/autosuspend_delay_ms}=="0"
+ ATTRS{power/connected_duration}=="1609317"
+ ATTRS{power/control}=="auto"
+ ATTRS{power/level}=="auto"
+ ATTRS{power/runtime_active_time}=="5830"
+ ATTRS{power/runtime_status}=="suspended"
+ ATTRS{power/runtime_suspended_time}=="1603336"
+ ATTRS{power/wakeup}=="disabled"
+ ATTRS{power/wakeup_abort_count}==""
+ ATTRS{power/wakeup_active}==""
+ ATTRS{power/wakeup_active_count}==""
+ ATTRS{power/wakeup_count}==""
+ ATTRS{power/wakeup_expire_count}==""
+ ATTRS{power/wakeup_last_time_ms}==""
+ ATTRS{power/wakeup_max_time_ms}==""
+ ATTRS{power/wakeup_total_time_ms}==""
+ ATTRS{product}=="USB3.2 Hub"
+ ATTRS{quirks}=="0x0"
+ ATTRS{removable}=="removable"
+ ATTRS{remove}=="(not readable)"
+ ATTRS{rx_lanes}=="1"
+ ATTRS{speed}=="5000"
+ ATTRS{tx_lanes}=="1"
+ ATTRS{urbnum}=="88"
+ ATTRS{version}==" 3.20"
+
+ looking at parent device '/devices/pci0000:00/0000:00:08.3/0000:c3:00.4/usb8':
+ KERNELS=="usb8"
+ SUBSYSTEMS=="usb"
+ DRIVERS=="usb"
+ ATTRS{authorized}=="1"
+ ATTRS{authorized_default}=="1"
+ ATTRS{avoid_reset_quirk}=="0"
+ ATTRS{bConfigurationValue}=="1"
+ ATTRS{bDeviceClass}=="09"
+ ATTRS{bDeviceProtocol}=="03"
+ ATTRS{bDeviceSubClass}=="00"
+ ATTRS{bMaxPacketSize0}=="9"
+ ATTRS{bMaxPower}=="0mA"
+ ATTRS{bNumConfigurations}=="1"
+ ATTRS{bNumInterfaces}==" 1"
+ ATTRS{bcdDevice}=="0606"
+ ATTRS{bmAttributes}=="e0"
+ ATTRS{busnum}=="8"
+ ATTRS{configuration}==""
+ ATTRS{devnum}=="1"
+ ATTRS{devpath}=="0"
+ ATTRS{idProduct}=="0003"
+ ATTRS{idVendor}=="1d6b"
+ ATTRS{interface_authorized_default}=="1"
+ ATTRS{ltm_capable}=="yes"
+ ATTRS{manufacturer}=="Linux 6.6.10-arch1-1 xhci-hcd"
+ ATTRS{maxchild}=="1"
+ ATTRS{power/active_duration}=="7430"
+ ATTRS{power/autosuspend}=="0"
+ ATTRS{power/autosuspend_delay_ms}=="0"
+ ATTRS{power/connected_duration}=="7022864"
+ ATTRS{power/control}=="auto"
+ ATTRS{power/level}=="auto"
+ ATTRS{power/runtime_active_time}=="7695"
+ ATTRS{power/runtime_status}=="suspended"
+ ATTRS{power/runtime_suspended_time}=="7013297"
+ ATTRS{power/wakeup}=="disabled"
+ ATTRS{power/wakeup_abort_count}==""
+ ATTRS{power/wakeup_active}==""
+ ATTRS{power/wakeup_active_count}==""
+ ATTRS{power/wakeup_count}==""
+ ATTRS{power/wakeup_expire_count}==""
+ ATTRS{power/wakeup_last_time_ms}==""
+ ATTRS{power/wakeup_max_time_ms}==""
+ ATTRS{power/wakeup_total_time_ms}==""
+ ATTRS{product}=="xHCI Host Controller"
+ ATTRS{quirks}=="0x0"
+ ATTRS{removable}=="unknown"
+ ATTRS{remove}=="(not readable)"
+ ATTRS{rx_lanes}=="1"
+ ATTRS{serial}=="0000:c3:00.4"
+ ATTRS{speed}=="10000"
+ ATTRS{tx_lanes}=="1"
+ ATTRS{urbnum}=="75"
+ ATTRS{version}==" 3.10"
+
+ looking at parent device '/devices/pci0000:00/0000:00:08.3/0000:c3:00.4':
+ KERNELS=="0000:c3:00.4"
+ SUBSYSTEMS=="pci"
+ DRIVERS=="xhci_hcd"
+ ATTRS{ari_enabled}=="0"
+ ATTRS{broken_parity_status}=="0"
+ ATTRS{class}=="0x0c0330"
+ ATTRS{consistent_dma_mask_bits}=="64"
+ ATTRS{current_link_speed}=="16.0 GT/s PCIe"
+ ATTRS{current_link_width}=="16"
+ ATTRS{d3cold_allowed}=="1"
+ ATTRS{device}=="0x15c1"
+ ATTRS{dma_mask_bits}=="64"
+ ATTRS{driver_override}=="(null)"
+ ATTRS{enable}=="1"
+ ATTRS{irq}=="54"
+ ATTRS{link/l0s_aspm}=="0"
+ ATTRS{link/l1_aspm}=="0"
+ ATTRS{local_cpulist}=="0-15"
+ ATTRS{local_cpus}=="ffff"
+ ATTRS{max_link_speed}=="16.0 GT/s PCIe"
+ ATTRS{max_link_width}=="16"
+ ATTRS{msi_bus}=="1"
+ ATTRS{msi_irqs/54}=="msi"
+ ATTRS{numa_node}=="-1"
+ ATTRS{power/control}=="on"
+ ATTRS{power/runtime_active_time}=="1611685"
+ ATTRS{power/runtime_status}=="active"
+ ATTRS{power/runtime_suspended_time}=="5409691"
+ ATTRS{power/wakeup}=="enabled"
+ ATTRS{power/wakeup_abort_count}=="0"
+ ATTRS{power/wakeup_active}=="0"
+ ATTRS{power/wakeup_active_count}=="1"
+ ATTRS{power/wakeup_count}=="0"
+ ATTRS{power/wakeup_expire_count}=="1"
+ ATTRS{power/wakeup_last_time_ms}=="5413969"
+ ATTRS{power/wakeup_max_time_ms}=="101"
+ ATTRS{power/wakeup_total_time_ms}=="101"
+ ATTRS{power_state}=="D0"
+ ATTRS{remove}=="(not readable)"
+ ATTRS{rescan}=="(not readable)"
+ ATTRS{reset}=="(not readable)"
+ ATTRS{reset_method}=="pm"
+ ATTRS{resource0}=="(not readable)"
+ ATTRS{revision}=="0x00"
+ ATTRS{subsystem_device}=="0x0006"
+ ATTRS{subsystem_vendor}=="0xf111"
+ ATTRS{vendor}=="0x1022"
+
+ looking at parent device '/devices/pci0000:00/0000:00:08.3':
+ KERNELS=="0000:00:08.3"
+ SUBSYSTEMS=="pci"
+ DRIVERS=="pcieport"
+ ATTRS{acpi_index}=="(not readable)"
+ ATTRS{ari_enabled}=="0"
+ ATTRS{broken_parity_status}=="0"
+ ATTRS{class}=="0x060400"
+ ATTRS{consistent_dma_mask_bits}=="32"
+ ATTRS{current_link_speed}=="16.0 GT/s PCIe"
+ ATTRS{current_link_width}=="16"
+ ATTRS{d3cold_allowed}=="1"
+ ATTRS{device}=="0x14eb"
+ ATTRS{dma_mask_bits}=="32"
+ ATTRS{driver_override}=="(null)"
+ ATTRS{enable}=="2"
+ ATTRS{irq}=="44"
+ ATTRS{label}=="(not readable)"
+ ATTRS{local_cpulist}=="0-15"
+ ATTRS{local_cpus}=="ffff"
+ ATTRS{max_link_speed}=="16.0 GT/s PCIe"
+ ATTRS{max_link_width}=="16"
+ ATTRS{msi_bus}=="1"
+ ATTRS{msi_irqs/44}=="msi"
+ ATTRS{numa_node}=="-1"
+ ATTRS{power/autosuspend_delay_ms}=="100"
+ ATTRS{power/control}=="on"
+ ATTRS{power/runtime_active_time}=="1666201"
+ ATTRS{power/runtime_status}=="active"
+ ATTRS{power/runtime_suspended_time}=="5355184"
+ ATTRS{power/wakeup}=="disabled"
+ ATTRS{power/wakeup_abort_count}==""
+ ATTRS{power/wakeup_active}==""
+ ATTRS{power/wakeup_active_count}==""
+ ATTRS{power/wakeup_count}==""
+ ATTRS{power/wakeup_expire_count}==""
+ ATTRS{power/wakeup_last_time_ms}==""
+ ATTRS{power/wakeup_max_time_ms}==""
+ ATTRS{power/wakeup_total_time_ms}==""
+ ATTRS{power_state}=="D0"
+ ATTRS{remove}=="(not readable)"
+ ATTRS{rescan}=="(not readable)"
+ ATTRS{reset}=="(not readable)"
+ ATTRS{reset_method}=="pm"
+ ATTRS{revision}=="0x00"
+ ATTRS{secondary_bus_number}=="195"
+ ATTRS{subordinate_bus_number}=="195"
+ ATTRS{subsystem_device}=="0xf111"
+ ATTRS{subsystem_vendor}=="0x0006"
+ ATTRS{vendor}=="0x1022"
+
+ looking at parent device '/devices/pci0000:00':
+ KERNELS=="pci0000:00"
+ SUBSYSTEMS==""
+ DRIVERS==""
+ ATTRS{power/control}=="auto"
+ ATTRS{power/runtime_active_time}=="0"
+ ATTRS{power/runtime_status}=="unsupported"
+ ATTRS{power/runtime_suspended_time}=="0"
+ ATTRS{waiting_for_supplier}=="0"
+