mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
ice: Add code for DCB initialization part 1/4
This patch introduces a skeleton for ice_init_pf_dcb, the top level function for DCB initialization. Subsequent patches will add to this DCB init flow. In this patch, ice_init_pf_dcb checks if DCB is a supported capability. If so, an admin queue call to start the LLDP and DCBx in firmware is issued. If not, an error is reported. Note that we don't fail the driver init if DCB init fails. Reviewed-by: Bruce Allan <bruce.w.allan@intel.com> Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
802abbb44a
commit
37b6f6469f
10 changed files with 230 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
#include "ice.h"
|
||||
#include "ice_lib.h"
|
||||
#include "ice_dcb_lib.h"
|
||||
|
||||
#define DRV_VERSION "0.7.3-k"
|
||||
#define DRV_SUMMARY "Intel(R) Ethernet Connection E800 Series Linux Driver"
|
||||
|
@ -2285,6 +2286,15 @@ ice_probe(struct pci_dev *pdev, const struct pci_device_id __always_unused *ent)
|
|||
|
||||
ice_init_pf(pf);
|
||||
|
||||
err = ice_init_pf_dcb(pf);
|
||||
if (err) {
|
||||
clear_bit(ICE_FLAG_DCB_CAPABLE, pf->flags);
|
||||
clear_bit(ICE_FLAG_DCB_ENA, pf->flags);
|
||||
|
||||
/* do not fail overall init if DCB init fails */
|
||||
err = 0;
|
||||
}
|
||||
|
||||
ice_determine_q_usage(pf);
|
||||
|
||||
pf->num_alloc_vsi = hw->func_caps.guar_num_vsi;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue