|
2 | 2 | title: FCoE capable NICs |
3 | 3 | layout: default |
4 | 4 | design_doc: true |
5 | | -revision: 1 |
| 5 | +revision: 2 |
6 | 6 | status: proposed |
7 | 7 | design_review: 120 |
8 | 8 | --- |
9 | 9 |
|
10 | 10 | It has been possible to identify the NICs of a Host which can support FCoE. |
11 | | -This property can be listed in PIF object under PIF_metrics. |
| 11 | +This property can be listed in PIF object under capabilities field with key `FCoE`. |
12 | 12 |
|
13 | 13 | Introduction |
14 | 14 | ------------ |
15 | 15 |
|
16 | 16 | * FCoE supported on a NIC is a hardware property. With the help of dcbtool, we can identify which NIC support FCoE. |
17 | | -* The new field `fcoe-supported` added to PIF_metrics will have a boolean value. |
18 | | -* `True` will state NIC supports FCoE. `False` will state NIC does not supports FCoE. |
19 | | -* `fcoe-supported` field will be ReadOnly, This field cannot be modified by user. |
| 17 | +* The new field capabilites will be `(string -> string) map` in PIF object. For FCoE capability in PIF capabilties will have field set to `"FCoE" -> "Unsupported"`. |
| 18 | +* `Supported` string will state NIC supports FCoE. `Unsupported` string will state NIC does not supports FCoE. |
| 19 | +* Capabilties `(key, value)` field will be ReadOnly, This field cannot be modified by user. |
20 | 20 |
|
21 | | -PIF_metrics |
| 21 | +PIF Object |
22 | 22 | ------- |
23 | 23 |
|
24 | 24 | New field: |
25 | | -* Field `PIF_metrics.fcoe_supported` of type `bool`. |
26 | | -* Default value will be false |
| 25 | +* Field `PIF.capabilties` will be type `(string -> string) map`. |
| 26 | +* Default value of PIF capabilties will have field set to `"FCoE" -> "Unsupported"`. |
27 | 27 |
|
28 | 28 | Xapi Changes |
29 | 29 | ------ |
30 | 30 |
|
31 | | -* Set the field `fcoe_supported` to `true` or `false` depending on output of xcp-networkd call `is_fcoe_supported`. |
32 | | -* Field `fcoe_supported` can be set during `bring_pif_up` and `set_pif_metrics` call. |
33 | | -* Field `fcoe_supported` will be set everytime when xapi-restart. |
| 31 | +* Set the field capabilities `FCoE` key to `Unsupported` or `Supported` depending on output of xcp-networkd call `is_fcoe_supported`. |
| 32 | +* Field capabilities `FCoE` can be set during `introduce_internal` when the PIF is created. |
| 33 | +* Field capabilties `FCoE` can be updated during `refresh_all` during PIF scan. |
| 34 | +* The above field will be set everytime when xapi-restart. |
34 | 35 |
|
35 | 36 | XCP-Networkd Changes |
36 | 37 | ------ |
37 | 38 |
|
38 | 39 | New function: |
39 | 40 | * Boolean `bool is_fcoe_supported (string)` |
40 | 41 | Argument: the device_name for the PIF. |
41 | | -* This function returns `true` or false depending on dcbtool output for the device provided. |
| 42 | +* This function returns `true` or `false` depending on dcbtool output for the device provided. |
42 | 43 |
|
43 | 44 | Defaults, Installation and Upgrade |
44 | 45 | ------------------------ |
45 | | -* Any newly introduced PIF will have its `fcoe_supported` field as false until xcp-networkd call `is_fcoe_supported` sattes FCoE is supported on the NIC. |
46 | | -* It includes PIFs obtained after a fresh install of Xenserver, as well as PIFs created using `PIF.introduce` or `PIF.scan`. |
47 | | -* During an upgrade Xapi Restart will call `bring_pif_up` which then populate the `fcoe_supported` field. |
| 46 | +* Any newly introduced PIF will have its capabilties field set to `"FCoE" -> "Unsupported"` until xcp-networkd call `is_fcoe_supported` states FCoE is supported on the NIC. |
| 47 | +* It includes PIFs obtained after a fresh install of Xenserver, as well as PIFs created using `PIF.introduce` then `PIF.scan`. |
| 48 | +* During an upgrade Xapi Restart will call `refresh_all` which then populate the capabilties field set to `"FCoE"` -> `"Unsupported"` |
48 | 49 |
|
49 | 50 |
|
50 | 51 | Command Line Interface |
|
0 commit comments