Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ixgbe: Fix DCB netlink layer for 82599 to enable Priority Flow Control

The priority flow control settings from the netlink layer aren't taking
effect in the base driver. The boolean pfc_mode_enable in the dcb_config
struct isn't being set, so the hardware configuration code is never
reached.

Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

PJ Waskiewicz and committed by
David S. Miller
ea4af4f4 7c5b8323

+5 -1
+5 -1
drivers/net/ixgbe/ixgbe_dcb_nl.c
··· 90 90 src_dcb_cfg->tc_config[i - DCB_PFC_UP_ATTR_0].dcb_pfc; 91 91 } 92 92 93 + dst_dcb_cfg->pfc_mode_enable = src_dcb_cfg->pfc_mode_enable; 94 + 93 95 return 0; 94 96 } 95 97 ··· 300 298 301 299 adapter->temp_dcb_cfg.tc_config[priority].dcb_pfc = setting; 302 300 if (adapter->temp_dcb_cfg.tc_config[priority].dcb_pfc != 303 - adapter->dcb_cfg.tc_config[priority].dcb_pfc) 301 + adapter->dcb_cfg.tc_config[priority].dcb_pfc) { 304 302 adapter->dcb_set_bitmap |= BIT_PFC; 303 + adapter->temp_dcb_cfg.pfc_mode_enable = true; 304 + } 305 305 } 306 306 307 307 static void ixgbe_dcbnl_get_pfc_cfg(struct net_device *netdev, int priority,