net/bnxt: add initial Rx code
[dpdk.git] / drivers / net / bnxt / bnxt_ethdev.c
index 7e7d1ab..6888363 100644 (file)
 #include "bnxt.h"
 #include "bnxt_hwrm.h"
 #include "bnxt_rxq.h"
+#include "bnxt_rxr.h"
+#include "bnxt_stats.h"
 #include "bnxt_txq.h"
+#include "bnxt_txr.h"
 
 #define DRV_MODULE_NAME                "bnxt"
 static const char bnxt_version[] =
@@ -187,6 +190,8 @@ static struct eth_dev_ops bnxt_dev_ops = {
        .dev_infos_get = bnxt_dev_info_get_op,
        .dev_close = bnxt_dev_close_op,
        .dev_configure = bnxt_dev_configure_op,
+       .stats_get = bnxt_stats_get_op,
+       .stats_reset = bnxt_stats_reset_op,
        .rx_queue_setup = bnxt_rx_queue_setup_op,
        .rx_queue_release = bnxt_rx_queue_release_op,
        .tx_queue_setup = bnxt_tx_queue_setup_op,
@@ -265,8 +270,8 @@ bnxt_dev_init(struct rte_eth_dev *eth_dev)
                goto error;
        }
        eth_dev->dev_ops = &bnxt_dev_ops;
-       /* eth_dev->rx_pkt_burst = &bnxt_recv_pkts; */
-       /* eth_dev->tx_pkt_burst = &bnxt_xmit_pkts; */
+       eth_dev->rx_pkt_burst = &bnxt_recv_pkts;
+       eth_dev->tx_pkt_burst = &bnxt_xmit_pkts;
 
        rc = bnxt_alloc_hwrm_resources(bp);
        if (rc) {