/
ethernet.xml
105 lines (96 loc) · 3.1 KB
/
ethernet.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!--
-- Ethernet Service definition
-->
<service name="ethernet" interface="org.opensuse.Network.Ethernet" object-class="netif-ethernet">
<!-- This is the linkinfo returned in interface reports -->
<define name="duplex_t" type="uint32" constraint="enum">
<default value="0" />
<half value="1" />
<full value="2" />
<none value="3" /> <!-- autoneg not complete -->
</define>
<define name="port_t" type="uint32" constraint="enum">
<default value="0" />
<tp/>
<aui/>
<bnc/>
<mii/>
<fibre/>
</define>
<define name="wol-flag-mask" type="uint32" constraint="bitmap">
<phy bit="0"/>
<unicast bit="1"/>
<multicast bit="2"/>
<broadcast bit="3"/>
<arp bit="4"/>
<magic bit="5"/>
<secure-on bit="6"/>
</define>
<define name="configuration" class="dict">
<address type="ethernet-address"/>
<link-speed type="uint32"/>
<port-type type="port_t"/>
<duplex type="duplex_t" />
<autoneg-enable type="tristate"/>
<wake-on-lan class="dict">
<support type="wol-flag-mask"/> <!-- read-only system property -->
<options type="wol-flag-mask"/>
<sopass type="ethernet-address"/> <!-- write-only configuration -->
</wake-on-lan>
<offload class="dict">
<rx-csum type="tristate"/>
<tx-csum type="tristate"/>
<scatter-gather type="tristate"/>
<tso type="tristate"/>
<ufo type="tristate"/>
<gso type="tristate"/>
<gro type="tristate"/>
<lro type="tristate"/>
</offload>
<ring class="dict">
<tx type="uint32"/>
<rx type="uint32"/>
<rx-jumbo type="uint32"/>
<rx-mini type="uint32"/>
</ring>
<coalesce class="dict">
<adaptive-rx type="tristate"/>
<adaptive-tx type="tristate"/>
<rx-usecs type="uint32"/>
<rx-frames type="uint32"/>
<rx-usecs-irq type="uint32"/>
<rx-frames-irq type="uint32"/>
<tx-usecs type="uint32"/>
<tx-frames type="uint32"/>
<tx-usecs-irq type="uint32"/>
<tx-frames-irq type="uint32"/>
<stats-block-usecs type="uint32"/>
<pkt-rate-low type="uint32"/>
<rx-usecs-low type="uint32"/>
<rx-frames-low type="uint32"/>
<tx-usecs-low type="uint32"/>
<tx-frames-low type="uint32"/>
<pkt-rate-high type="uint32"/>
<rx-usecs-high type="uint32"/>
<rx-frames-high type="uint32"/>
<tx-usecs-high type="uint32"/>
<tx-frames-high type="uint32"/>
</coalesce>
</define>
<define name="properties" class="dict" extends="ethernet:configuration">
<permanent-address type="ethernet-address"/>
</define>
<method name="changeDevice">
<arguments>
<!-- First and only argument to changeDevice() method is a
-- "properties" dict.
-- The mapping info tells the client to take the device
-- configuration from the <ethernet> element, and to skip the
-- call to changeDevice() if that element isn't there.
-->
<config type="ethernet:configuration">
<meta:mapping document-node="/ethernet" skip-unless-present="true" />
</config>
</arguments>
</method>
</service>