Skip to content

Commit

Permalink
Merge branch 'qed-bandwidth-config'
Browse files Browse the repository at this point in the history
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 <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Apr 26, 2016
2 parents 101e63b + a64b02d commit 713d4dd
Show file tree
Hide file tree
Showing 7 changed files with 491 additions and 62 deletions.
11 changes: 11 additions & 0 deletions drivers/net/ethernet/qlogic/qed/qed.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ extern const struct qed_common_ops qed_common_ops_pass;
#define NAME_SIZE 16
#define VER_SIZE 16

#define QED_WFQ_UNIT 100

/* cau states */
enum qed_coalescing_mode {
QED_COAL_MODE_DISABLE,
Expand Down Expand Up @@ -237,6 +239,12 @@ struct qed_dmae_info {
struct dmae_cmd *p_dmae_cmd;
};

struct qed_wfq_data {
/* when feature is configured for at least 1 vport */
u32 min_speed;
bool configured;
};

struct qed_qm_info {
struct init_qm_pq_params *qm_pq_params;
struct init_qm_vport_params *qm_vport_params;
Expand All @@ -257,6 +265,7 @@ struct qed_qm_info {
bool vport_wfq_en;
u8 pf_wfq;
u32 pf_rl;
struct qed_wfq_data *wfq_data;
};

struct storm_stats {
Expand Down Expand Up @@ -526,6 +535,8 @@ static inline u8 qed_concrete_to_sw_fid(struct qed_dev *cdev,

#define PURE_LB_TC 8

void qed_configure_vp_wfq_on_link_change(struct qed_dev *cdev, u32 min_pf_rate);

#define QED_LEADING_HWFN(dev) (&dev->hwfns[0])

/* Other Linux specific common definitions */
Expand Down
Loading

0 comments on commit 713d4dd

Please sign in to comment.