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
event/octeontx: introduce specialized mbox message copy
[dpdk.git]
/
drivers
/
event
/
octeontx
/
ssovf_mbox.c
diff --git
a/drivers/event/octeontx/ssovf_mbox.c
b/drivers/event/octeontx/ssovf_mbox.c
index
764414b
..
9ed417d
100644
(file)
--- a/
drivers/event/octeontx/ssovf_mbox.c
+++ b/
drivers/event/octeontx/ssovf_mbox.c
@@
-87,6
+87,16
@@
struct mbox_ram_hdr {
};
};
};
};
+
+static inline void
+mbox_msgcpy(uint8_t *d, const uint8_t *s, uint16_t size)
+{
+ uint16_t i;
+
+ for (i = 0; i < size; i++)
+ d[i] = s[i];
+}
+
static inline void
mbox_send_request(struct mbox *m, struct octeontx_mbox_hdr *hdr,
const void *txmsg, uint16_t txsize)
static inline void
mbox_send_request(struct mbox *m, struct octeontx_mbox_hdr *hdr,
const void *txmsg, uint16_t txsize)
@@
-106,7
+116,7
@@
mbox_send_request(struct mbox *m, struct octeontx_mbox_hdr *hdr,
/* Copy msg body */
if (txmsg)
/* Copy msg body */
if (txmsg)
- m
em
cpy(ram_mbox_msg, txmsg, txsize);
+ m
box_msg
cpy(ram_mbox_msg, txmsg, txsize);
/* Prepare new hdr */
new_hdr.chan_state = MBOX_CHAN_STATE_REQ;
/* Prepare new hdr */
new_hdr.chan_state = MBOX_CHAN_STATE_REQ;
@@
-166,7
+176,7
@@
mbox_wait_response(struct mbox *m, struct octeontx_mbox_hdr *hdr,
len = RTE_MIN(rx_hdr.len, rxsize);
if (rxmsg)
len = RTE_MIN(rx_hdr.len, rxsize);
if (rxmsg)
- m
em
cpy(rxmsg, ram_mbox_msg, len);
+ m
box_msg
cpy(rxmsg, ram_mbox_msg, len);
return len;
return len;