From owner-freebsd-current Fri May 25 15:46:51 2001 Delivered-To: freebsd-current@freebsd.org Received: from smtp05.primenet.com (smtp05.primenet.com [64.211.219.54]) by hub.freebsd.org (Postfix) with ESMTP id AA47437B422 for ; Fri, 25 May 2001 15:46:45 -0700 (PDT) (envelope-from tlambert@usr02.primenet.com) Received: (from daemon@localhost) by smtp05.primenet.com (8.9.3/8.9.3) id PAA28951 for ; Fri, 25 May 2001 15:46:44 -0700 (MST) Received: from usr02.primenet.com(206.165.6.202) via SMTP by smtp05.primenet.com, id smtpdAAAG9aGH4; Fri May 25 15:46:36 2001 Received: (from tlambert@localhost) by usr02.primenet.com (8.8.5/8.8.5) id QAA05152 for current@freebsd.org; Fri, 25 May 2001 16:11:16 -0700 (MST) From: Terry Lambert Message-Id: <200105252311.QAA05152@usr02.primenet.com> Subject: PATCH: media option for ethernet hw checksum To: current@freebsd.org Date: Fri, 25 May 2001 23:11:16 +0000 (GMT) X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Here is a patch I have locally that would be useful for Bill Paul, I think. I know, we could use "flag0" for this, but it seems to me that this will be an increasingly common option in hadware. I know Bill had to set this manually as a compile time flag, for lack of an option (same for the JMB Intel Gigabit card driver). PS: The if_ti.c driver has a bug in the option checking, in that it does an equality instead of a bit test, in case some goes in to make this option work there... Index: if_media.h =================================================================== RCS file: /home/cvs/FreeBSD/sys/net/if_media.h,v retrieving revision 1.1.1.1 diff -r1.1.1.1 if_media.h 180a181 > #define IFM_CKSUM 0x00400000 /* Force hardware checksum */ 347a349 > { IFM_CKSUM, "hw-checksum" }, \ Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message