net/dpaa2: configure MAC address at init
[dpdk.git] / drivers / net / dpaa2 / dpaa2_ethdev.c
1 /*-
2  *   BSD LICENSE
3  *
4  *   Copyright (c) 2016 Freescale Semiconductor, Inc. All rights reserved.
5  *   Copyright (c) 2016 NXP. All rights reserved.
6  *
7  *   Redistribution and use in source and binary forms, with or without
8  *   modification, are permitted provided that the following conditions
9  *   are met:
10  *
11  *     * Redistributions of source code must retain the above copyright
12  *       notice, this list of conditions and the following disclaimer.
13  *     * Redistributions in binary form must reproduce the above copyright
14  *       notice, this list of conditions and the following disclaimer in
15  *       the documentation and/or other materials provided with the
16  *       distribution.
17  *     * Neither the name of Freescale Semiconductor, Inc nor the names of its
18  *       contributors may be used to endorse or promote products derived
19  *       from this software without specific prior written permission.
20  *
21  *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22  *   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23  *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24  *   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25  *   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26  *   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27  *   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28  *   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29  *   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30  *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31  *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32  */
33
34 #include <time.h>
35 #include <net/if.h>
36
37 #include <rte_mbuf.h>
38 #include <rte_ethdev.h>
39 #include <rte_malloc.h>
40 #include <rte_memcpy.h>
41 #include <rte_string_fns.h>
42 #include <rte_cycles.h>
43 #include <rte_kvargs.h>
44 #include <rte_dev.h>
45 #include <rte_ethdev.h>
46 #include <rte_fslmc.h>
47
48 #include <fslmc_logs.h>
49 #include <fslmc_vfio.h>
50 #include <dpaa2_hw_pvt.h>
51
52 #include "dpaa2_ethdev.h"
53
54 static struct rte_dpaa2_driver rte_dpaa2_pmd;
55
56 static void
57 dpaa2_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
58 {
59         struct dpaa2_dev_priv *priv = dev->data->dev_private;
60
61         PMD_INIT_FUNC_TRACE();
62
63         dev_info->if_index = priv->hw_id;
64
65         dev_info->max_mac_addrs = priv->max_mac_filters;
66         dev_info->max_rx_queues = (uint16_t)priv->nb_rx_queues;
67         dev_info->max_tx_queues = (uint16_t)priv->nb_tx_queues;
68
69         dev_info->speed_capa = ETH_LINK_SPEED_1G |
70                         ETH_LINK_SPEED_2_5G |
71                         ETH_LINK_SPEED_10G;
72 }
73
74 static int
75 dpaa2_alloc_rx_tx_queues(struct rte_eth_dev *dev)
76 {
77         struct dpaa2_dev_priv *priv = dev->data->dev_private;
78         uint16_t dist_idx;
79         uint32_t vq_id;
80         struct dpaa2_queue *mc_q, *mcq;
81         uint32_t tot_queues;
82         int i;
83         struct dpaa2_queue *dpaa2_q;
84
85         PMD_INIT_FUNC_TRACE();
86
87         tot_queues = priv->nb_rx_queues + priv->nb_tx_queues;
88         mc_q = rte_malloc(NULL, sizeof(struct dpaa2_queue) * tot_queues,
89                           RTE_CACHE_LINE_SIZE);
90         if (!mc_q) {
91                 PMD_INIT_LOG(ERR, "malloc failed for rx/tx queues\n");
92                 return -1;
93         }
94
95         for (i = 0; i < priv->nb_rx_queues; i++) {
96                 mc_q->dev = dev;
97                 priv->rx_vq[i] = mc_q++;
98                 dpaa2_q = (struct dpaa2_queue *)priv->rx_vq[i];
99                 dpaa2_q->q_storage = rte_malloc("dq_storage",
100                                         sizeof(struct queue_storage_info_t),
101                                         RTE_CACHE_LINE_SIZE);
102                 if (!dpaa2_q->q_storage)
103                         goto fail;
104
105                 memset(dpaa2_q->q_storage, 0,
106                        sizeof(struct queue_storage_info_t));
107                 dpaa2_q->q_storage->dq_storage[0] = rte_malloc(NULL,
108                         DPAA2_DQRR_RING_SIZE * sizeof(struct qbman_result),
109                         RTE_CACHE_LINE_SIZE);
110         }
111
112         for (i = 0; i < priv->nb_tx_queues; i++) {
113                 mc_q->dev = dev;
114                 mc_q->flow_id = DPNI_NEW_FLOW_ID;
115                 priv->tx_vq[i] = mc_q++;
116         }
117
118         vq_id = 0;
119         for (dist_idx = 0; dist_idx < priv->num_dist_per_tc[DPAA2_DEF_TC];
120              dist_idx++) {
121                 mcq = (struct dpaa2_queue *)priv->rx_vq[vq_id];
122                 mcq->tc_index = DPAA2_DEF_TC;
123                 mcq->flow_id = dist_idx;
124                 vq_id++;
125         }
126
127         return 0;
128 fail:
129         i -= 1;
130         mc_q = priv->rx_vq[0];
131         while (i >= 0) {
132                 dpaa2_q = (struct dpaa2_queue *)priv->rx_vq[i];
133                 rte_free(dpaa2_q->q_storage->dq_storage[0]);
134                 rte_free(dpaa2_q->q_storage);
135                 priv->rx_vq[i--] = NULL;
136         }
137         rte_free(mc_q);
138         return -1;
139 }
140
141 static int
142 dpaa2_eth_dev_configure(struct rte_eth_dev *dev)
143 {
144         struct rte_eth_dev_data *data = dev->data;
145         struct rte_eth_conf *eth_conf = &data->dev_conf;
146         int ret;
147
148         PMD_INIT_FUNC_TRACE();
149
150         /* Check for correct configuration */
151         if (eth_conf->rxmode.mq_mode != ETH_MQ_RX_RSS &&
152             data->nb_rx_queues > 1) {
153                 PMD_INIT_LOG(ERR, "Distribution is not enabled, "
154                             "but Rx queues more than 1\n");
155                 return -1;
156         }
157
158         if (eth_conf->rxmode.mq_mode == ETH_MQ_RX_RSS) {
159                 /* Return in case number of Rx queues is 1 */
160                 if (data->nb_rx_queues == 1)
161                         return 0;
162                 ret = dpaa2_setup_flow_dist(dev,
163                                 eth_conf->rx_adv_conf.rss_conf.rss_hf);
164                 if (ret) {
165                         PMD_INIT_LOG(ERR, "unable to set flow distribution."
166                                      "please check queue config\n");
167                         return ret;
168                 }
169         }
170         return 0;
171 }
172
173 /* Function to setup RX flow information. It contains traffic class ID,
174  * flow ID, destination configuration etc.
175  */
176 static int
177 dpaa2_dev_rx_queue_setup(struct rte_eth_dev *dev,
178                          uint16_t rx_queue_id,
179                          uint16_t nb_rx_desc __rte_unused,
180                          unsigned int socket_id __rte_unused,
181                          const struct rte_eth_rxconf *rx_conf __rte_unused,
182                          struct rte_mempool *mb_pool)
183 {
184         struct dpaa2_dev_priv *priv = dev->data->dev_private;
185         struct fsl_mc_io *dpni = (struct fsl_mc_io *)priv->hw;
186         struct dpaa2_queue *dpaa2_q;
187         struct dpni_queue cfg;
188         uint8_t options = 0;
189         uint8_t flow_id;
190         int ret;
191
192         PMD_INIT_FUNC_TRACE();
193
194         PMD_INIT_LOG(DEBUG, "dev =%p, queue =%d, pool = %p, conf =%p",
195                      dev, rx_queue_id, mb_pool, rx_conf);
196
197         dpaa2_q = (struct dpaa2_queue *)priv->rx_vq[rx_queue_id];
198         dpaa2_q->mb_pool = mb_pool; /**< mbuf pool to populate RX ring. */
199
200         /*Get the tc id and flow id from given VQ id*/
201         flow_id = rx_queue_id % priv->num_dist_per_tc[dpaa2_q->tc_index];
202         memset(&cfg, 0, sizeof(struct dpni_queue));
203
204         options = options | DPNI_QUEUE_OPT_USER_CTX;
205         cfg.user_context = (uint64_t)(dpaa2_q);
206
207         ret = dpni_set_queue(dpni, CMD_PRI_LOW, priv->token, DPNI_QUEUE_RX,
208                              dpaa2_q->tc_index, flow_id, options, &cfg);
209         if (ret) {
210                 PMD_INIT_LOG(ERR, "Error in setting the rx flow: = %d\n", ret);
211                 return -1;
212         }
213
214         dev->data->rx_queues[rx_queue_id] = dpaa2_q;
215         return 0;
216 }
217
218 static int
219 dpaa2_dev_tx_queue_setup(struct rte_eth_dev *dev,
220                          uint16_t tx_queue_id,
221                          uint16_t nb_tx_desc __rte_unused,
222                          unsigned int socket_id __rte_unused,
223                          const struct rte_eth_txconf *tx_conf __rte_unused)
224 {
225         struct dpaa2_dev_priv *priv = dev->data->dev_private;
226         struct dpaa2_queue *dpaa2_q = (struct dpaa2_queue *)
227                 priv->tx_vq[tx_queue_id];
228         struct fsl_mc_io *dpni = priv->hw;
229         struct dpni_queue tx_conf_cfg;
230         struct dpni_queue tx_flow_cfg;
231         uint8_t options = 0, flow_id;
232         uint32_t tc_id;
233         int ret;
234
235         PMD_INIT_FUNC_TRACE();
236
237         /* Return if queue already configured */
238         if (dpaa2_q->flow_id != DPNI_NEW_FLOW_ID)
239                 return 0;
240
241         memset(&tx_conf_cfg, 0, sizeof(struct dpni_queue));
242         memset(&tx_flow_cfg, 0, sizeof(struct dpni_queue));
243
244         tc_id = 0;
245         flow_id = tx_queue_id;
246
247         ret = dpni_set_queue(dpni, CMD_PRI_LOW, priv->token, DPNI_QUEUE_TX,
248                              tc_id, flow_id, options, &tx_flow_cfg);
249         if (ret) {
250                 PMD_INIT_LOG(ERR, "Error in setting the tx flow: "
251                              "tc_id=%d, flow =%d ErrorCode = %x\n",
252                              tc_id, flow_id, -ret);
253                         return -1;
254         }
255
256         dpaa2_q->flow_id = flow_id;
257
258         if (tx_queue_id == 0) {
259                 /*Set tx-conf and error configuration*/
260                 ret = dpni_set_tx_confirmation_mode(dpni, CMD_PRI_LOW,
261                                                     priv->token,
262                                                     DPNI_CONF_DISABLE);
263                 if (ret) {
264                         PMD_INIT_LOG(ERR, "Error in set tx conf mode settings"
265                                      " ErrorCode = %x", ret);
266                         return -1;
267                 }
268         }
269         dpaa2_q->tc_index = tc_id;
270
271         dev->data->tx_queues[tx_queue_id] = dpaa2_q;
272         return 0;
273 }
274
275 static void
276 dpaa2_dev_rx_queue_release(void *q __rte_unused)
277 {
278         PMD_INIT_FUNC_TRACE();
279 }
280
281 static void
282 dpaa2_dev_tx_queue_release(void *q __rte_unused)
283 {
284         PMD_INIT_FUNC_TRACE();
285 }
286
287 static int
288 dpaa2_dev_start(struct rte_eth_dev *dev)
289 {
290         struct rte_eth_dev_data *data = dev->data;
291         struct dpaa2_dev_priv *priv = data->dev_private;
292         struct fsl_mc_io *dpni = (struct fsl_mc_io *)priv->hw;
293         struct dpni_queue cfg;
294         uint16_t qdid;
295         struct dpni_queue_id qid;
296         struct dpaa2_queue *dpaa2_q;
297         int ret, i;
298
299         PMD_INIT_FUNC_TRACE();
300
301         ret = dpni_enable(dpni, CMD_PRI_LOW, priv->token);
302         if (ret) {
303                 PMD_INIT_LOG(ERR, "Failure %d in enabling dpni %d device\n",
304                              ret, priv->hw_id);
305                 return ret;
306         }
307
308         ret = dpni_get_qdid(dpni, CMD_PRI_LOW, priv->token,
309                             DPNI_QUEUE_TX, &qdid);
310         if (ret) {
311                 PMD_INIT_LOG(ERR, "Error to get qdid:ErrorCode = %d\n", ret);
312                 return ret;
313         }
314         priv->qdid = qdid;
315
316         for (i = 0; i < data->nb_rx_queues; i++) {
317                 dpaa2_q = (struct dpaa2_queue *)data->rx_queues[i];
318                 ret = dpni_get_queue(dpni, CMD_PRI_LOW, priv->token,
319                                      DPNI_QUEUE_RX, dpaa2_q->tc_index,
320                                        dpaa2_q->flow_id, &cfg, &qid);
321                 if (ret) {
322                         PMD_INIT_LOG(ERR, "Error to get flow "
323                                      "information Error code = %d\n", ret);
324                         return ret;
325                 }
326                 dpaa2_q->fqid = qid.fqid;
327         }
328
329         return 0;
330 }
331
332 /**
333  *  This routine disables all traffic on the adapter by issuing a
334  *  global reset on the MAC.
335  */
336 static void
337 dpaa2_dev_stop(struct rte_eth_dev *dev)
338 {
339         struct dpaa2_dev_priv *priv = dev->data->dev_private;
340         struct fsl_mc_io *dpni = (struct fsl_mc_io *)priv->hw;
341         int ret;
342
343         PMD_INIT_FUNC_TRACE();
344
345         ret = dpni_disable(dpni, CMD_PRI_LOW, priv->token);
346         if (ret) {
347                 PMD_INIT_LOG(ERR, "Failure (ret %d) in disabling dpni %d dev\n",
348                              ret, priv->hw_id);
349                 return;
350         }
351 }
352
353 static void
354 dpaa2_dev_close(struct rte_eth_dev *dev)
355 {
356         struct dpaa2_dev_priv *priv = dev->data->dev_private;
357         struct fsl_mc_io *dpni = (struct fsl_mc_io *)priv->hw;
358         int ret;
359
360         PMD_INIT_FUNC_TRACE();
361
362         /* Clean the device first */
363         ret = dpni_reset(dpni, CMD_PRI_LOW, priv->token);
364         if (ret) {
365                 PMD_INIT_LOG(ERR, "Failure cleaning dpni device with"
366                              " error code %d\n", ret);
367                 return;
368         }
369 }
370
371 static struct eth_dev_ops dpaa2_ethdev_ops = {
372         .dev_configure    = dpaa2_eth_dev_configure,
373         .dev_start            = dpaa2_dev_start,
374         .dev_stop             = dpaa2_dev_stop,
375         .dev_close            = dpaa2_dev_close,
376         .dev_infos_get     = dpaa2_dev_info_get,
377         .rx_queue_setup    = dpaa2_dev_rx_queue_setup,
378         .rx_queue_release  = dpaa2_dev_rx_queue_release,
379         .tx_queue_setup    = dpaa2_dev_tx_queue_setup,
380         .tx_queue_release  = dpaa2_dev_tx_queue_release,
381 };
382
383 static int
384 dpaa2_dev_init(struct rte_eth_dev *eth_dev)
385 {
386         struct rte_device *dev = eth_dev->device;
387         struct rte_dpaa2_device *dpaa2_dev;
388         struct fsl_mc_io *dpni_dev;
389         struct dpni_attr attr;
390         struct dpaa2_dev_priv *priv = eth_dev->data->dev_private;
391         int i, ret, hw_id;
392
393         PMD_INIT_FUNC_TRACE();
394
395         /* For secondary processes, the primary has done all the work */
396         if (rte_eal_process_type() != RTE_PROC_PRIMARY)
397                 return 0;
398
399         dpaa2_dev = container_of(dev, struct rte_dpaa2_device, device);
400
401         hw_id = dpaa2_dev->object_id;
402
403         dpni_dev = (struct fsl_mc_io *)malloc(sizeof(struct fsl_mc_io));
404         if (!dpni_dev) {
405                 PMD_INIT_LOG(ERR, "malloc failed for dpni device\n");
406                 return -1;
407         }
408
409         dpni_dev->regs = rte_mcp_ptr_list[0];
410         ret = dpni_open(dpni_dev, CMD_PRI_LOW, hw_id, &priv->token);
411         if (ret) {
412                 PMD_INIT_LOG(ERR, "Failure in opening dpni@%d device with"
413                         " error code %d\n", hw_id, ret);
414                 return -1;
415         }
416
417         /* Clean the device first */
418         ret = dpni_reset(dpni_dev, CMD_PRI_LOW, priv->token);
419         if (ret) {
420                 PMD_INIT_LOG(ERR, "Failure cleaning dpni@%d device with"
421                         " error code %d\n", hw_id, ret);
422                 return -1;
423         }
424
425         ret = dpni_get_attributes(dpni_dev, CMD_PRI_LOW, priv->token, &attr);
426         if (ret) {
427                 PMD_INIT_LOG(ERR, "Failure in getting dpni@%d attribute, "
428                         " error code %d\n", hw_id, ret);
429                 return -1;
430         }
431
432         priv->num_tc = attr.num_tcs;
433         for (i = 0; i < attr.num_tcs; i++) {
434                 priv->num_dist_per_tc[i] = attr.num_queues;
435                 break;
436         }
437
438         /* Distribution is per Tc only,
439          * so choosing RX queues from default TC only
440          */
441         priv->nb_rx_queues = priv->num_dist_per_tc[DPAA2_DEF_TC];
442
443         priv->nb_tx_queues = attr.num_queues;
444
445         priv->hw = dpni_dev;
446         priv->hw_id = hw_id;
447         priv->options = attr.options;
448         priv->max_mac_filters = attr.mac_filter_entries;
449         priv->max_vlan_filters = attr.vlan_filter_entries;
450         priv->flags = 0;
451
452         /* Allocate memory for hardware structure for queues */
453         ret = dpaa2_alloc_rx_tx_queues(eth_dev);
454         if (ret) {
455                 PMD_INIT_LOG(ERR, "dpaa2_alloc_rx_tx_queuesFailed\n");
456                 return -ret;
457         }
458
459         /* Allocate memory for storing MAC addresses */
460         eth_dev->data->mac_addrs = rte_zmalloc("dpni",
461                 ETHER_ADDR_LEN * attr.mac_filter_entries, 0);
462         if (eth_dev->data->mac_addrs == NULL) {
463                 PMD_INIT_LOG(ERR, "Failed to allocate %d bytes needed to "
464                                                 "store MAC addresses",
465                                 ETHER_ADDR_LEN * attr.mac_filter_entries);
466                 return -ENOMEM;
467         }
468
469         ret = dpni_get_primary_mac_addr(dpni_dev, CMD_PRI_LOW,
470                                         priv->token,
471                         (uint8_t *)(eth_dev->data->mac_addrs[0].addr_bytes));
472         if (ret) {
473                 PMD_INIT_LOG(ERR, "DPNI get mac address failed:"
474                                         " Error Code = %d\n", ret);
475                 return -ret;
476         }
477
478         eth_dev->dev_ops = &dpaa2_ethdev_ops;
479         eth_dev->data->drv_name = rte_dpaa2_pmd.driver.name;
480
481         return 0;
482 }
483
484 static int
485 dpaa2_dev_uninit(struct rte_eth_dev *eth_dev)
486 {
487         struct dpaa2_dev_priv *priv = eth_dev->data->dev_private;
488         struct fsl_mc_io *dpni = (struct fsl_mc_io *)priv->hw;
489         int i, ret;
490         struct dpaa2_queue *dpaa2_q;
491
492         PMD_INIT_FUNC_TRACE();
493
494         if (rte_eal_process_type() != RTE_PROC_PRIMARY)
495                 return -EPERM;
496
497         if (!dpni) {
498                 PMD_INIT_LOG(WARNING, "Already closed or not started");
499                 return -1;
500         }
501
502         dpaa2_dev_close(eth_dev);
503
504         if (priv->rx_vq[0]) {
505                 /* cleaning up queue storage */
506                 for (i = 0; i < priv->nb_rx_queues; i++) {
507                         dpaa2_q = (struct dpaa2_queue *)priv->rx_vq[i];
508                         if (dpaa2_q->q_storage)
509                                 rte_free(dpaa2_q->q_storage);
510                 }
511                 /*free the all queue memory */
512                 rte_free(priv->rx_vq[0]);
513                 priv->rx_vq[0] = NULL;
514         }
515
516         /* Allocate memory for storing MAC addresses */
517         if (eth_dev->data->mac_addrs) {
518                 rte_free(eth_dev->data->mac_addrs);
519                 eth_dev->data->mac_addrs = NULL;
520         }
521
522         /*Close the device at underlying layer*/
523         ret = dpni_close(dpni, CMD_PRI_LOW, priv->token);
524         if (ret) {
525                 PMD_INIT_LOG(ERR, "Failure closing dpni device with"
526                         " error code %d\n", ret);
527         }
528
529         /*Free the allocated memory for ethernet private data and dpni*/
530         priv->hw = NULL;
531         free(dpni);
532
533         eth_dev->dev_ops = NULL;
534
535         return 0;
536 }
537
538 static int
539 rte_dpaa2_probe(struct rte_dpaa2_driver *dpaa2_drv __rte_unused,
540                 struct rte_dpaa2_device *dpaa2_dev)
541 {
542         struct rte_eth_dev *eth_dev;
543         char ethdev_name[RTE_ETH_NAME_MAX_LEN];
544
545         int diag;
546
547         sprintf(ethdev_name, "dpni-%d", dpaa2_dev->object_id);
548
549         eth_dev = rte_eth_dev_allocate(ethdev_name);
550         if (eth_dev == NULL)
551                 return -ENOMEM;
552
553         if (rte_eal_process_type() == RTE_PROC_PRIMARY) {
554                 eth_dev->data->dev_private = rte_zmalloc(
555                                                 "ethdev private structure",
556                                                 sizeof(struct dpaa2_dev_priv),
557                                                 RTE_CACHE_LINE_SIZE);
558                 if (eth_dev->data->dev_private == NULL) {
559                         PMD_INIT_LOG(CRIT, "Cannot allocate memzone for"
560                                      " private port data\n");
561                         rte_eth_dev_release_port(eth_dev);
562                         return -ENOMEM;
563                 }
564         }
565         eth_dev->device = &dpaa2_dev->device;
566         dpaa2_dev->eth_dev = eth_dev;
567         eth_dev->data->rx_mbuf_alloc_failed = 0;
568
569         /* Invoke PMD device initialization function */
570         diag = dpaa2_dev_init(eth_dev);
571         if (diag == 0)
572                 return 0;
573
574         if (rte_eal_process_type() == RTE_PROC_PRIMARY)
575                 rte_free(eth_dev->data->dev_private);
576         rte_eth_dev_release_port(eth_dev);
577         return diag;
578 }
579
580 static int
581 rte_dpaa2_remove(struct rte_dpaa2_device *dpaa2_dev)
582 {
583         struct rte_eth_dev *eth_dev;
584
585         eth_dev = dpaa2_dev->eth_dev;
586         dpaa2_dev_uninit(eth_dev);
587
588         if (rte_eal_process_type() == RTE_PROC_PRIMARY)
589                 rte_free(eth_dev->data->dev_private);
590         rte_eth_dev_release_port(eth_dev);
591
592         return 0;
593 }
594
595 static struct rte_dpaa2_driver rte_dpaa2_pmd = {
596         .drv_type = DPAA2_MC_DPNI_DEVID,
597         .probe = rte_dpaa2_probe,
598         .remove = rte_dpaa2_remove,
599 };
600
601 RTE_PMD_REGISTER_DPAA2(net_dpaa2, rte_dpaa2_pmd);