Skip to content

Commit

Permalink
qed: add support for dcbx.
Browse files Browse the repository at this point in the history
This patch adds the necessary driver support for Management Firmware to
configure the device/firmware with the dcbx results. Management Firmware
is responsible for communicating the DCBX and driving the negotiation,
but the driver has responsibility of receiving async notification and
configuring the results in hw/fw. This patch also adds the dcbx support for
future protocols (e.g., FCoE) as preparation to their imminent submission.

Signed-off-by: Sudarsana Reddy Kalluru <[email protected]>
Signed-off-by: Yuval Mintz <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Sudarsana Reddy Kalluru authored and davem330 committed May 17, 2016
1 parent ccf9282 commit 39651ab
Show file tree
Hide file tree
Showing 11 changed files with 834 additions and 8 deletions.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/qlogic/qed/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ obj-$(CONFIG_QED) := qed.o

qed-y := qed_cxt.o qed_dev.o qed_hw.o qed_init_fw_funcs.o qed_init_ops.o \
qed_int.o qed_main.o qed_mcp.o qed_sp_commands.o qed_spq.o qed_l2.o \
qed_selftest.o
qed_selftest.o qed_dcbx.o
qed-$(CONFIG_QED_SRIOV) += qed_sriov.o qed_vf.o
2 changes: 2 additions & 0 deletions drivers/net/ethernet/qlogic/qed/qed.h
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,8 @@ struct qed_hwfn {
struct qed_pf_iov *pf_iov_info;
struct qed_mcp_info *mcp_info;

struct qed_dcbx_info *p_dcbx_info;

struct qed_hw_cid_data *p_tx_cids;
struct qed_hw_cid_data *p_rx_cids;

Expand Down
10 changes: 10 additions & 0 deletions drivers/net/ethernet/qlogic/qed/qed_cxt.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,16 @@ void qed_cxt_hw_init_pf(struct qed_hwfn *p_hwfn);

void qed_qm_init_pf(struct qed_hwfn *p_hwfn);

/**
* @brief Reconfigures QM pf on the fly
*
* @param p_hwfn
* @param p_ptt
*
* @return int
*/
int qed_qm_reconf(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt);

/**
* @brief qed_cxt_release - Release a cid
*
Expand Down
Loading

0 comments on commit 39651ab

Please sign in to comment.