OSDN Git Service

Merge branch 'xps-DCB'
authorDavid S. Miller <davem@davemloft.net>
Mon, 31 Oct 2016 19:00:48 +0000 (15:00 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Oct 2016 19:00:48 +0000 (15:00 -0400)
commit04f762e8f2e5e0605331871e382a68c6550f4d4f
tree3782a230047a5a95b2ca92c990cf5dc8a2a32b28
parent20861f26e33d76a4f3587bcc866fa1dab3e01094
parent184c449f91fef521042970cca46bd5cdfc0e3a37
Merge branch 'xps-DCB'

Alexander Duyck says:

====================
Add support for XPS when using DCB

This patch series enables proper isolation between traffic classes when
using XPS while DCB is enabled.  Previously enabling XPS would cause the
traffic to be potentially pulled from one traffic class into another on
egress.  This change essentially multiplies the XPS map by the number of
traffic classes and allows us to do a lookup per traffic class for a given
CPU.

To guarantee the isolation I invalidate the XPS map for any queues that are
moved from one traffic class to another, or if we change the number of
traffic classes.

v2: Added sysfs to display traffic class
    Replaced do/while with for loop
    Cleaned up several other for for loops throughout the patch
====================

Signed-off-by: David S. Miller <davem@davemloft.net>