git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
common/cnxk: add NPC init and fini
[dpdk.git]
/
drivers
/
common
/
cnxk
/
roc_idev.c
diff --git
a/drivers/common/cnxk/roc_idev.c
b/drivers/common/cnxk/roc_idev.c
index
bf9cce8
..
a92ac6a
100644
(file)
--- a/
drivers/common/cnxk/roc_idev.c
+++ b/
drivers/common/cnxk/roc_idev.c
@@
-142,3
+142,16
@@
roc_idev_num_lmtlines_get(void)
return num_lmtlines;
}
+
+struct roc_nix *
+roc_idev_npa_nix_get(void)
+{
+ struct npa_lf *npa_lf = idev_npa_obj_get();
+ struct dev *dev;
+
+ if (!npa_lf)
+ return NULL;
+
+ dev = container_of(npa_lf, struct dev, npa);
+ return dev->roc_nix;
+}