Skip to content

Commit

Permalink
qed: Reset the enable flag for eth protocol.
Browse files Browse the repository at this point in the history
This patch fixes the coding error in determining the enable flag for
the application/protocol. The enable flag should be set for all protocols
but the eth.

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 25, 2016
1 parent 3851112 commit ec7c7f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/qlogic/qed/qed_dcbx.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ qed_dcbx_process_tlv(struct qed_hwfn *p_hwfn,
* indication, but we only got here if there was an
* app tlv for the protocol, so dcbx must be enabled.
*/
enable = !!(type == DCBX_PROTOCOL_ETH);
enable = !(type == DCBX_PROTOCOL_ETH);

qed_dcbx_update_app_info(p_data, p_hwfn, enable, true,
priority, tc, type);
Expand Down

0 comments on commit ec7c7f5

Please sign in to comment.