]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ixgbe: update {P}FC thresholds to account for X540 and loopback
authorJohn Fastabend <john.r.fastabend@intel.com>
Tue, 23 Aug 2011 03:14:22 +0000 (03:14 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 14:11:43 +0000 (22:11 +0800)
commit77841a46295947df670767c3c2a11ff34cd00700
treec8370d3bfcb81a0df2ed4d17a286a01eba6e3d4c
parent38b7cb87d112496d9dd84ac93935f5a85abc1ba9
ixgbe: update {P}FC thresholds to account for X540 and loopback

Revise high and low threshold marks wrt flow control to account
for the X540 devices and latency introduced by the loopback
switch.

Without this it was in theory possible to drop frames on a
supposedly lossless link with X540 or SR-IOV enabled.

Previously we used a magic number in a define to calculate the
threshold values. This made it difficult to sort out exactly
which latencies were or were not being accounted for. Here
I was overly explicit and tried to used #define names that would
be recognizable after reading the IEEE 802.1Qbb specification.

(cherry picked from commit 9da712d2ede7e3e3a0da180351505310ee271773)
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>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/ixgbe/ixgbe_82598.c
drivers/net/ixgbe/ixgbe_common.c
drivers/net/ixgbe/ixgbe_dcb.h
drivers/net/ixgbe/ixgbe_dcb_82598.c
drivers/net/ixgbe/ixgbe_dcb_82599.c
drivers/net/ixgbe/ixgbe_main.c
drivers/net/ixgbe/ixgbe_type.h