From owner-freebsd-current@FreeBSD.ORG Sat Oct 16 03:14:23 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 51C3B16A4CE for ; Sat, 16 Oct 2004 03:14:23 +0000 (GMT) Received: from mail.mcneil.com (mcneil.com [24.199.45.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 020E143D54 for ; Sat, 16 Oct 2004 03:14:23 +0000 (GMT) (envelope-from sean@mcneil.com) Received: from localhost (localhost.mcneil.com [127.0.0.1]) by mail.mcneil.com (Postfix) with ESMTP id A8965F194C for ; Fri, 15 Oct 2004 20:14:22 -0700 (PDT) Received: from mail.mcneil.com ([127.0.0.1]) by localhost (server.mcneil.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00662-01 for ; Fri, 15 Oct 2004 20:14:21 -0700 (PDT) Received: from [24.199.45.54] (mcneil.com [24.199.45.54]) by mail.mcneil.com (Postfix) with ESMTP id 1E950F186D for ; Fri, 15 Oct 2004 20:14:21 -0700 (PDT) From: Sean McNeil To: freebsd-current@freebsd.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-lwYYv3ESRb1EHpF9gfwt" Message-Id: <1097896460.1123.2.camel@server.mcneil.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Fri, 15 Oct 2004 20:14:20 -0700 X-Virus-Scanned: by amavisd-new at mcneil.com Subject: re0 fix that works with polling X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Oct 2004 03:14:23 -0000 --=-lwYYv3ESRb1EHpF9gfwt Content-Type: multipart/mixed; boundary="=-cs8p8cAqBDThbZdFLYLl" --=-cs8p8cAqBDThbZdFLYLl Content-Type: text/plain Content-Transfer-Encoding: quoted-printable The following changes allows me to stream a 15Mbps video content with re0 and not lose any packets. I had to decrease the timer count so it checks more often and I modified it so that polling disables all but the timer interrupt. Attached is a patch to -current. Cheers, Sean --=-cs8p8cAqBDThbZdFLYLl Content-Disposition: attachment; filename=if_re.c.diff Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name=if_re.c.diff; charset=ISO-8859-1 KioqIHN5cy9kZXYvcmUvaWZfcmUuY34JVHVlIFNlcCAyOCAxMToyMjoyNCAyMDA0DQotLS0gc3lz L2Rldi9yZS9pZl9yZS5jCUZyaSBPY3QgMTUgMjA6MDE6MTEgMjAwNA0KKioqKioqKioqKioqKioq IHJlX2ludHIoYXJnKQ0KKioqIDE4MjgsMTgzOCAqKioqDQogIAkJZ290byBkb25lX2xvY2tlZDsN CiAgDQogICNpZmRlZiBERVZJQ0VfUE9MTElORw0KISAJaWYgIChpZnAtPmlmX2ZsYWdzICYgSUZG X1BPTExJTkcpDQohIAkJZ290byBkb25lX2xvY2tlZDsNCiEgCWlmICgoaWZwLT5pZl9jYXBlbmFi bGUgJiBJRkNBUF9QT0xMSU5HKSAmJg0KISAJICAgIGV0aGVyX3BvbGxfcmVnaXN0ZXIocmVfcG9s bCwgaWZwKSkgeyAvKiBvaywgZGlzYWJsZSBpbnRlcnJ1cHRzICovDQohIAkJQ1NSX1dSSVRFXzIo c2MsIFJMX0lNUiwgMHgwMDAwKTsNCiAgCQlyZV9wb2xsX2xvY2tlZChpZnAsIDAsIDEpOw0KICAJ CWdvdG8gZG9uZV9sb2NrZWQ7DQogIAl9DQotLS0gMTgyOCwxODM4IC0tLS0NCiAgCQlnb3RvIGRv bmVfbG9ja2VkOw0KICANCiAgI2lmZGVmIERFVklDRV9QT0xMSU5HDQohIAlpZiAoKGlmcC0+aWZf ZmxhZ3MgJiBJRkZfUE9MTElORykgPT0gMCAmJg0KISAJICAgIChpZnAtPmlmX2NhcGVuYWJsZSAm IElGQ0FQX1BPTExJTkcpICYmDQohIAkgICAgZXRoZXJ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TkcpDQohIAkJQ1NS X1dSSVRFXzIoc2MsIFJMX0lNUiwgUkxfSVNSX1RJTUVPVVRfRVhQSVJFRCk7DQogIAllbHNlCS8q IG90aGVyd2lzZSAuLi4gKi8NCiAgI2VuZGlmIC8qIERFVklDRV9QT0xMSU5HICovDQogIAkvKg0K KioqKioqKioqKioqKioqIHJlX2luaXRfbG9ja2VkKHNjKQ0KKioqIDIyMTcsMjIyMyAqKioqDQog IAkgKiBtb2RlcmF0aW9uLCB3aGljaCBkcmFtYXRpY2FsbHkgaW1wcm92ZXMgVFggZnJhbWUgcmF0 ZS4NCiAgCSAqLw0KICAJaWYgKHNjLT5ybF90eXBlID09IFJMXzgxNjkpDQohIAkJQ1NSX1dSSVRF XzQoc2MsIFJMX1RJTUVSSU5UXzgxNjksIDB4ODAwKTsNCiAgCWVsc2UNCiAgCQlDU1JfV1JJVEVf NChzYywgUkxfVElNRVJJTlQsIDB4NDAwKTsNCiAgDQotLS0gMjIxOCwyMjI0IC0tLS0NCiAgCSAq IG1vZGVyYXRpb24sIHdoaWNoIGRyYW1hdGljYWxseSBpbXByb3ZlcyBUWCBmcmFtZSByYXRlLg0K ICAJICovDQogIAlpZiAoc2MtPnJsX3R5cGUgPT0gUkxfODE2OSkNCiEgCQlDU1JfV1JJVEVfNChz YywgUkxfVElNRVJJTlRfODE2OSwgMHgyMDApOw0KICAJZWxzZQ0KICAJCUNTUl9XUklURV80KHNj LCBSTF9USU1FUklOVCwgMHg0MDApOw0KICANCg== --=-cs8p8cAqBDThbZdFLYLl-- --=-lwYYv3ESRb1EHpF9gfwt Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBBcJIMyQsGN30uGE4RAksQAKCh8Fn4OQShjbPjUFAv4FlGFIWMNQCgr2F9 XXqMB3gcOgvOe5CCnsohgX4= =CGOS -----END PGP SIGNATURE----- --=-lwYYv3ESRb1EHpF9gfwt--