[Intel-wired-lan] [PATCH] i40e: check for and deal with non-contiguous TCs
Bowers, AndrewX
andrewx.bowers at intel.com
Fri Aug 12 22:45:40 UTC 2016
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On
> Behalf Of Dave Ertman
> Sent: Friday, August 12, 2016 9:57 AM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH] i40e: check for and deal with non-
> contiguous TCs
>
> The i40e driver was causing a kernel panic when non-contiguous Traffic
> Classes, or Traffic Classes not starting with TC0, were configured on a link
> partner switch.
> i40e does not support non-contiguous TCs.
>
> To fix this, the patch changes the logic when determining the total number of
> TCs enabled. Before, this would use the highest TC number enabled and
> assume that all TCs below it were also enabled. Now, we create a bitmask of
> enabled TCs and scan it to determine not only the number of TCs, but also if
> the set of enabled TCs starts at zero and is contiguous. If not, then DCB is
> disabled by only returning one TC.
>
> Signed-off-by: Dave Ertman <david.m.ertman at intel.com>
> ---
> drivers/net/ethernet/intel/i40e/i40e_main.c | 35
> ++++++++++++++++++++---------
> 1 file changed, 25 insertions(+), 10 deletions(-)
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
More information about the Intel-wired-lan
mailing list