Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152150258
D7414.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
651 B
Referenced Files
None
Subscribers
None
D7414.id.diff
View Options
Index: head/sys/dev/hyperv/vmbus/vmbus_brvar.h
===================================================================
--- head/sys/dev/hyperv/vmbus/vmbus_brvar.h
+++ head/sys/dev/hyperv/vmbus/vmbus_brvar.h
@@ -74,8 +74,12 @@
static __inline int
vmbus_txbr_maxpktsz(const struct vmbus_txbr *tbr)
{
- /* 1/2 data size */
- return (tbr->txbr_dsize / 2);
+ /*
+ * - 64 bits for the trailing start index (- sizeof(uint64_t)).
+ * - The rindex and windex can't be same (- 1). See
+ * the comment near vmbus_bufring.br_{r,w}index.
+ */
+ return (tbr->txbr_dsize - sizeof(uint64_t) - 1);
}
void vmbus_br_sysctl_create(struct sysctl_ctx_list *ctx,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 14, 2:07 AM (12 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31442113
Default Alt Text
D7414.id.diff (651 B)
Attached To
Mode
D7414: hyperv/vmbus: Only make sure the TX bufring will not be closed.
Attached
Detach File
Event Timeline
Log In to Comment