i40e: genericize the partition bandwidth control
Partition bandwidth control is not in just one form of MFP (multi-function partitioning), so make the code more generic and be sure to nudge the Tx scheduler for all MFP. Copyright updated to 2017. Signed-off-by: Shannon Nelson <shannon.nelson@intel.com> Signed-off-by: Mitch Williams <mitch.a.williams@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:

committed by
Jeff Kirsher

parent
83d14c595e
commit
4fc8c67639
@@ -1,7 +1,7 @@
|
||||
/*******************************************************************************
|
||||
*
|
||||
* Intel Ethernet Controller XL710 Family Linux Driver
|
||||
* Copyright(c) 2013 - 2016 Intel Corporation.
|
||||
* Copyright(c) 2013 - 2017 Intel Corporation.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
@@ -516,9 +516,8 @@ struct i40e_pf {
|
||||
bool ptp_tx;
|
||||
bool ptp_rx;
|
||||
u16 rss_table_size; /* HW RSS table size */
|
||||
/* These are only valid in NPAR modes */
|
||||
u32 npar_max_bw;
|
||||
u32 npar_min_bw;
|
||||
u32 max_bw;
|
||||
u32 min_bw;
|
||||
|
||||
u32 ioremap_len;
|
||||
u32 fd_inv;
|
||||
@@ -971,9 +970,9 @@ int i40e_ptp_get_ts_config(struct i40e_pf *pf, struct ifreq *ifr);
|
||||
void i40e_ptp_init(struct i40e_pf *pf);
|
||||
void i40e_ptp_stop(struct i40e_pf *pf);
|
||||
int i40e_is_vsi_uplink_mode_veb(struct i40e_vsi *vsi);
|
||||
i40e_status i40e_get_npar_bw_setting(struct i40e_pf *pf);
|
||||
i40e_status i40e_set_npar_bw_setting(struct i40e_pf *pf);
|
||||
i40e_status i40e_commit_npar_bw_setting(struct i40e_pf *pf);
|
||||
i40e_status i40e_get_partition_bw_setting(struct i40e_pf *pf);
|
||||
i40e_status i40e_set_partition_bw_setting(struct i40e_pf *pf);
|
||||
i40e_status i40e_commit_partition_bw_setting(struct i40e_pf *pf);
|
||||
void i40e_print_link_message(struct i40e_vsi *vsi, bool isup);
|
||||
|
||||
static inline bool i40e_enabled_xdp_vsi(struct i40e_vsi *vsi)
|
||||
|
Reference in New Issue
Block a user