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/mlx5: add Direct Verbs constants for Windows
[dpdk.git]
/
drivers
/
bus
/
vmbus
/
vmbus_bufring.c
diff --git
a/drivers/bus/vmbus/vmbus_bufring.c
b/drivers/bus/vmbus/vmbus_bufring.c
index
c880016
..
c4aa07b
100644
(file)
--- a/
drivers/bus/vmbus/vmbus_bufring.c
+++ b/
drivers/bus/vmbus/vmbus_bufring.c
@@
-54,10
+54,10
@@
void vmbus_br_setup(struct vmbus_br *br, void *buf, unsigned int blen)
* data have arrived.
*/
static inline bool
* data have arrived.
*/
static inline bool
-vmbus_txbr_need_signal(const struct vmbus_b
r *t
br, uint32_t old_windex)
+vmbus_txbr_need_signal(const struct vmbus_b
ufring *v
br, uint32_t old_windex)
{
rte_smp_mb();
{
rte_smp_mb();
- if (
tbr->
vbr->imask)
+ if (vbr->imask)
return false;
rte_smp_rmb();
return false;
rte_smp_rmb();
@@
-66,7
+66,7
@@
vmbus_txbr_need_signal(const struct vmbus_br *tbr, uint32_t old_windex)
* This is the only case we need to signal when the
* ring transitions from being empty to non-empty.
*/
* This is the only case we need to signal when the
* ring transitions from being empty to non-empty.
*/
- return old_windex ==
tbr->
vbr->rindex;
+ return old_windex == vbr->rindex;
}
static inline uint32_t
}
static inline uint32_t
@@
-163,7
+163,7
@@
vmbus_txbr_write(struct vmbus_br *tbr, const struct iovec iov[], int iovlen,
rte_pause();
/* If host had read all data before this, then need to signal */
rte_pause();
/* If host had read all data before this, then need to signal */
- *need_sig |= vmbus_txbr_need_signal(
t
br, old_windex);
+ *need_sig |= vmbus_txbr_need_signal(
v
br, old_windex);
return 0;
}
return 0;
}