blob: 51fe8de34b67de8fa2fecfb6f5f237803df67949 [file] [log] [blame]
Jakub Kicinski2633beb2017-02-09 09:17:28 -08001/*
2 * Copyright (C) 2015-2017 Netronome Systems, Inc.
3 *
4 * This software is dual licensed under the GNU General License Version 2,
5 * June 1991 as shown in the file COPYING in the top-level directory of this
6 * source tree or the BSD 2-Clause License provided below. You have the
7 * option to license this software under the complete terms of either license.
8 *
9 * The BSD 2-Clause License:
10 *
11 * Redistribution and use in source and binary forms, with or
12 * without modification, are permitted provided that the following
13 * conditions are met:
14 *
15 * 1. Redistributions of source code must retain the above
16 * copyright notice, this list of conditions and the following
17 * disclaimer.
18 *
19 * 2. Redistributions in binary form must reproduce the above
20 * copyright notice, this list of conditions and the following
21 * disclaimer in the documentation and/or other materials
22 * provided with the distribution.
23 *
24 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
28 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
29 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
30 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31 * SOFTWARE.
32 */
33
34/*
35 * nfp_main.c
36 * Authors: Jakub Kicinski <jakub.kicinski@netronome.com>
37 * Alejandro Lucero <alejandro.lucero@netronome.com>
38 * Jason McMullan <jason.mcmullan@netronome.com>
39 * Rolf Neugebauer <rolf.neugebauer@netronome.com>
40 */
41
42#include <linux/kernel.h>
43#include <linux/module.h>
Jakub Kicinski346cfe82017-05-26 01:03:31 -070044#include <linux/mutex.h>
Jakub Kicinski2633beb2017-02-09 09:17:28 -080045#include <linux/pci.h>
46#include <linux/firmware.h>
47#include <linux/vermagic.h>
Simon Horman1851f93f2017-05-26 01:03:32 -070048#include <net/devlink.h>
Jakub Kicinski2633beb2017-02-09 09:17:28 -080049
Jakub Kicinski63461a02017-02-09 09:17:38 -080050#include "nfpcore/nfp.h"
51#include "nfpcore/nfp_cpp.h"
Jakub Kicinski0bc38272017-02-19 11:58:14 -080052#include "nfpcore/nfp_nffw.h"
Jakub Kicinskice22f5a2017-04-04 16:12:30 -070053#include "nfpcore/nfp_nsp.h"
Jakub Kicinski63461a02017-02-09 09:17:38 -080054
55#include "nfpcore/nfp6000_pcie.h"
56
Jakub Kicinski2633beb2017-02-09 09:17:28 -080057#include "nfp_main.h"
58#include "nfp_net.h"
59
60static const char nfp_driver_name[] = "nfp";
61const char nfp_driver_version[] = VERMAGIC_STRING;
62
Jakub Kicinski63461a02017-02-09 09:17:38 -080063static const struct pci_device_id nfp_pci_device_ids[] = {
Simon Horman3b473522017-02-17 08:57:54 +010064 { PCI_VENDOR_ID_NETRONOME, PCI_DEVICE_ID_NETRONOME_NFP6000,
Jakub Kicinski63461a02017-02-09 09:17:38 -080065 PCI_VENDOR_ID_NETRONOME, PCI_ANY_ID,
66 PCI_ANY_ID, 0,
67 },
Simon Horman3b473522017-02-17 08:57:54 +010068 { PCI_VENDOR_ID_NETRONOME, PCI_DEVICE_ID_NETRONOME_NFP4000,
Jakub Kicinski63461a02017-02-09 09:17:38 -080069 PCI_VENDOR_ID_NETRONOME, PCI_ANY_ID,
70 PCI_ANY_ID, 0,
71 },
72 { 0, } /* Required last entry. */
73};
74MODULE_DEVICE_TABLE(pci, nfp_pci_device_ids);
75
Jakub Kicinski651e1f22017-05-28 17:52:54 -070076static int nfp_pcie_sriov_read_nfd_limit(struct nfp_pf *pf)
Jakub Kicinski0bc38272017-02-19 11:58:14 -080077{
Jakub Kicinski0bc38272017-02-19 11:58:14 -080078 int err;
79
Jakub Kicinskiaf4fa7e2017-06-08 20:56:11 -070080 pf->limit_vfs = nfp_rtsym_read_le(pf->rtbl, "nfd_vf_cfg_max_vfs", &err);
Jakub Kicinski0bc38272017-02-19 11:58:14 -080081 if (!err)
Jakub Kicinski651e1f22017-05-28 17:52:54 -070082 return pci_sriov_set_totalvfs(pf->pdev, pf->limit_vfs);
Jakub Kicinski0bc38272017-02-19 11:58:14 -080083
84 pf->limit_vfs = ~0;
Jakub Kicinski651e1f22017-05-28 17:52:54 -070085 pci_sriov_set_totalvfs(pf->pdev, 0); /* 0 is unset */
Jakub Kicinski0bc38272017-02-19 11:58:14 -080086 /* Allow any setting for backwards compatibility if symbol not found */
Jakub Kicinski651e1f22017-05-28 17:52:54 -070087 if (err == -ENOENT)
88 return 0;
89
90 nfp_warn(pf->cpp, "Warning: VF limit read failed: %d\n", err);
91 return err;
Jakub Kicinski0bc38272017-02-19 11:58:14 -080092}
93
Jakub Kicinski63461a02017-02-09 09:17:38 -080094static int nfp_pcie_sriov_enable(struct pci_dev *pdev, int num_vfs)
95{
96#ifdef CONFIG_PCI_IOV
97 struct nfp_pf *pf = pci_get_drvdata(pdev);
98 int err;
99
Jakub Kicinski0bc38272017-02-19 11:58:14 -0800100 if (num_vfs > pf->limit_vfs) {
101 nfp_info(pf->cpp, "Firmware limits number of VFs to %u\n",
102 pf->limit_vfs);
103 return -EINVAL;
104 }
105
Jakub Kicinski63461a02017-02-09 09:17:38 -0800106 err = pci_enable_sriov(pdev, num_vfs);
107 if (err) {
108 dev_warn(&pdev->dev, "Failed to enable PCI sriov: %d\n", err);
109 return err;
110 }
111
112 pf->num_vfs = num_vfs;
113
114 dev_dbg(&pdev->dev, "Created %d VFs.\n", pf->num_vfs);
115
116 return num_vfs;
117#endif
118 return 0;
119}
120
121static int nfp_pcie_sriov_disable(struct pci_dev *pdev)
122{
123#ifdef CONFIG_PCI_IOV
124 struct nfp_pf *pf = pci_get_drvdata(pdev);
125
126 /* If the VFs are assigned we cannot shut down SR-IOV without
127 * causing issues, so just leave the hardware available but
128 * disabled
129 */
130 if (pci_vfs_assigned(pdev)) {
131 dev_warn(&pdev->dev, "Disabling while VFs assigned - VFs will not be deallocated\n");
132 return -EPERM;
133 }
134
135 pf->num_vfs = 0;
136
137 pci_disable_sriov(pdev);
138 dev_dbg(&pdev->dev, "Removed VFs.\n");
139#endif
140 return 0;
141}
142
143static int nfp_pcie_sriov_configure(struct pci_dev *pdev, int num_vfs)
144{
145 if (num_vfs == 0)
146 return nfp_pcie_sriov_disable(pdev);
147 else
148 return nfp_pcie_sriov_enable(pdev, num_vfs);
149}
150
151/**
152 * nfp_net_fw_find() - Find the correct firmware image for netdev mode
153 * @pdev: PCI Device structure
154 * @pf: NFP PF Device structure
155 *
156 * Return: firmware if found and requested successfully.
157 */
158static const struct firmware *
159nfp_net_fw_find(struct pci_dev *pdev, struct nfp_pf *pf)
160{
161 const struct firmware *fw = NULL;
162 struct nfp_eth_table_port *port;
163 const char *fw_model;
164 char fw_name[256];
165 int spc, err = 0;
166 int i, j;
167
168 if (!pf->eth_tbl) {
169 dev_err(&pdev->dev, "Error: can't identify media config\n");
170 return NULL;
171 }
172
173 fw_model = nfp_hwinfo_lookup(pf->cpp, "assembly.partno");
174 if (!fw_model) {
175 dev_err(&pdev->dev, "Error: can't read part number\n");
176 return NULL;
177 }
178
179 spc = ARRAY_SIZE(fw_name);
180 spc -= snprintf(fw_name, spc, "netronome/nic_%s", fw_model);
181
182 for (i = 0; spc > 0 && i < pf->eth_tbl->count; i += j) {
183 port = &pf->eth_tbl->ports[i];
184 j = 1;
185 while (i + j < pf->eth_tbl->count &&
186 port->speed == port[j].speed)
187 j++;
188
189 spc -= snprintf(&fw_name[ARRAY_SIZE(fw_name) - spc], spc,
190 "_%dx%d", j, port->speed / 1000);
191 }
192
193 if (spc <= 0)
194 return NULL;
195
196 spc -= snprintf(&fw_name[ARRAY_SIZE(fw_name) - spc], spc, ".nffw");
197 if (spc <= 0)
198 return NULL;
199
200 err = request_firmware(&fw, fw_name, &pdev->dev);
201 if (err)
202 return NULL;
203
204 dev_info(&pdev->dev, "Loading FW image: %s\n", fw_name);
205
206 return fw;
207}
208
209/**
210 * nfp_net_fw_load() - Load the firmware image
211 * @pdev: PCI Device structure
212 * @pf: NFP PF Device structure
213 * @nsp: NFP SP handle
214 *
215 * Return: -ERRNO, 0 for no firmware loaded, 1 for firmware loaded
216 */
217static int
218nfp_fw_load(struct pci_dev *pdev, struct nfp_pf *pf, struct nfp_nsp *nsp)
219{
220 const struct firmware *fw;
221 u16 interface;
222 int err;
223
224 interface = nfp_cpp_interface(pf->cpp);
225 if (NFP_CPP_INTERFACE_UNIT_of(interface) != 0) {
226 /* Only Unit 0 should reset or load firmware */
227 dev_info(&pdev->dev, "Firmware will be loaded by partner\n");
228 return 0;
229 }
230
231 fw = nfp_net_fw_find(pdev, pf);
232 if (!fw)
233 return 0;
234
235 dev_info(&pdev->dev, "Soft-reset, loading FW image\n");
236 err = nfp_nsp_device_soft_reset(nsp);
237 if (err < 0) {
238 dev_err(&pdev->dev, "Failed to soft reset the NFP: %d\n",
239 err);
240 goto exit_release_fw;
241 }
242
243 err = nfp_nsp_load_fw(nsp, fw);
244
245 if (err < 0) {
246 dev_err(&pdev->dev, "FW loading failed: %d\n", err);
247 goto exit_release_fw;
248 }
249
250 dev_info(&pdev->dev, "Finished loading FW image\n");
251
252exit_release_fw:
253 release_firmware(fw);
254
255 return err < 0 ? err : 1;
256}
257
Jakub Kicinskia9c83f72017-02-19 11:58:08 -0800258static int nfp_nsp_init(struct pci_dev *pdev, struct nfp_pf *pf)
259{
260 struct nfp_nsp *nsp;
261 int err;
262
263 nsp = nfp_nsp_open(pf->cpp);
264 if (IS_ERR(nsp)) {
265 err = PTR_ERR(nsp);
266 dev_err(&pdev->dev, "Failed to access the NSP: %d\n", err);
267 return err;
268 }
269
270 err = nfp_nsp_wait(nsp);
271 if (err < 0)
272 goto exit_close_nsp;
273
274 pf->eth_tbl = __nfp_eth_read_ports(pf->cpp, nsp);
275
David Bruneczeefbde72017-05-28 17:53:00 -0700276 pf->nspi = __nfp_nsp_identify(nsp);
277 if (pf->nspi)
278 dev_info(&pdev->dev, "BSP: %s\n", pf->nspi->version);
David Brunecz010e2f92017-04-22 20:17:54 -0700279
Jakub Kicinskia9c83f72017-02-19 11:58:08 -0800280 err = nfp_fw_load(pdev, pf, nsp);
281 if (err < 0) {
Jakub Kicinski47eaa232017-05-31 08:06:51 -0700282 kfree(pf->nspi);
Jakub Kicinskia9c83f72017-02-19 11:58:08 -0800283 kfree(pf->eth_tbl);
284 dev_err(&pdev->dev, "Failed to load FW\n");
285 goto exit_close_nsp;
286 }
287
288 pf->fw_loaded = !!err;
289 err = 0;
290
291exit_close_nsp:
292 nfp_nsp_close(nsp);
293
294 return err;
295}
296
Jakub Kicinski63461a02017-02-09 09:17:38 -0800297static void nfp_fw_unload(struct nfp_pf *pf)
298{
299 struct nfp_nsp *nsp;
300 int err;
301
302 nsp = nfp_nsp_open(pf->cpp);
303 if (IS_ERR(nsp)) {
304 nfp_err(pf->cpp, "Reset failed, can't open NSP\n");
305 return;
306 }
307
308 err = nfp_nsp_device_soft_reset(nsp);
309 if (err < 0)
310 dev_warn(&pf->pdev->dev, "Couldn't unload firmware: %d\n", err);
311 else
312 dev_info(&pf->pdev->dev, "Firmware safely unloaded\n");
313
314 nfp_nsp_close(nsp);
315}
316
317static int nfp_pci_probe(struct pci_dev *pdev,
318 const struct pci_device_id *pci_id)
319{
Simon Horman1851f93f2017-05-26 01:03:32 -0700320 struct devlink *devlink;
Jakub Kicinski63461a02017-02-09 09:17:38 -0800321 struct nfp_pf *pf;
322 int err;
323
324 err = pci_enable_device(pdev);
325 if (err < 0)
326 return err;
327
328 pci_set_master(pdev);
329
330 err = dma_set_mask_and_coherent(&pdev->dev,
331 DMA_BIT_MASK(NFP_NET_MAX_DMA_BITS));
332 if (err)
333 goto err_pci_disable;
334
335 err = pci_request_regions(pdev, nfp_driver_name);
336 if (err < 0) {
337 dev_err(&pdev->dev, "Unable to reserve pci resources.\n");
338 goto err_pci_disable;
339 }
340
Simon Horman1851f93f2017-05-26 01:03:32 -0700341 devlink = devlink_alloc(&nfp_devlink_ops, sizeof(*pf));
342 if (!devlink) {
Jakub Kicinski63461a02017-02-09 09:17:38 -0800343 err = -ENOMEM;
344 goto err_rel_regions;
345 }
Simon Horman1851f93f2017-05-26 01:03:32 -0700346 pf = devlink_priv(devlink);
Jakub Kicinskid4e7f092017-05-22 10:59:24 -0700347 INIT_LIST_HEAD(&pf->vnics);
Jakub Kicinski3eb3b742017-05-22 10:59:31 -0700348 INIT_LIST_HEAD(&pf->ports);
Jakub Kicinski346cfe82017-05-26 01:03:31 -0700349 mutex_init(&pf->lock);
Jakub Kicinski63461a02017-02-09 09:17:38 -0800350 pci_set_drvdata(pdev, pf);
351 pf->pdev = pdev;
352
353 pf->cpp = nfp_cpp_from_nfp6000_pcie(pdev);
354 if (IS_ERR_OR_NULL(pf->cpp)) {
355 err = PTR_ERR(pf->cpp);
356 if (err >= 0)
357 err = -ENOMEM;
358 goto err_disable_msix;
359 }
360
Jakub Kicinski64db09e2017-02-19 11:58:09 -0800361 dev_info(&pdev->dev, "Assembly: %s%s%s-%s CPLD: %s\n",
362 nfp_hwinfo_lookup(pf->cpp, "assembly.vendor"),
363 nfp_hwinfo_lookup(pf->cpp, "assembly.partno"),
364 nfp_hwinfo_lookup(pf->cpp, "assembly.serial"),
365 nfp_hwinfo_lookup(pf->cpp, "assembly.revision"),
366 nfp_hwinfo_lookup(pf->cpp, "cpld.version"));
367
Simon Horman1851f93f2017-05-26 01:03:32 -0700368 err = devlink_register(devlink, &pdev->dev);
Jakub Kicinskia9c83f72017-02-19 11:58:08 -0800369 if (err)
Jakub Kicinski63461a02017-02-09 09:17:38 -0800370 goto err_cpp_free;
Jakub Kicinski63461a02017-02-09 09:17:38 -0800371
Simon Horman1851f93f2017-05-26 01:03:32 -0700372 err = nfp_nsp_init(pdev, pf);
373 if (err)
374 goto err_devlink_unreg;
375
Jakub Kicinskiaf4fa7e2017-06-08 20:56:11 -0700376 pf->rtbl = nfp_rtsym_table_read(pf->cpp);
377
Jakub Kicinski651e1f22017-05-28 17:52:54 -0700378 err = nfp_pcie_sriov_read_nfd_limit(pf);
Jakub Kicinski63461a02017-02-09 09:17:38 -0800379 if (err)
380 goto err_fw_unload;
381
Jakub Kicinski651e1f22017-05-28 17:52:54 -0700382 err = nfp_net_pci_probe(pf);
383 if (err)
384 goto err_sriov_unlimit;
385
David Bruneczeefbde72017-05-28 17:53:00 -0700386 err = nfp_hwmon_register(pf);
387 if (err) {
388 dev_err(&pdev->dev, "Failed to register hwmon info\n");
389 goto err_net_remove;
390 }
391
Jakub Kicinski63461a02017-02-09 09:17:38 -0800392 return 0;
393
David Bruneczeefbde72017-05-28 17:53:00 -0700394err_net_remove:
395 nfp_net_pci_remove(pf);
Jakub Kicinski651e1f22017-05-28 17:52:54 -0700396err_sriov_unlimit:
397 pci_sriov_set_totalvfs(pf->pdev, 0);
Jakub Kicinski63461a02017-02-09 09:17:38 -0800398err_fw_unload:
Jakub Kicinskiaf4fa7e2017-06-08 20:56:11 -0700399 kfree(pf->rtbl);
Jakub Kicinski63461a02017-02-09 09:17:38 -0800400 if (pf->fw_loaded)
401 nfp_fw_unload(pf);
Jakub Kicinski63461a02017-02-09 09:17:38 -0800402 kfree(pf->eth_tbl);
David Bruneczeefbde72017-05-28 17:53:00 -0700403 kfree(pf->nspi);
Simon Horman1851f93f2017-05-26 01:03:32 -0700404err_devlink_unreg:
405 devlink_unregister(devlink);
Jakub Kicinski63461a02017-02-09 09:17:38 -0800406err_cpp_free:
407 nfp_cpp_free(pf->cpp);
408err_disable_msix:
409 pci_set_drvdata(pdev, NULL);
Jakub Kicinski346cfe82017-05-26 01:03:31 -0700410 mutex_destroy(&pf->lock);
Simon Horman1851f93f2017-05-26 01:03:32 -0700411 devlink_free(devlink);
Jakub Kicinski63461a02017-02-09 09:17:38 -0800412err_rel_regions:
413 pci_release_regions(pdev);
414err_pci_disable:
415 pci_disable_device(pdev);
416
417 return err;
418}
419
420static void nfp_pci_remove(struct pci_dev *pdev)
421{
422 struct nfp_pf *pf = pci_get_drvdata(pdev);
Simon Horman1851f93f2017-05-26 01:03:32 -0700423 struct devlink *devlink;
424
David Bruneczeefbde72017-05-28 17:53:00 -0700425 nfp_hwmon_unregister(pf);
426
Simon Horman1851f93f2017-05-26 01:03:32 -0700427 devlink = priv_to_devlink(pf);
Jakub Kicinski63461a02017-02-09 09:17:38 -0800428
Jakub Kicinskid12537d2017-04-04 16:12:24 -0700429 nfp_net_pci_remove(pf);
Jakub Kicinski63461a02017-02-09 09:17:38 -0800430
431 nfp_pcie_sriov_disable(pdev);
Jakub Kicinski651e1f22017-05-28 17:52:54 -0700432 pci_sriov_set_totalvfs(pf->pdev, 0);
Jakub Kicinski63461a02017-02-09 09:17:38 -0800433
Simon Horman1851f93f2017-05-26 01:03:32 -0700434 devlink_unregister(devlink);
435
Jakub Kicinskiaf4fa7e2017-06-08 20:56:11 -0700436 kfree(pf->rtbl);
Jakub Kicinski63461a02017-02-09 09:17:38 -0800437 if (pf->fw_loaded)
438 nfp_fw_unload(pf);
439
440 pci_set_drvdata(pdev, NULL);
441 nfp_cpp_free(pf->cpp);
442
443 kfree(pf->eth_tbl);
David Bruneczeefbde72017-05-28 17:53:00 -0700444 kfree(pf->nspi);
Jakub Kicinski346cfe82017-05-26 01:03:31 -0700445 mutex_destroy(&pf->lock);
Simon Horman1851f93f2017-05-26 01:03:32 -0700446 devlink_free(devlink);
Jakub Kicinski63461a02017-02-09 09:17:38 -0800447 pci_release_regions(pdev);
448 pci_disable_device(pdev);
449}
450
451static struct pci_driver nfp_pci_driver = {
452 .name = nfp_driver_name,
453 .id_table = nfp_pci_device_ids,
454 .probe = nfp_pci_probe,
455 .remove = nfp_pci_remove,
456 .sriov_configure = nfp_pcie_sriov_configure,
457};
458
Jakub Kicinski2633beb2017-02-09 09:17:28 -0800459static int __init nfp_main_init(void)
460{
461 int err;
462
463 pr_info("%s: NFP PCIe Driver, Copyright (C) 2014-2017 Netronome Systems\n",
464 nfp_driver_name);
465
466 nfp_net_debugfs_create();
467
Jakub Kicinski63461a02017-02-09 09:17:38 -0800468 err = pci_register_driver(&nfp_pci_driver);
469 if (err < 0)
470 goto err_destroy_debugfs;
471
Jakub Kicinski2633beb2017-02-09 09:17:28 -0800472 err = pci_register_driver(&nfp_netvf_pci_driver);
473 if (err)
Jakub Kicinski63461a02017-02-09 09:17:38 -0800474 goto err_unreg_pf;
Jakub Kicinski2633beb2017-02-09 09:17:28 -0800475
476 return err;
477
Jakub Kicinski63461a02017-02-09 09:17:38 -0800478err_unreg_pf:
479 pci_unregister_driver(&nfp_pci_driver);
Jakub Kicinski2633beb2017-02-09 09:17:28 -0800480err_destroy_debugfs:
481 nfp_net_debugfs_destroy();
482 return err;
483}
484
485static void __exit nfp_main_exit(void)
486{
487 pci_unregister_driver(&nfp_netvf_pci_driver);
Jakub Kicinski63461a02017-02-09 09:17:38 -0800488 pci_unregister_driver(&nfp_pci_driver);
Jakub Kicinski2633beb2017-02-09 09:17:28 -0800489 nfp_net_debugfs_destroy();
490}
491
492module_init(nfp_main_init);
493module_exit(nfp_main_exit);
494
Jakub Kicinski63461a02017-02-09 09:17:38 -0800495MODULE_FIRMWARE("netronome/nic_AMDA0081-0001_1x40.nffw");
496MODULE_FIRMWARE("netronome/nic_AMDA0081-0001_4x10.nffw");
497MODULE_FIRMWARE("netronome/nic_AMDA0096-0001_2x10.nffw");
498MODULE_FIRMWARE("netronome/nic_AMDA0097-0001_2x40.nffw");
499MODULE_FIRMWARE("netronome/nic_AMDA0097-0001_4x10_1x40.nffw");
500MODULE_FIRMWARE("netronome/nic_AMDA0097-0001_8x10.nffw");
501MODULE_FIRMWARE("netronome/nic_AMDA0099-0001_2x10.nffw");
502MODULE_FIRMWARE("netronome/nic_AMDA0099-0001_2x25.nffw");
503
Jakub Kicinski2633beb2017-02-09 09:17:28 -0800504MODULE_AUTHOR("Netronome Systems <oss-drivers@netronome.com>");
505MODULE_LICENSE("GPL");
506MODULE_DESCRIPTION("The Netronome Flow Processor (NFP) driver.");