aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/netmap/ixgbe_netmap.h
diff options
context:
space:
mode:
authorLuigi Rizzo <luigi@FreeBSD.org>2012-04-12 14:06:05 +0000
committerLuigi Rizzo <luigi@FreeBSD.org>2012-04-12 14:06:05 +0000
commit4f609083e5724c5ae150d9bf977372900e04f6d1 (patch)
tree67d9809f2cafdf36c46e7fb87c3ab02f17b46a22 /sys/dev/netmap/ixgbe_netmap.h
parent3902d8a991387ba1fd7384820f17dd107d09793f (diff)
Notes
Diffstat (limited to 'sys/dev/netmap/ixgbe_netmap.h')
-rw-r--r--sys/dev/netmap/ixgbe_netmap.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/netmap/ixgbe_netmap.h b/sys/dev/netmap/ixgbe_netmap.h
index 6775dd399485..b448f95907f6 100644
--- a/sys/dev/netmap/ixgbe_netmap.h
+++ b/sys/dev/netmap/ixgbe_netmap.h
@@ -474,7 +474,12 @@ ixgbe_netmap_rxsync(struct ifnet *ifp, u_int ring_nr, int do_lock)
* rxr->next_to_check is set to 0 on a ring reinit
*/
if (netmap_no_pendintr || force_update) {
- int crclen = ix_crcstrip ? 0 : 4;
+ /* XXX apparently the length field in advanced descriptors
+ * does not include the CRC irrespective of the setting
+ * of CRCSTRIP. The data sheets say differently.
+ * Very strange.
+ */
+ int crclen = 0; // ix_crcstrip ? 0 : 4;
l = rxr->next_to_check;
j = netmap_idx_n2k(kring, l);