aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe/ixgbe_dcb.c
diff options
context:
space:
mode:
authorJohn Fastabend <john.r.fastabend@intel.com>2011-03-08 23:46:16 -0500
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2011-03-12 07:14:48 -0500
commit1390a59452a0895d3fea5b5504fa75ba36c13a74 (patch)
tree8535968cc4b9c6acfbc28cef156477b094b139ea /drivers/net/ixgbe/ixgbe_dcb.c
parent6fb456a07c68913516da9de90d3849ee9821dea8 (diff)
ixgbe: DCB, set minimum bandwidth per traffic class
DCB provides a guaranteed bandwidth in the case with 0% bandwidth then no bandwidth is guaranteed. However the traffic class should still be able to transmit traffic. For this to work the traffic class must be given the minimum credits required to send a frame. Signed-off-by: John Fastabend <john.r.fastabend@intel.com> Tested-by: Ross Brattain <ross.b.brattain@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_dcb.c')
-rw-r--r--drivers/net/ixgbe/ixgbe_dcb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ixgbe/ixgbe_dcb.c b/drivers/net/ixgbe/ixgbe_dcb.c
index e7b551af573..41c529fac0a 100644
--- a/drivers/net/ixgbe/ixgbe_dcb.c
+++ b/drivers/net/ixgbe/ixgbe_dcb.c
@@ -64,7 +64,7 @@ s32 ixgbe_ieee_credits(__u8 *bw, __u16 *refill, __u16 *max, int max_frame)
64 val = min_credit; 64 val = min_credit;
65 refill[i] = val; 65 refill[i] = val;
66 66
67 max[i] = (bw[i] * MAX_CREDIT)/100; 67 max[i] = bw[i] ? (bw[i] * MAX_CREDIT)/100 : min_credit;
68 } 68 }
69 return 0; 69 return 0;
70} 70}