X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fliquidio%2Flio_ethdev.c;h=b72060a4499bbd6b5b01664a50f5d916425ca204;hb=eeded2044af5bbe88220120b14933536cbb3edb6;hp=bd62b75a17604bbdebcc3cf67b14c788f6fa246c;hpb=62024eb8275696bead35b38a6062a2513f1f7c58;p=dpdk.git diff --git a/drivers/net/liquidio/lio_ethdev.c b/drivers/net/liquidio/lio_ethdev.c index bd62b75a17..b72060a449 100644 --- a/drivers/net/liquidio/lio_ethdev.c +++ b/drivers/net/liquidio/lio_ethdev.c @@ -3,8 +3,8 @@ */ #include -#include -#include +#include +#include #include #include #include @@ -481,7 +481,7 @@ lio_dev_mtu_set(struct rte_eth_dev *eth_dev, uint16_t mtu) return -1; } - if (frame_len > RTE_ETHER_MAX_LEN) + if (frame_len > LIO_ETH_MAX_LEN) eth_dev->data->dev_conf.rxmode.offloads |= DEV_RX_OFFLOAD_JUMBO_FRAME; else @@ -2094,6 +2094,7 @@ lio_eth_dev_init(struct rte_eth_dev *eth_dev) return 0; rte_eth_copy_pci_info(eth_dev, pdev); + eth_dev->data->dev_flags |= RTE_ETH_DEV_AUTOFILL_QUEUE_XSTATS; if (pdev->mem_resource[0].addr) { lio_dev->hw_addr = pdev->mem_resource[0].addr; @@ -2167,5 +2168,5 @@ static struct rte_pci_driver rte_liovf_pmd = { RTE_PMD_REGISTER_PCI(net_liovf, rte_liovf_pmd); RTE_PMD_REGISTER_PCI_TABLE(net_liovf, pci_id_liovf_map); RTE_PMD_REGISTER_KMOD_DEP(net_liovf, "* igb_uio | vfio-pci"); -RTE_LOG_REGISTER(lio_logtype_init, pmd.net.liquidio.init, NOTICE); -RTE_LOG_REGISTER(lio_logtype_driver, pmd.net.liquidio.driver, NOTICE); +RTE_LOG_REGISTER_SUFFIX(lio_logtype_init, init, NOTICE); +RTE_LOG_REGISTER_SUFFIX(lio_logtype_driver, driver, NOTICE);