Skip to content

Commit 39651ab

Browse files
Sudarsana Reddy Kallurudavem330
authored andcommitted
qed: add support for dcbx.
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 <sudarsana.kalluru@qlogic.com> Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent ccf9282 commit 39651ab

11 files changed

Lines changed: 834 additions & 8 deletions

File tree

‎drivers/net/ethernet/qlogic/qed/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ obj-$(CONFIG_QED) := qed.o
22

33
qed-y := qed_cxt.o qed_dev.o qed_hw.o qed_init_fw_funcs.o qed_init_ops.o \
44
qed_int.o qed_main.o qed_mcp.o qed_sp_commands.o qed_spq.o qed_l2.o \
5-
qed_selftest.o
5+
qed_selftest.o qed_dcbx.o
66
qed-$(CONFIG_QED_SRIOV) += qed_sriov.o qed_vf.o

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,8 @@ struct qed_hwfn {
367367
struct qed_pf_iov *pf_iov_info;
368368
struct qed_mcp_info *mcp_info;
369369

370+
struct qed_dcbx_info *p_dcbx_info;
371+
370372
struct qed_hw_cid_data *p_tx_cids;
371373
struct qed_hw_cid_data *p_rx_cids;
372374

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,16 @@ void qed_cxt_hw_init_pf(struct qed_hwfn *p_hwfn);
130130

131131
void qed_qm_init_pf(struct qed_hwfn *p_hwfn);
132132

133+
/**
134+
* @brief Reconfigures QM pf on the fly
135+
*
136+
* @param p_hwfn
137+
* @param p_ptt
138+
*
139+
* @return int
140+
*/
141+
int qed_qm_reconf(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt);
142+
133143
/**
134144
* @brief qed_cxt_release - Release a cid
135145
*

0 commit comments

Comments
 (0)