Skip to content

Commit 22a6538

Browse files
committed
Merge branch 'sharady-fcoe-designV2'
2 parents 48da600 + 8fbfea5 commit 22a6538

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

xapi/design/fcoe-nics.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,49 +2,50 @@
22
title: FCoE capable NICs
33
layout: default
44
design_doc: true
5-
revision: 1
5+
revision: 2
66
status: proposed
77
design_review: 120
88
---
99

1010
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`.
1212

1313
Introduction
1414
------------
1515

1616
* 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.
2020

21-
PIF_metrics
21+
PIF Object
2222
-------
2323

2424
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"`.
2727

2828
Xapi Changes
2929
------
3030

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.
3435

3536
XCP-Networkd Changes
3637
------
3738

3839
New function:
3940
* Boolean `bool is_fcoe_supported (string)`
4041
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.
4243

4344
Defaults, Installation and Upgrade
4445
------------------------
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"`
4849

4950

5051
Command Line Interface

0 commit comments

Comments
 (0)