diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2016-01-22 19:33:31 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2016-01-22 19:33:31 +0000 |
commit | 06c2a0efe89c1699f170d21ca52e9f4859685e09 (patch) | |
tree | 99510b64d614e875c344ae59861092ab005b40a0 /sys/dev/pv/if_xnf.c | |
parent | b7fef9e841acd7e80c0171b8c3384257d56b3b18 (diff) |
Set minimum number of slots on the receive ring to 18
After some experimentation, discussions with Xen folks and pondering Linux
source code, it became clear that most versions of Xen require at least 18
slots available on the receive ring to send an event.
Diffstat (limited to 'sys/dev/pv/if_xnf.c')
-rw-r--r-- | sys/dev/pv/if_xnf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pv/if_xnf.c b/sys/dev/pv/if_xnf.c index 8c2832441db..d7ec2a03bd4 100644 --- a/sys/dev/pv/if_xnf.c +++ b/sys/dev/pv/if_xnf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_xnf.c,v 1.9 2016/01/20 10:04:32 mikeb Exp $ */ +/* $OpenBSD: if_xnf.c,v 1.10 2016/01/22 19:33:30 mikeb Exp $ */ /* * Copyright (c) 2015, 2016 Mike Belopuhov @@ -81,7 +81,7 @@ union xnf_rx_desc { #define XNF_RX_DESC 256 #define XNF_MCLEN PAGE_SIZE -#define XNF_RX_MIN 32 +#define XNF_RX_MIN 18 struct xnf_rx_ring { uint32_t rxr_prod; |