diff options
author | David S. Miller <davem@davemloft.net> | 2018-01-14 12:25:04 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-14 12:25:04 -0500 |
commit | 564737f981fb4b4b3266901508bb9b90d9d43de8 (patch) | |
tree | 9dfbd6f5ed32f569db17ac1cb58d3a07f32db0d1 /drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c | |
parent | 5d498214afced560f13c1b0610583fc883439753 (diff) | |
parent | e23cf38fcaf42058888d4e42d6d3189bc5d9af8f (diff) |
Merge branch '10GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue
Jeff Kirsher says:
====================
10GbE Intel Wired LAN Driver Updates 2018-01-12
This series contains updates to ixgbe, fm10k and net core.
Alex updates the driver to remove a duplicate MAC address check and
verifies that we have not run out of resources to configure a MAC rule
in our filter table. Also do not assume that dev->num_tc was populated
and configured with the driver, since it can be configured via mqprio
without any hardware coordination. Fixed the recording of stats for
MACVLAN in ixgbe and fm10k instead of recording the receive queue on
MACVLAN offloaded frames. When handling a MACVLAN offload, we should
be stopping/starting traffic on our own queues instead of the upper
devices transmit queues. Fixed possible race conditions with the
MACVLAN cleanup with the interface cleanup on shutdown. With the
recent fixes to ixgbe, we can cap the number of queues regardless of
accel_priv being in use or not, since the actual number of queues are
being reported via real_num_tx_queues.
Tony fixes up the kernel documentation for ixgbe and ixgbevf to resolve
warnings when W=1 is used.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c')
-rw-r--r-- | drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c index 072ef3b5fc61..aaea8282bfd2 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c | |||
@@ -39,6 +39,10 @@ | |||
39 | * are the smallest unit programmable into the underlying | 39 | * are the smallest unit programmable into the underlying |
40 | * hardware. The IEEE 802.1Qaz specification do not use bandwidth | 40 | * hardware. The IEEE 802.1Qaz specification do not use bandwidth |
41 | * groups so this is much simplified from the CEE case. | 41 | * groups so this is much simplified from the CEE case. |
42 | * @bw: bandwidth index by traffic class | ||
43 | * @refill: refill credits index by traffic class | ||
44 | * @max: max credits by traffic class | ||
45 | * @max_frame: maximum frame size | ||
42 | */ | 46 | */ |
43 | static s32 ixgbe_ieee_credits(__u8 *bw, __u16 *refill, | 47 | static s32 ixgbe_ieee_credits(__u8 *bw, __u16 *refill, |
44 | __u16 *max, int max_frame) | 48 | __u16 *max, int max_frame) |
@@ -72,8 +76,10 @@ static s32 ixgbe_ieee_credits(__u8 *bw, __u16 *refill, | |||
72 | 76 | ||
73 | /** | 77 | /** |
74 | * ixgbe_dcb_calculate_tc_credits - Calculates traffic class credits | 78 | * ixgbe_dcb_calculate_tc_credits - Calculates traffic class credits |
75 | * @ixgbe_dcb_config: Struct containing DCB settings. | 79 | * @hw: pointer to hardware structure |
76 | * @direction: Configuring either Tx or Rx. | 80 | * @dcb_config: Struct containing DCB settings |
81 | * @max_frame: Maximum frame size | ||
82 | * @direction: Configuring either Tx or Rx | ||
77 | * | 83 | * |
78 | * This function calculates the credits allocated to each traffic class. | 84 | * This function calculates the credits allocated to each traffic class. |
79 | * It should be called only after the rules are checked by | 85 | * It should be called only after the rules are checked by |