Commit 42bcce87 authored by Anish Bhatt's avatar Anish Bhatt Committed by David S. Miller

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: default avatarAnish Bhatt <anish@chelsio.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e9fdaec0
...@@ -207,8 +207,7 @@ struct cee_pfc { ...@@ -207,8 +207,7 @@ struct cee_pfc {
#define IEEE_8021QAZ_APP_SEL_ANY 4 #define IEEE_8021QAZ_APP_SEL_ANY 4
/* This structure contains the IEEE 802.1Qaz APP managed object. This /* This structure contains the IEEE 802.1Qaz APP managed object. This
* object is also used for the CEE std as well. There is no difference * object is also used for the CEE std as well.
* between the objects.
* *
* @selector: protocol identifier type * @selector: protocol identifier type
* @protocol: protocol of type indicated * @protocol: protocol of type indicated
...@@ -216,13 +215,18 @@ struct cee_pfc { ...@@ -216,13 +215,18 @@ struct cee_pfc {
* 8-bit 802.1p user priority bitmap for CEE * 8-bit 802.1p user priority bitmap for CEE
* *
* ---- * ----
* Selector field values * Selector field values for IEEE 802.1Qaz
* 0 Reserved * 0 Reserved
* 1 Ethertype * 1 Ethertype
* 2 Well known port number over TCP or SCTP * 2 Well known port number over TCP or SCTP
* 3 Well known port number over UDP or DCCP * 3 Well known port number over UDP or DCCP
* 4 Well known port number over TCP, SCTP, UDP, or DCCP * 4 Well known port number over TCP, SCTP, UDP, or DCCP
* 5-7 Reserved * 5-7 Reserved
*
* Selector field values for CEE
* 0 Ethertype
* 1 Well known port number over TCP or UDP
* 2-3 Reserved
*/ */
struct dcb_app { struct dcb_app {
__u8 selector; __u8 selector;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment