]> git.baikalelectronics.ru Git - kernel.git/commitdiff
qed: Reset the enable flag for eth protocol.
authorSudarsana Reddy Kalluru <sudarsana.kalluru@qlogic.com>
Tue, 24 May 2016 09:25:23 +0000 (05:25 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 May 2016 19:32:41 +0000 (12:32 -0700)
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 <sudarsana.kalluru@qlogic.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_dcbx.c

index a06d19a698b20e582f11677a675ee250e5b0307d..21ec1c2df2c7fdca71ab642345cb426f5f1c70c2 100644 (file)
@@ -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);