X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fhinic%2Fhinic_pmd_ethdev.c;h=6bd35a227087004a81fdcf1e8286357b73187f34;hb=076221c8fe1da262540d97633957102c7cf12122;hp=eeb4227fafac9ebd01bae1eb7f47843b4d0b6a22;hpb=2c473729dd42cd82e8de36a227cb723b8c7b21a2;p=dpdk.git diff --git a/drivers/net/hinic/hinic_pmd_ethdev.c b/drivers/net/hinic/hinic_pmd_ethdev.c index eeb4227faf..6bd35a2270 100644 --- a/drivers/net/hinic/hinic_pmd_ethdev.c +++ b/drivers/net/hinic/hinic_pmd_ethdev.c @@ -1543,6 +1543,8 @@ static int hinic_dev_init(struct rte_eth_dev *eth_dev) /* rte_eth_dev ops, rx_burst and tx_burst */ eth_dev->dev_ops = &hinic_pmd_ops; + eth_dev->rx_pkt_burst = hinic_recv_pkts; + eth_dev->tx_pkt_burst = hinic_xmit_pkts; return hinic_func_init(eth_dev); } @@ -1560,6 +1562,8 @@ static int hinic_dev_uninit(struct rte_eth_dev *dev) hinic_dev_close(dev); dev->dev_ops = NULL; + dev->rx_pkt_burst = NULL; + dev->tx_pkt_burst = NULL; rte_free(dev->data->mac_addrs); dev->data->mac_addrs = NULL;