static void vmxnet3_update_vlan_filters(VMXNET3State *s)

{

    int i;



    /* Copy configuration from shared memory */

    VMXNET3_READ_DRV_SHARED(s->drv_shmem,

                            devRead.rxFilterConf.vfTable,

                            s->vlan_table,

                            sizeof(s->vlan_table));



    /* Invert byte order when needed */

    for (i = 0; i < ARRAY_SIZE(s->vlan_table); i++) {

        s->vlan_table[i] = le32_to_cpu(s->vlan_table[i]);

    }



    /* Dump configuration for debugging purposes */

    VMW_CFPRN("Configured VLANs:");

    for (i = 0; i < sizeof(s->vlan_table) * 8; i++) {

        if (VMXNET3_VFTABLE_ENTRY_IS_SET(s->vlan_table, i)) {

            VMW_CFPRN("\tVLAN %d is present", i);

        }

    }

}

static void vmxnet3_update_vlan_filters(VMXNET3State *s)

{

    int i;



    

    VMXNET3_READ_DRV_SHARED(s->drv_shmem,

                            devRead.rxFilterConf.vfTable,

                            s->vlan_table,

                            sizeof(s->vlan_table));



    

    for (i = 0; i < ARRAY_SIZE(s->vlan_table); i++) {

        s->vlan_table[i] = le32_to_cpu(s->vlan_table[i]);

    }



    

    VMW_CFPRN("Configured VLANs:");

    for (i = 0; i < sizeof(s->vlan_table) * 8; i++) {

        if (VMXNET3_VFTABLE_ENTRY_IS_SET(s->vlan_table, i)) {

            VMW_CFPRN("\tVLAN %d is present", i);

        }

    }

}

    VMXNET3_READ_DRV_SHARED(s->drv_shmem,
static void FUNC_0(VMXNET3State *VAR_0)

{

    int VAR_1;



    

    VMXNET3_READ_DRV_SHARED(VAR_0->drv_shmem,

                            devRead.rxFilterConf.vfTable,

                            VAR_0->vlan_table,

                            sizeof(VAR_0->vlan_table));



    

    for (VAR_1 = 0; VAR_1 < ARRAY_SIZE(VAR_0->vlan_table); VAR_1++) {

        VAR_0->vlan_table[VAR_1] = le32_to_cpu(VAR_0->vlan_table[VAR_1]);

    }



    

    VMW_CFPRN("Configured VLANs:");

    for (VAR_1 = 0; VAR_1 < sizeof(VAR_0->vlan_table) * 8; VAR_1++) {

        if (VMXNET3_VFTABLE_ENTRY_IS_SET(VAR_0->vlan_table, VAR_1)) {

            VMW_CFPRN("\tVLAN %d is present", VAR_1);

        }

    }

}

static void FUNC_0(VMXNET3State *VAR_0)
{ int VAR_1; VMXNET3_READ_DRV_SHARED(VAR_0->drv_shmem,
devRead.rxFilterConf.vfTable,
VAR_0->vlan_table,
sizeof(VAR_0->vlan_table)); for (VAR_1 = 0; VAR_1 < ARRAY_SIZE(VAR_0->vlan_table); VAR_1++) { VAR_0->vlan_table[VAR_1] = le32_to_cpu(VAR_0->vlan_table[VAR_1]); } VMW_CFPRN("Configured VLANs:"); for (VAR_1 = 0; VAR_1 < sizeof(VAR_0->vlan_table) * 8; VAR_1++) { if (VMXNET3_VFTABLE_ENTRY_IS_SET(VAR_0->vlan_table, VAR_1)) { VMW_CFPRN("\tVLAN %d is present", VAR_1); } } }