static void vmxnet3_update_mcast_filters(VMXNET3State *s)

{

    uint16_t list_bytes =

        VMXNET3_READ_DRV_SHARED16(s->drv_shmem,

                                  devRead.rxFilterConf.mfTableLen);



    s->mcast_list_len = list_bytes / sizeof(s->mcast_list[0]);



    s->mcast_list = g_realloc(s->mcast_list, list_bytes);

    if (!s->mcast_list) {

        if (s->mcast_list_len == 0) {

            VMW_CFPRN("Current multicast list is empty");

        } else {

            VMW_ERPRN("Failed to allocate multicast list of %d elements",

                      s->mcast_list_len);

        }

        s->mcast_list_len = 0;

    } else {

        int i;

        hwaddr mcast_list_pa =

            VMXNET3_READ_DRV_SHARED64(s->drv_shmem,

                                      devRead.rxFilterConf.mfTablePA);



        pci_dma_read(PCI_DEVICE(s), mcast_list_pa, s->mcast_list, list_bytes);



        VMW_CFPRN("Current multicast list len is %d:", s->mcast_list_len);

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

            VMW_CFPRN("\t" MAC_FMT, MAC_ARG(s->mcast_list[i].a));

        }

    }

}

static void vmxnet3_update_mcast_filters(VMXNET3State *s)

{

    uint16_t list_bytes =

        VMXNET3_READ_DRV_SHARED16(s->drv_shmem,

                                  devRead.rxFilterConf.mfTableLen);



    s->mcast_list_len = list_bytes / sizeof(s->mcast_list[0]);



    s->mcast_list = g_realloc(s->mcast_list, list_bytes);

    if (!s->mcast_list) {

        if (s->mcast_list_len == 0) {

            VMW_CFPRN("Current multicast list is empty");

        } else {

            VMW_ERPRN("Failed to allocate multicast list of %d elements",

                      s->mcast_list_len);

        }

        s->mcast_list_len = 0;

    } else {

        int i;

        hwaddr mcast_list_pa =

            VMXNET3_READ_DRV_SHARED64(s->drv_shmem,

                                      devRead.rxFilterConf.mfTablePA);



        pci_dma_read(PCI_DEVICE(s), mcast_list_pa, s->mcast_list, list_bytes);



        VMW_CFPRN("Current multicast list len is %d:", s->mcast_list_len);

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

            VMW_CFPRN("\t" MAC_FMT, MAC_ARG(s->mcast_list[i].a));

        }

    }

}

        VMXNET3_READ_DRV_SHARED16(s->drv_shmem,             VMXNET3_READ_DRV_SHARED64(s->drv_shmem,         pci_dma_read(PCI_DEVICE(s), mcast_list_pa, s->mcast_list, list_bytes);
static void FUNC_0(VMXNET3State *VAR_0)

{

    uint16_t list_bytes =

        VMXNET3_READ_DRV_SHARED16(VAR_0->drv_shmem,

                                  devRead.rxFilterConf.mfTableLen);



    VAR_0->mcast_list_len = list_bytes / sizeof(VAR_0->mcast_list[0]);



    VAR_0->mcast_list = g_realloc(VAR_0->mcast_list, list_bytes);

    if (!VAR_0->mcast_list) {

        if (VAR_0->mcast_list_len == 0) {

            VMW_CFPRN("Current multicast list is empty");

        } else {

            VMW_ERPRN("Failed to allocate multicast list of %d elements",

                      VAR_0->mcast_list_len);

        }

        VAR_0->mcast_list_len = 0;

    } else {

        int VAR_1;

        hwaddr mcast_list_pa =

            VMXNET3_READ_DRV_SHARED64(VAR_0->drv_shmem,

                                      devRead.rxFilterConf.mfTablePA);



        pci_dma_read(PCI_DEVICE(VAR_0), mcast_list_pa, VAR_0->mcast_list, list_bytes);



        VMW_CFPRN("Current multicast list len is %d:", VAR_0->mcast_list_len);

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

            VMW_CFPRN("\t" MAC_FMT, MAC_ARG(VAR_0->mcast_list[VAR_1].a));

        }

    }

}

static void FUNC_0(VMXNET3State *VAR_0)
{ uint16_t list_bytes =
VMXNET3_READ_DRV_SHARED16(VAR_0->drv_shmem,
devRead.rxFilterConf.mfTableLen); VAR_0->mcast_list_len = list_bytes / sizeof(VAR_0->mcast_list[0]); VAR_0->mcast_list = g_realloc(VAR_0->mcast_list, list_bytes); if (!VAR_0->mcast_list) { if (VAR_0->mcast_list_len == 0) { VMW_CFPRN("Current multicast list is empty"); } else { VMW_ERPRN("Failed to allocate multicast list of %d elements",
VAR_0->mcast_list_len); } VAR_0->mcast_list_len = 0; } else { int VAR_1; hwaddr mcast_list_pa =
VMXNET3_READ_DRV_SHARED64(VAR_0->drv_shmem,
devRead.rxFilterConf.mfTablePA); pci_dma_read(PCI_DEVICE(VAR_0), mcast_list_pa, VAR_0->mcast_list, list_bytes); VMW_CFPRN("Current multicast list len is %d:", VAR_0->mcast_list_len); for (VAR_1 = 0; VAR_1 < VAR_0->mcast_list_len; VAR_1++) { VMW_CFPRN("\t" MAC_FMT, MAC_ARG(VAR_0->mcast_list[VAR_1].a)); } } }