Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Oct 2004 20:14:20 -0700
From:      Sean McNeil <sean@mcneil.com>
To:        freebsd-current@freebsd.org
Subject:   re0 fix that works with polling
Message-ID:  <1097896460.1123.2.camel@server.mcneil.com>

next in thread | raw e-mail | index | archive | help

--=-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
c2MsIFJMX0lNUiwgMHgwMDAwKTsNCiAgCQlyZV9wb2xsX2xvY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CUNTUl9XUklURV80KHNj
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1097896460.1123.2.camel>