qlcnic: Use bool for rx_mac_learn.
authorSucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Thu, 23 Jan 2014 22:18:28 +0000 (17:18 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Jan 2014 00:13:08 +0000 (16:13 -0800)
o Use boolean type instead of u8.

Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Signed-off-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic.h
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c
drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c

index 69a6ca086d5c78f0a0a6c1d3ca56361b3a1ee079..c85cb8428bf08552b1b9432633fdab7e5b245cac 100644 (file)
@@ -1082,7 +1082,7 @@ struct qlcnic_adapter {
        u64 dev_rst_time;
        bool drv_mac_learn;
        bool fdb_mac_learn;
-       u8 rx_mac_learn;
+       bool rx_mac_learn;
        unsigned long vlans[BITS_TO_LONGS(VLAN_N_VID)];
        u8 flash_mfg_id;
        struct qlcnic_npar_info *npars;
index 294984584d1a50217fbe92a292e62e816eee680c..b66b199bd88ced2e272ea71f1451f6bca64c7b74 100644 (file)
@@ -1637,7 +1637,7 @@ static void qlcnic_83xx_set_interface_id_promisc(struct qlcnic_adapter *adapter,
        if (qlcnic_sriov_pf_check(adapter)) {
                qlcnic_alloc_lb_filters_mem(adapter);
                qlcnic_pf_set_interface_id_promisc(adapter, interface_id);
-               adapter->rx_mac_learn = 1;
+               adapter->rx_mac_learn = true;
        } else {
                if (!qlcnic_sriov_vf_check(adapter))
                        *interface_id = adapter->recv_ctx->context_id << 16;
index 6d7f6a170869d6d96a460ba0703adba410cc33ba..f19cec86069561c9a9ab780237077c87518122dc 100644 (file)
@@ -2217,7 +2217,7 @@ int qlcnic_83xx_init(struct qlcnic_adapter *adapter, int pci_using_dac)
        struct qlcnic_hardware_context *ahw = adapter->ahw;
        int err = 0;
 
-       adapter->rx_mac_learn = 0;
+       adapter->rx_mac_learn = false;
        ahw->msix_supported = !!qlcnic_use_msi_x;
 
        qlcnic_83xx_init_rings(adapter);
index e26c49fa87ab2337511c6c85dc50bcf470c099a2..be7d7a62cc0d8c885c1f669f6c01f0f3a2259ea0 100644 (file)
@@ -227,10 +227,10 @@ int qlcnic_83xx_config_vnic_opmode(struct qlcnic_adapter *adapter)
        if (ahw->capabilities & QLC_83XX_ESWITCH_CAPABILITY) {
                adapter->flags |= QLCNIC_ESWITCH_ENABLED;
                if (adapter->drv_mac_learn)
-                       adapter->rx_mac_learn = 1;
+                       adapter->rx_mac_learn = true;
        } else {
                adapter->flags &= ~QLCNIC_ESWITCH_ENABLED;
-               adapter->rx_mac_learn = 0;
+               adapter->rx_mac_learn = false;
        }
 
        ahw->idc.vnic_state = QLCNIC_DEV_NPAR_NON_OPER;
index e86147912922adc2bdff8e0a8b5f51a5d6a99567..d012e834636e70acda3436fe7f2402a233bc9291 100644 (file)
@@ -547,10 +547,10 @@ static void __qlcnic_set_multi(struct net_device *netdev, u16 vlan)
                qlcnic_alloc_lb_filters_mem(adapter);
                adapter->drv_mac_learn = 1;
                if (adapter->flags & QLCNIC_ESWITCH_ENABLED)
-                       adapter->rx_mac_learn = 1;
+                       adapter->rx_mac_learn = true;
        } else {
                adapter->drv_mac_learn = 0;
-               adapter->rx_mac_learn = 0;
+               adapter->rx_mac_learn = false;
        }
 
        qlcnic_nic_set_promisc(adapter, mode);