Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts: drivers/net/ethernet/mediatek/mtk_eth_soc.c drivers/net/ethernet/qlogic/qed/qed_dcbx.c drivers/net/phy/Kconfig All conflicts were cases of overlapping commits. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -5112,9 +5112,13 @@ static int i40e_init_pf_dcb(struct i40e_pf *pf)
|
||||
DCB_CAP_DCBX_VER_IEEE;
|
||||
|
||||
pf->flags |= I40E_FLAG_DCB_CAPABLE;
|
||||
/* Enable DCB tagging only when more than one TC */
|
||||
/* Enable DCB tagging only when more than one TC
|
||||
* or explicitly disable if only one TC
|
||||
*/
|
||||
if (i40e_dcb_get_num_tc(&hw->local_dcbx_config) > 1)
|
||||
pf->flags |= I40E_FLAG_DCB_ENABLED;
|
||||
else
|
||||
pf->flags &= ~I40E_FLAG_DCB_ENABLED;
|
||||
dev_dbg(&pf->pdev->dev,
|
||||
"DCBX offload is supported for this PF.\n");
|
||||
}
|
||||
@@ -5715,7 +5719,7 @@ static int i40e_handle_lldp_event(struct i40e_pf *pf,
|
||||
u8 type;
|
||||
|
||||
/* Not DCB capable or capability disabled */
|
||||
if (!(pf->flags & I40E_FLAG_DCB_CAPABLE))
|
||||
if (!(pf->flags & I40E_FLAG_DCB_ENABLED))
|
||||
return ret;
|
||||
|
||||
/* Ignore if event is not for Nearest Bridge */
|
||||
@@ -7895,6 +7899,7 @@ static int i40e_init_interrupt_scheme(struct i40e_pf *pf)
|
||||
#endif
|
||||
I40E_FLAG_RSS_ENABLED |
|
||||
I40E_FLAG_DCB_CAPABLE |
|
||||
I40E_FLAG_DCB_ENABLED |
|
||||
I40E_FLAG_SRIOV_ENABLED |
|
||||
I40E_FLAG_FD_SB_ENABLED |
|
||||
I40E_FLAG_FD_ATR_ENABLED |
|
||||
@@ -10531,6 +10536,7 @@ static void i40e_determine_queue_usage(struct i40e_pf *pf)
|
||||
I40E_FLAG_FD_SB_ENABLED |
|
||||
I40E_FLAG_FD_ATR_ENABLED |
|
||||
I40E_FLAG_DCB_CAPABLE |
|
||||
I40E_FLAG_DCB_ENABLED |
|
||||
I40E_FLAG_SRIOV_ENABLED |
|
||||
I40E_FLAG_VMDQ_ENABLED);
|
||||
} else if (!(pf->flags & (I40E_FLAG_RSS_ENABLED |
|
||||
@@ -10554,7 +10560,8 @@ static void i40e_determine_queue_usage(struct i40e_pf *pf)
|
||||
/* Not enough queues for all TCs */
|
||||
if ((pf->flags & I40E_FLAG_DCB_CAPABLE) &&
|
||||
(queues_left < I40E_MAX_TRAFFIC_CLASS)) {
|
||||
pf->flags &= ~I40E_FLAG_DCB_CAPABLE;
|
||||
pf->flags &= ~(I40E_FLAG_DCB_CAPABLE |
|
||||
I40E_FLAG_DCB_ENABLED);
|
||||
dev_info(&pf->pdev->dev, "not enough queues for DCB. DCB is disabled.\n");
|
||||
}
|
||||
pf->num_lan_qps = max_t(int, pf->rss_size_max,
|
||||
@@ -10951,7 +10958,7 @@ static int i40e_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||
err = i40e_init_pf_dcb(pf);
|
||||
if (err) {
|
||||
dev_info(&pdev->dev, "DCB init failed %d, disabled\n", err);
|
||||
pf->flags &= ~I40E_FLAG_DCB_CAPABLE;
|
||||
pf->flags &= ~(I40E_FLAG_DCB_CAPABLE & I40E_FLAG_DCB_ENABLED);
|
||||
/* Continue without DCB enabled */
|
||||
}
|
||||
#endif /* CONFIG_I40E_DCB */
|
||||
|
Reference in New Issue
Block a user