]> www.infradead.org Git - users/jedix/linux-maple.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)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 8 Mar 2017 00:40:03 +0000 (19:40 -0500)
commit6d9d32bc30a23229280c250f0ce0dc3a13e9bd37
treed7b31b450d86ba124e3402822da08663f049db2d
parent046a5e0240b6f5f5bf40e108abf9b5376aa20078
i40e: Fix configure TCs after initial DCB disable

Orabug: 24568124

in commit a036244c068612a43fa8c0f33a0eb4daa4d8dba0 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>
(cherry picked from commit ea6acb7ef78960e4b6f1cd8c4162a5e490e83dcd)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/intel/i40e/i40e.h
drivers/net/ethernet/intel/i40e/i40e_main.c