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
net/nfp: write MAC address to configuration bar
[dpdk.git]
/
drivers
/
net
/
nfp
/
nfp_net_pmd.h
diff --git
a/drivers/net/nfp/nfp_net_pmd.h
b/drivers/net/nfp/nfp_net_pmd.h
index
eec56bc
..
c6bddaa
100644
(file)
--- a/
drivers/net/nfp/nfp_net_pmd.h
+++ b/
drivers/net/nfp/nfp_net_pmd.h
@@
-143,6
+143,11
@@
static inline void nn_writel(uint32_t val, volatile void *addr)
rte_write32(val, addr);
}
+static inline void nn_writew(uint16_t val, volatile void *addr)
+{
+ rte_write16(val, addr);
+}
+
static inline uint64_t nn_readq(volatile void *addr)
{
const volatile uint32_t *p = addr;