diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2011-01-06 18:40:10 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2011-01-06 18:40:10 +0000 |
commit | 09e96d1f35c182ded88ab28e9ba26024d09f2a37 (patch) | |
tree | 9c02a4617f7bfdc2e86eeef0c429ae05ca76a836 /sys/arch/sparc64/dev | |
parent | c6c59da2d5a1c24c96a790dce1b88efe452190e4 (diff) |
Solaris insists on getting the right sequence numbers in DRING_DATA messages
and it seems we were off by one.
Diffstat (limited to 'sys/arch/sparc64/dev')
-rw-r--r-- | sys/arch/sparc64/dev/vdsp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/vdsp.c b/sys/arch/sparc64/dev/vdsp.c index 39f9a84e8c3..09365419ee3 100644 --- a/sys/arch/sparc64/dev/vdsp.c +++ b/sys/arch/sparc64/dev/vdsp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vdsp.c,v 1.6 2011/01/02 22:28:29 kettenis Exp $ */ +/* $OpenBSD: vdsp.c,v 1.7 2011/01/06 18:40:09 kettenis Exp $ */ /* * Copyright (c) 2009 Mark Kettenis * @@ -1364,7 +1364,7 @@ vdsp_ack_desc(struct vdsp_softc *sc, struct vd_desc *vd) dm.tag.stype = VIO_SUBTYPE_ACK; dm.tag.stype_env = VIO_DRING_DATA; dm.tag.sid = sc->sc_local_sid; - dm.seq_no = sc->sc_seq_no++; + dm.seq_no = ++sc->sc_seq_no; dm.dring_ident = sc->sc_dring_ident; off = (caddr_t)vd - sc->sc_vd; dm.start_idx = off / sc->sc_descriptor_size; |