Code Review
/
deb_dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
New upstream version 17.11.1
[deb_dpdk.git]
/
drivers
/
mempool
/
octeontx
/
octeontx_mbox.c
diff --git
a/drivers/mempool/octeontx/octeontx_mbox.c
b/drivers/mempool/octeontx/octeontx_mbox.c
index
9525da1
..
a38bfe6
100644
(file)
--- a/
drivers/mempool/octeontx/octeontx_mbox.c
+++ b/
drivers/mempool/octeontx/octeontx_mbox.c
@@
-89,7
+89,7
@@
struct mbox_ram_hdr {
};
static inline void
};
static inline void
-mbox_msgcpy(
uint8_t *d,
const uint8_t *s, uint16_t size)
+mbox_msgcpy(
volatile uint8_t *d, volatile
const uint8_t *s, uint16_t size)
{
uint16_t i;
{
uint16_t i;
@@
-128,7
+128,7
@@
mbox_send_request(struct mbox *m, struct octeontx_mbox_hdr *hdr,
/* Write the msg header */
rte_write64(new_hdr.u64, ram_mbox_hdr);
/* Write the msg header */
rte_write64(new_hdr.u64, ram_mbox_hdr);
- rte_
io
_wmb();
+ rte_
smp
_wmb();
/* Notify PF about the new msg - write to MBOX reg generates PF IRQ */
rte_write64(0, m->reg);
}
/* Notify PF about the new msg - write to MBOX reg generates PF IRQ */
rte_write64(0, m->reg);
}