summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2012-08-09 19:12:46 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2012-08-09 19:12:46 +0000
commit313eff30286820e1e6dc07f69949b593af9a9462 (patch)
treeae25cf6a6ec2382fd403cc6173a360747d9c9307 /sys/dev
parentcc071da6d54e7128b20273a20e43dd0fb6d4d0dc (diff)
more htole conversions
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/oce.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/oce.c b/sys/dev/pci/oce.c
index 6f08eacbade..beffc97b9f2 100644
--- a/sys/dev/pci/oce.c
+++ b/sys/dev/pci/oce.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: oce.c,v 1.2 2012/08/09 19:03:14 mikeb Exp $ */
+/* $OpenBSD: oce.c,v 1.3 2012/08/09 19:12:45 mikeb Exp $ */
/*-
* Copyright (C) 2012 Emulex
@@ -1587,9 +1587,9 @@ oce_mbox_create_rq(struct oce_rq *rq)
fwcmd->params.req.frag_size = OCE_LOG2(rq->cfg.frag_size);
fwcmd->params.req.num_pages = num_pages;
fwcmd->params.req.cq_id = rq->cq->cq_id;
- fwcmd->params.req.if_id = sc->if_id;
- fwcmd->params.req.max_frame_size = rq->cfg.mtu;
- fwcmd->params.req.is_rss_queue = rq->cfg.is_rss_queue;
+ fwcmd->params.req.if_id = htole32(sc->if_id);
+ fwcmd->params.req.max_frame_size = htole16(rq->cfg.mtu);
+ fwcmd->params.req.is_rss_queue = htole32(rq->cfg.is_rss_queue);
mbx.u0.s.embedded = 1;
mbx.payload_length = sizeof(struct mbx_create_nic_rq);