[dpdk-dev] [PATCHv4 2/9] null: fix segfault when null_pmd added to bonding

Tetsuya Mukawa mukawa at igel.co.jp
Tue Sep 29 12:32:58 CEST 2015


On 2015/09/29 18:39, Kulasek, TomaszX wrote:
> Hi Tetsuya,
>
>> Thanks for extending null pmd features.
>> Is it possible to use rte_null_pmd here?
>> Could you please check ring pmd? It may also uses rte_ring_pmd for link
>> status callback.
>>
>> Tetsuya
> My first attempt was to use ring pmd, and there's no such an issue with it. It works pretty well in bonding.
>
> Tomasz.

HI Tomasz,


Sorry, my English is wrong.
'rte_null_pmd' is defined like below.

static struct eth_driver rte_null_pmd = {
        .pci_drv = {
                .name = "rte_null_pmd",
                .drv_flags = RTE_PCI_DRV_DETACHABLE,
        },
};

I guess you may be able to use 'rte_null_pmd' instead of allocating one
more eth_driver structure like below.

    struct eth_driver *eth_drv = NULL;
    eth_drv = rte_zmalloc_socket(name, sizeof(*eth_drv), 0, numa_node);

Is it possible to use 'rte_null_pmd'?

Tetsuya


More information about the dev mailing list