aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnish Bhatt <anish@chelsio.com>2015-06-22 20:44:35 -0400
committerDavid S. Miller <davem@davemloft.net>2015-06-23 10:00:41 -0400
commit42bcce87d763b4d22dc6d3a0c0b60c6b49820de8 (patch)
tree3573f033e475833fd2782dbb4da589ea853b39d0
parente9fdaec0e0d40f548c2b79e147c7ffd2809d2a64 (diff)
dcb : Fix incorrect documentation for struct dcb_app
While IEEE and CEE use the same structure to store apps, the selector and priority fields for both are different. Only the priority field is explained, add documentation explaining how the selector field differs for both. cgdcbxd code shows an example of how selector fields differ. Signed-off-by: Anish Bhatt <anish@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--include/uapi/linux/dcbnl.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/uapi/linux/dcbnl.h b/include/uapi/linux/dcbnl.h
index 6497d7933d5b..3ea470f35e40 100644
--- a/include/uapi/linux/dcbnl.h
+++ b/include/uapi/linux/dcbnl.h
@@ -207,8 +207,7 @@ struct cee_pfc {
207#define IEEE_8021QAZ_APP_SEL_ANY 4 207#define IEEE_8021QAZ_APP_SEL_ANY 4
208 208
209/* This structure contains the IEEE 802.1Qaz APP managed object. This 209/* This structure contains the IEEE 802.1Qaz APP managed object. This
210 * object is also used for the CEE std as well. There is no difference 210 * object is also used for the CEE std as well.
211 * between the objects.
212 * 211 *
213 * @selector: protocol identifier type 212 * @selector: protocol identifier type
214 * @protocol: protocol of type indicated 213 * @protocol: protocol of type indicated
@@ -216,13 +215,18 @@ struct cee_pfc {
216 * 8-bit 802.1p user priority bitmap for CEE 215 * 8-bit 802.1p user priority bitmap for CEE
217 * 216 *
218 * ---- 217 * ----
219 * Selector field values 218 * Selector field values for IEEE 802.1Qaz
220 * 0 Reserved 219 * 0 Reserved
221 * 1 Ethertype 220 * 1 Ethertype
222 * 2 Well known port number over TCP or SCTP 221 * 2 Well known port number over TCP or SCTP
223 * 3 Well known port number over UDP or DCCP 222 * 3 Well known port number over UDP or DCCP
224 * 4 Well known port number over TCP, SCTP, UDP, or DCCP 223 * 4 Well known port number over TCP, SCTP, UDP, or DCCP
225 * 5-7 Reserved 224 * 5-7 Reserved
225 *
226 * Selector field values for CEE
227 * 0 Ethertype
228 * 1 Well known port number over TCP or UDP
229 * 2-3 Reserved
226 */ 230 */
227struct dcb_app { 231struct dcb_app {
228 __u8 selector; 232 __u8 selector;