Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci 1. include headers for NS support
details: https://anonhg.NetBSD.org/src/rev/0f91c6134b63
branches: trunk
changeset: 477003:0f91c6134b63
user: drochner <drochner%NetBSD.org@localhost>
date: Wed Oct 06 11:23:33 1999 +0000
description:
1. include headers for NS support
2. pull in a fix from FreeBSD:
revision 1.18
date: 1999/09/17 18:04:14; author: wpaul; state: Exp; lines: +3 -3
Remember to account for ETHER_ALIGN when setting the maxmimum packet
length for mini receive ring. The max length was MHLEN, however the mbufs
are actually shortened to MHLEN - ETHER_ALIGN to force payload alignment.
diffstat:
sys/dev/pci/if_ti.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r caa4bfbfe150 -r 0f91c6134b63 sys/dev/pci/if_ti.c
--- a/sys/dev/pci/if_ti.c Wed Oct 06 09:19:46 1999 +0000
+++ b/sys/dev/pci/if_ti.c Wed Oct 06 11:23:33 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ti.c,v 1.1 1999/09/01 11:47:46 drochner Exp $ */
+/* $NetBSD: if_ti.c,v 1.2 1999/10/06 11:23:33 drochner Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -119,6 +119,11 @@
#include <netinet/if_inarp.h>
#endif
+#ifdef NS
+#include <netns/ns.h>
+#include <netns/ns_if.h>
+#endif
+
#if 0
#include <vm/vm.h> /* for vtophys */
#include <vm/pmap.h> /* for vtophys */
@@ -1583,7 +1588,7 @@
rcb = &sc->ti_rdata->ti_info.ti_mini_rx_rcb;
TI_HOSTADDR(rcb->ti_hostaddr) = sc->info_dmaaddr +
((caddr_t)&sc->ti_rdata->ti_rx_mini_ring - (caddr_t)sc->ti_rdata);
- rcb->ti_max_len = MHLEN;
+ rcb->ti_max_len = MHLEN - ETHER_ALIGN;
if (sc->ti_hwrev == TI_HWREV_TIGON)
rcb->ti_flags = TI_RCB_FLAG_RING_DISABLED;
else
Home |
Main Index |
Thread Index |
Old Index