Skip to content

Commit 449ad50

Browse files
sudarsana.kalluru@cavium.comdavem330
authored andcommitted
qed: Separate RoCE DCBx support for V2.
In the older firmware there was no distinction between RoCE and RoCEv2 whereas the newer firmware (8.15.3.0) allows us to configure each independently. Driver need to populate the RoCEv2 data in its specific structure. Signed-off-by: Sudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com> Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 270837b commit 449ad50

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

drivers/net/ethernet/qlogic/qed/qed_dcbx.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -951,14 +951,9 @@ void qed_dcbx_set_pf_update_params(struct qed_dcbx_results *p_src,
951951
p_dcb_data = &p_dest->fcoe_dcb_data;
952952
qed_dcbx_update_protocol_data(p_dcb_data, p_src, DCBX_PROTOCOL_FCOE);
953953
p_dcb_data = &p_dest->roce_dcb_data;
954-
955-
if (p_src->arr[DCBX_PROTOCOL_ROCE].update)
956-
qed_dcbx_update_protocol_data(p_dcb_data, p_src,
957-
DCBX_PROTOCOL_ROCE);
958-
if (p_src->arr[DCBX_PROTOCOL_ROCE_V2].update)
959-
qed_dcbx_update_protocol_data(p_dcb_data, p_src,
960-
DCBX_PROTOCOL_ROCE_V2);
961-
954+
qed_dcbx_update_protocol_data(p_dcb_data, p_src, DCBX_PROTOCOL_ROCE);
955+
p_dcb_data = &p_dest->rroce_dcb_data;
956+
qed_dcbx_update_protocol_data(p_dcb_data, p_src, DCBX_PROTOCOL_ROCE_V2);
962957
p_dcb_data = &p_dest->iscsi_dcb_data;
963958
qed_dcbx_update_protocol_data(p_dcb_data, p_src, DCBX_PROTOCOL_ISCSI);
964959
p_dcb_data = &p_dest->eth_dcb_data;

0 commit comments

Comments
 (0)