Skip to content

Commit 713d4dd

Browse files
committed
Merge branch 'qed-bandwidth-config'
Manish Chopra says: ==================== qed: Bandwidth configuration support This series adds support in driver for min/max bandwidth configuration for the PF on the link change notification or on explicit request of bandwidth update from the MFW [management firmware]. The same infrastructure would later be used by user based flows [for example, rate shaping for the VFs] Please consider applying this series to "net-next" ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents 101e63b + a64b02d commit 713d4dd

File tree

7 files changed

+491
-62
lines changed

7 files changed

+491
-62
lines changed

drivers/net/ethernet/qlogic/qed/qed.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ extern const struct qed_common_ops qed_common_ops_pass;
3232
#define NAME_SIZE 16
3333
#define VER_SIZE 16
3434

35+
#define QED_WFQ_UNIT 100
36+
3537
/* cau states */
3638
enum qed_coalescing_mode {
3739
QED_COAL_MODE_DISABLE,
@@ -237,6 +239,12 @@ struct qed_dmae_info {
237239
struct dmae_cmd *p_dmae_cmd;
238240
};
239241

242+
struct qed_wfq_data {
243+
/* when feature is configured for at least 1 vport */
244+
u32 min_speed;
245+
bool configured;
246+
};
247+
240248
struct qed_qm_info {
241249
struct init_qm_pq_params *qm_pq_params;
242250
struct init_qm_vport_params *qm_vport_params;
@@ -257,6 +265,7 @@ struct qed_qm_info {
257265
bool vport_wfq_en;
258266
u8 pf_wfq;
259267
u32 pf_rl;
268+
struct qed_wfq_data *wfq_data;
260269
};
261270

262271
struct storm_stats {
@@ -526,6 +535,8 @@ static inline u8 qed_concrete_to_sw_fid(struct qed_dev *cdev,
526535

527536
#define PURE_LB_TC 8
528537

538+
void qed_configure_vp_wfq_on_link_change(struct qed_dev *cdev, u32 min_pf_rate);
539+
529540
#define QED_LEADING_HWFN(dev) (&dev->hwfns[0])
530541

531542
/* Other Linux specific common definitions */

0 commit comments

Comments
 (0)