]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Fix configure TCs after initial DCB disable
authorDavid Ertman <david.m.ertman@intel.com>
Tue, 20 Sep 2016 14:10:50 +0000 (07:10 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 27 Oct 2016 21:08:56 +0000 (14:08 -0700)
commitae762c6caa3f09e09c399aaa6a4ff4a04d429e3b
treee28fb1e880691eb96cec0824f59ebf1a82edda61
parent7be1584076d59a20c0daf1a7f753592d836c5b9d
i40e: Fix configure TCs after initial DCB disable

in commit 11a2adb800661a46093e1af3007fced4d6097115 a fix
was put into place to avoid a kernel panic when a non-
supported traffic class configuration was put into place
and then lldp was enabled/disabled on the link partner
switch.  This fix caused it to be necessary to
unload/reload the driver to reenable DCB once a supported
TC config was in place.

The root cause of the original panic was that the function
i40e_pf_get_default_tc was allowing for a default TC other
than TC 0, and only TC 0 is supported as a default.

This patch removes the get_default_tc function and replaces
it with a #define since there is only one TC supported as
a default.

Change-Id: I448371974e946386d0a7718d73668b450b7c72ef
Signed-off-by: Dave Ertman <david.m.ertman@intel.com>
Tested-by: Ronald Bynoe <ronald.j.bynoe@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e.h
drivers/net/ethernet/intel/i40e/i40e_main.c