aboutsummaryrefslogtreecommitdiffstats
path: root/net/dcb
diff options
context:
space:
mode:
authorAnish Bhatt <anish@chelsio.com>2014-07-28 23:57:07 -0400
committerDavid S. Miller <davem@davemloft.net>2014-07-30 20:21:05 -0400
commit16eecd9be4b05e3216b8b12707aa6f51fb197903 (patch)
tree7a977163ae73a68afdbb468a7bc7076567af01e5 /net/dcb
parent2d871aa07136fe6e576bde63072cf33e2c664e95 (diff)
dcbnl : Fix misleading dcb_app->priority explanation
Current explanation of dcb_app->priority is wrong. It says priority is expected to be a 3-bit unsigned integer which is only true when working with DCBx-IEEE. Use of dcb_app->priority by DCBx-CEE expects it to be 802.1p user priority bitmap. Updated accordingly This affects the cxgb4 driver, but I will post those changes as part of a larger changeset shortly. Fixes: 3e29027af4372 ("dcbnl: add support for ieee8021Qaz attributes") Signed-off-by: Anish Bhatt <anish@chelsio.com> Acked-by: John Fastabend <john.r.fastabend@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dcb')
-rw-r--r--net/dcb/dcbnl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/dcb/dcbnl.c b/net/dcb/dcbnl.c
index c34af7a1d2d4..ca11d283bbeb 100644
--- a/net/dcb/dcbnl.c
+++ b/net/dcb/dcbnl.c
@@ -1776,7 +1776,7 @@ EXPORT_SYMBOL(dcb_getapp);
1776 * 1776 *
1777 * Priority 0 is an invalid priority in CEE spec. This routine 1777 * Priority 0 is an invalid priority in CEE spec. This routine
1778 * removes applications from the app list if the priority is 1778 * removes applications from the app list if the priority is
1779 * set to zero. 1779 * set to zero. Priority is expected to be 8-bit 802.1p user priority bitmap
1780 */ 1780 */
1781int dcb_setapp(struct net_device *dev, struct dcb_app *new) 1781int dcb_setapp(struct net_device *dev, struct dcb_app *new)
1782{ 1782{
@@ -1837,7 +1837,8 @@ EXPORT_SYMBOL(dcb_ieee_getapp_mask);
1837 * 1837 *
1838 * This adds Application data to the list. Multiple application 1838 * This adds Application data to the list. Multiple application
1839 * entries may exists for the same selector and protocol as long 1839 * entries may exists for the same selector and protocol as long
1840 * as the priorities are different. 1840 * as the priorities are different. Priority is expected to be a
1841 * 3-bit unsigned integer
1841 */ 1842 */
1842int dcb_ieee_setapp(struct net_device *dev, struct dcb_app *new) 1843int dcb_ieee_setapp(struct net_device *dev, struct dcb_app *new)
1843{ 1844{