summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2012-08-08 17:50:25 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2012-08-08 17:50:25 +0000
commitdaeaa7f23c7c4ef46a99aded43a1464ff29377f2 (patch)
treece00a616a51c54e0e418ea43a634482fca3d5a68 /sys/dev/pci
parente9e21710716aeb3946cfd138c7905139e9809c47 (diff)
call m_cluncount to account correctly for cluster chains the driver
builds upon receiving a jumbo frame.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_oce.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/pci/if_oce.c b/sys/dev/pci/if_oce.c
index 80f95a41a25..488263fb48f 100644
--- a/sys/dev/pci/if_oce.c
+++ b/sys/dev/pci/if_oce.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_oce.c,v 1.6 2012/08/08 09:50:15 mikeb Exp $ */
+/* $OpenBSD: if_oce.c,v 1.7 2012/08/08 17:50:24 mikeb Exp $ */
/*
* Copyright (c) 2012 Mike Belopuhov
@@ -985,6 +985,9 @@ oce_rxeof(struct oce_rq *rq, struct oce_nic_rx_cqe *cqe)
goto exit;
}
+ /* Account for jumbo chains */
+ m_cluncount(m, 1);
+
m->m_pkthdr.rcvif = ifp;
#if NVLAN > 0
@@ -1029,9 +1032,8 @@ oce_rxeof(struct oce_rq *rq, struct oce_nic_rx_cqe *cqe)
#endif /* OCE_LRO */
#if NBPFILTER > 0
- if (ifp->if_bpf)
- bpf_mtap_ether(ifp->if_bpf, m,
- BPF_DIRECTION_IN);
+ if (ifp->if_bpf)
+ bpf_mtap_ether(ifp->if_bpf, m, BPF_DIRECTION_IN);
#endif
ether_input_mbuf(ifp, m);