From 4ef110fd2c501b718344c72d495ad7e16d2bd465 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sat, 30 Dec 2023 23:25:20 +0100 Subject: T5474: establish common file name pattern for XML conf mode commands We will use _ as CLI level divider. The XML definition filename and also the Python helper should match the CLI node. Example: set interfaces ethernet -> interfaces_ethernet.xml.in set interfaces bond -> interfaces_bond.xml.in set service dhcp-server -> service_dhcp-server-xml.in --- interface-definitions/interfaces_ethernet.xml.in | 217 +++++++++++++++++++++++ 1 file changed, 217 insertions(+) create mode 100644 interface-definitions/interfaces_ethernet.xml.in (limited to 'interface-definitions/interfaces_ethernet.xml.in') diff --git a/interface-definitions/interfaces_ethernet.xml.in b/interface-definitions/interfaces_ethernet.xml.in new file mode 100644 index 000000000..4e55bac7c --- /dev/null +++ b/interface-definitions/interfaces_ethernet.xml.in @@ -0,0 +1,217 @@ + + + + + Network interfaces + + + + + Ethernet Interface + 318 + + ethN + Ethernet interface name + + + ((eth|lan)[0-9]+|(eno|ens|enp|enx).+) + + Invalid Ethernet interface name + + + #include + #include + #include + #include + + + Disable Ethernet flow control (pause frames) + + + + #include + #include + + + Duplex mode + + auto half full + + + auto + Auto negotiation + + + half + Half duplex + + + full + Full duplex + + + (auto|half|full) + + duplex must be auto, half or full + + auto + + #include + #include + #include + #include + #include + #include + #include + + + Configurable offload options + + + + + Enable Generic Receive Offload + + + + + + Enable Generic Segmentation Offload + + + + + + Enable Hardware Flow Offload + + + + + + Enable Large Receive Offload + + + + + + Enable Receive Packet Steering + + + + + + Enable Receive Flow Steering + + + + + + Enable Scatter-Gather + + + + + + Enable TCP Segmentation Offloading + + + + + + + + Link speed + + auto 10 100 1000 2500 5000 10000 25000 40000 50000 100000 + + + auto + Auto negotiation + + + 10 + 10 Mbit/sec + + + 100 + 100 Mbit/sec + + + 1000 + 1 Gbit/sec + + + 2500 + 2.5 Gbit/sec + + + 5000 + 5 Gbit/sec + + + 10000 + 10 Gbit/sec + + + 25000 + 25 Gbit/sec + + + 40000 + 40 Gbit/sec + + + 50000 + 50 Gbit/sec + + + 100000 + 100 Gbit/sec + + + (auto|10|100|1000|2500|5000|10000|25000|40000|50000|100000) + + Speed must be auto, 10, 100, 1000, 2500, 5000, 10000, 25000, 40000, 50000 or 100000 + + auto + + + + Shared buffer between the device driver and NIC + + + + + RX ring buffer + + u32:80-16384 + ring buffer size + + + + + + + + + TX ring buffer + + u32:80-16384 + ring buffer size + + + + + + + + + #include + #include + #include + #include + + + + + -- cgit v1.2.3