]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e: Fix kernel panic on enable/disable LLDP
authorDave Ertman <david.m.ertman@intel.com>
Tue, 30 Aug 2016 00:38:26 +0000 (17:38 -0700)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 8 Mar 2017 00:39:15 +0000 (19:39 -0500)
commit341db8b73eb2cf0237f2d0ddd5ed8f06ef14312a
tree1b8e6076de409ca13aaf68322500552e9552c5f1
parent553b07d011f83518fae779380f0220b305eaeae9
i40e: Fix kernel panic on enable/disable LLDP

Orabug: 24568124

If DCB is configured on the link partner switch with an
unsupported traffic class configuration (e.g. non-contiguous TCs),
the driver is flagging DCB as disabled.  But, for future DCB
LLDPDUs, the driver was checking if the interface was DCB capable
instead of enabled.  This was causing a kernel panic when LLDP
was enabled/disabled on the link partner switch.

This patch corrects the situation by having the LLDP event handler
check the correct flag in the pf structure.  It also cleans up the
setting and clearing of the enabled flag for other checks.

Signed-off-by: Dave Ertman <david.m.ertman@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit a036244c068612a43fa8c0f33a0eb4daa4d8dba0)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_main.c