Re: ixgbe DMA question

2011-02-11 Thread Robert Watson
On Fri, 11 Feb 2011, Santosh Rao Gururajan wrote: I have a host machine with 2 ixgbe NICs. I am trying to pass the frames from one NIC to the other with the lowest possible overhead to the host (high speed bridge). I am wondering if I can do a rx-ring to tx-ring DMA copy without creating a mb

Re: [RELEASE] host-setup(1): a dialog(1)-based utility for configuring FreeBSD

2011-02-11 Thread Ian Smith
On Fri, 11 Feb 2011, Eitan Adler wrote: > Nice Script! > I intend to steal parts of it for my own use. It's great when you can plunder without robbing anyone :) > > P.S. Maybe I ought to expand it to IPv6 considering that the IPv4 > > address space has [reportedly] finally ran out (is that t

Re: [maybe spam] Re: linux PF_PACKET compatibility

2011-02-11 Thread Da Rock
On 02/12/11 11:19, Julian Elischer wrote: On 2/11/11 4:03 PM, Da Rock wrote: On 02/12/11 02:37, Julian Elischer wrote: On 2/11/11 1:36 AM, Da Rock wrote: On 02/11/11 18:17, Julian Elischer wrote: On 2/10/11 11:22 PM, Da Rock wrote: "In recent versions of the Linux kernel (post-2.0 releases) a

problem with build mcelog

2011-02-11 Thread venom
Hello. i am trying build mcelog FreeBSD 8.1-RELEASE-p2 FreeBSD 8.1-RELEASE-p2 #0: Fri Jan 14 04:15:56 UTC 2011 root@freebsd:/usr/obj/usr/src/sys/GENERIC amd64 # fetch http://ftp2.pl.freebsd.org/pub/FreeBSD/distfiles/mcelog-1.0pre2.tar.gz # tar -xf mcelog-1.0pre2.tar.gz # cd mcelog-1.0pr

ixgbe DMA question

2011-02-11 Thread Santosh Rao Gururajan
I have a host machine with 2 ixgbe NICs. I am trying to pass the frames from one NIC to the other with the lowest possible overhead to the host (high speed bridge). I am wondering if I can do a rx-ring to tx-ring DMA copy without creating a mbuf on the host. Is that possible? What are the risks? T

Re: [maybe spam] Re: linux PF_PACKET compatibility

2011-02-11 Thread Julian Elischer
On 2/11/11 4:03 PM, Da Rock wrote: On 02/12/11 02:37, Julian Elischer wrote: On 2/11/11 1:36 AM, Da Rock wrote: On 02/11/11 18:17, Julian Elischer wrote: On 2/10/11 11:22 PM, Da Rock wrote: "In recent versions of the Linux kernel (post-2.0 releases) a new protocol family has been introduced,

Re: [RELEASE] host-setup(1): a dialog(1)-based utility for configuring FreeBSD

2011-02-11 Thread Damien Fleuriot
On 2/11/11 4:53 AM, Devin Teske wrote: > Hi All, > > I'd like to announce the release of a new script. A script that I've > developed for our field engineers that I'd like to share with the rest > of the world. > > http://druidbsd.sourceforge.net/download/host-setup.txt > > host-setup(1) is a di

Re: linux PF_PACKET compatibility

2011-02-11 Thread Julian Elischer
On 2/11/11 4:08 PM, Da Rock wrote: On 02/12/11 02:48, Julian Elischer wrote: On 2/11/11 5:40 AM, Da Rock wrote: On 02/11/11 19:54, Vlad Galu wrote: On Fri, Feb 11, 2011 at 11:36 AM, Da Rock > wrote: On 02/11/11 18:17, Julian Elischer w

Re: memstick.img is bloated with 7% 2K blocks of nulls

2011-02-11 Thread Bruce Cran
On Sat, 12 Feb 2011 01:54:58 +0100 "Julian H. Stacey" wrote: >-O filesystem-type > Use 1 to specify that a UFS1 format file system be > built; use 2 to specify that a UFS2 format file system be built. The > default format is UFS2. > If anyone fancies looking deeper, please d

Re: CFR: FEATURE macros for AUDIT/CAM/IPC/KTR/MAC/NFS/NTP/PMC/SYSV/...

2011-02-11 Thread Robert Watson
On Fri, 11 Feb 2011, Ilya Bakulin wrote: When I was beginning this GSoC work, I primarily thought about unifying the way to determine if particular feature exists in the kernel. Of course there should be at least one way to check if the feature is available or not (by definition: if I may use

Re: memstick.img is bloated with 7% 2K blocks of nulls

2011-02-11 Thread Julian H. Stacey
Bruce Cran wrote: > On Fri, 11 Feb 2011 20:09:30 +0100 > "Julian H. Stacey" wrote: > > > memstick.img wastes 7% with 2K blocks of nulls. > > Could this be due to using UFS1 instead of UFS2? Don't know, Looking: 8.1 /usr/src/release/scripts/make-memstick.sh man makefs -t fs-type ... The

Re: CFR: FEATURE macros for AUDIT/CAM/IPC/KTR/MAC/NFS/NTP/PMC/SYSV/...

2011-02-11 Thread Robert Watson
On Fri, 11 Feb 2011, Alexander Leidinger wrote: during the last GSoC various FEATURE macros where added to the system. Before committing them, I would like to get some review (like if macro is in the correct file, and for those FEATURES where the description was not taken from NOTES if the de

Re: reverse of getchar() read() open() fopen() ?

2011-02-11 Thread Julian H. Stacey
Andrew Duane wrote: > I've never seen any such thing, but I've done similar things a > lot. I'd say malloc/read the whole file in and use a decrementing > pointer to return the "previous" character. Thanks, but I'll need a loop too, as malloc(filesize()) would be too big, as I omitted to say I'll

Re: linux PF_PACKET compatibility

2011-02-11 Thread Da Rock
On 02/12/11 02:48, Julian Elischer wrote: On 2/11/11 5:40 AM, Da Rock wrote: On 02/11/11 19:54, Vlad Galu wrote: On Fri, Feb 11, 2011 at 11:36 AM, Da Rock > wrote: On 02/11/11 18:17, Julian Elischer wrote: On 2/10/11 11:22 PM,

Re: linux PF_PACKET compatibility

2011-02-11 Thread Da Rock
On 02/12/11 02:37, Julian Elischer wrote: On 2/11/11 1:36 AM, Da Rock wrote: On 02/11/11 18:17, Julian Elischer wrote: On 2/10/11 11:22 PM, Da Rock wrote: "In recent versions of the Linux kernel (post-2.0 releases) a new protocol family has been introduced, named PF_PACKET. This family allows

problem with build mcelog

2011-02-11 Thread venom
Hello. i am trying build mcelog # fetch http://ftp2.pl.freebsd.org/pub/FreeBSD/distfiles/mcelog-1.0pre2.tar.gz # tar -xf mcelog-1.0pre2.tar.gz # cd mcelog-1.0pre2 # fetch http://people.freebsd.org/~jhb/mcelog/mcelog.patch # fetch http://people.freebsd.org/~jhb/mcelog/memstream.c # patch < mcel

Re: reverse of getchar() read() open() fopen() ?

2011-02-11 Thread Brian Reichert
On Fri, Feb 11, 2011 at 10:32:46PM +0100, Julian H. Stacey wrote: > Hi hackers@, > Do we have C libraries with reverse of getchar() [ & maybe read() > ] & fopen() [ & maybe open() ] etc, to read from end of file toward > beginning ? I dont see anything in the See Also sections. I'm not > looking

Re: reverse of getchar() read() open() fopen() ?

2011-02-11 Thread Julian H. Stacey
> Hi hackers@, > Do we have C libraries with reverse of getchar() [ & maybe read() > ] & fopen() [ & maybe open() ] etc, to read from end of file toward > beginning ? I dont see anything in the See Also sections. I'm not > looking to write, just read. I'm looking for something that returns > la

Re: reverse of getchar() read() open() fopen() ?

2011-02-11 Thread Devin Teske
On Fri, 2011-02-11 at 22:32 +0100, Julian H. Stacey wrote: > Hi hackers@, > Do we have C libraries with reverse of getchar() [ & maybe read() > ] & fopen() [ & maybe open() ] etc, to read from end of file toward > beginning ? `tail -r' will spit out lines of a file in reverse-order. Maybe the

Re: reverse of getchar() read() open() fopen() ?

2011-02-11 Thread Dan Nelson
In the last episode (Feb 11), Julian H. Stacey said: > Hi hackers@, > Do we have C libraries with reverse of getchar() [ & maybe read() ] & > fopen() [ & maybe open() ] etc, to read from end of file toward beginning > ? I dont see anything in the See Also sections. I'm not looking to > write, ju

RE: reverse of getchar() read() open() fopen() ?

2011-02-11 Thread Andrew Duane
I've never seen any such thing, but I've done similar things a lot. I'd say malloc/read the whole file in and use a decrementing pointer to return the "previous" character. -- Andrew Duane Juniper Networks 978-589-0551 10 Technology Park Dr adu...@juniper.net Westfo

reverse of getchar() read() open() fopen() ?

2011-02-11 Thread Julian H. Stacey
Hi hackers@, Do we have C libraries with reverse of getchar() [ & maybe read() ] & fopen() [ & maybe open() ] etc, to read from end of file toward beginning ? I dont see anything in the See Also sections. I'm not looking to write, just read. I'm looking for something that returns last char in f

Re: [RELEASE] host-setup(1): a dialog(1)-based utility for configuring FreeBSD

2011-02-11 Thread Eitan Adler
Nice Script! I intend to steal parts of it for my own use. > > P.S. Maybe I ought to expand it to IPv6 considering that the IPv4 > address space has [reportedly] finally ran out (is that true?). > All the available IPs were allocated to the RIRs. AFIK the RIRs have not had to deny anyone for insu

Re: problem with build mcelog

2011-02-11 Thread John Baldwin
On Friday, February 11, 2011 7:48:39 am venom wrote: > Hello. > > i am trying build mcelog > > > FreeBSD 8.1-RELEASE-p2 FreeBSD 8.1-RELEASE-p2 #0: Fri Jan 14 04:15:56 > UTC 2011 root@freebsd:/usr/obj/usr/src/sys/GENERIC amd64 > > > # fetch > http://ftp2.pl.freebsd.org/pub/FreeBSD/distfile

Re: memstick.img is bloated with 7% 2K blocks of nulls

2011-02-11 Thread Bruce Cran
On Fri, 11 Feb 2011 20:09:30 +0100 "Julian H. Stacey" wrote: > memstick.img wastes 7% with 2K blocks of nulls. Could this be due to using UFS1 instead of UFS2? On a related note, at some point the release scripts should be updated to use gpart instead of fdisk/bsdlabel. -- Bruce Cran

memstick.img is bloated with 7% 2K blocks of nulls

2011-02-11 Thread Julian H. Stacey
memstick.img wastes 7% with 2K blocks of nulls. shown by: 8f -b 0 -n 2048 -l -f Fr* http://berklix.com/~jhs/src/bsd/jhs/bin/public/8f/ 8f.c 8f.1 FreeBSD-8.1-RELEASE-amd64-bootonly.iso:543 FreeBSD-8.1-RELEASE-amd64-disc1.iso: 543

Re: [RELEASE] host-setup(1): a dialog(1)-based utility for configuring FreeBSD

2011-02-11 Thread Devin Teske
On Sat, 2011-02-12 at 02:30 +1100, Ian Smith wrote: > In freebsd-questions Digest, Vol 349, Issue 8, Message: 15 > On Thu, 10 Feb 2011 19:53:53 -0800 Devin Teske wrote: > > Hi All, > > > > I'd like to announce the release of a new script. A script that I've > > developed for our field engine

Re: CFR: FEATURE macros for AUDIT/CAM/IPC/KTR/MAC/NFS/NTP/PMC/SYSV/...

2011-02-11 Thread Ilya Bakulin
On 11.02.2011 17:38, Anonymous wrote: > Alexander Leidinger writes: > >> Hi, >> >> during the last GSoC various FEATURE macros where added to the system. >> Before committing them, I would like to get some review (like if macro >> is in the correct file, and for those FEATURES where the descripti

Re: CFR: FEATURE macros for AUDIT/CAM/IPC/KTR/MAC/NFS/NTP/PMC/SYSV/...

2011-02-11 Thread Ilya Bakulin
On 11.02.2011 14:54, Alexander Leidinger wrote: > As a 3rd point (attention bikeshed ahead), having everything as a > FEATURE would give an uniform way of listing what is available or not > (with the benefit to administratively hide parts of it). Needless to > say that this would reduce the amount

Re: [RELEASE] host-setup(1): a dialog(1)-based utility for configuring FreeBSD

2011-02-11 Thread Devin Teske
On Fri, 2011-02-11 at 08:56 +0100, Damien Fleuriot wrote: > Hi Devin, > > > Thanks for sharing your work. > > The list strips non-text attachments so there isn't much to see at the moment > though... Thanks Damien. Here's a link to the pic I posted online in-tandem with the post to the list

Re: linux PF_PACKET compatibility

2011-02-11 Thread Julian Elischer
On 2/11/11 5:40 AM, Da Rock wrote: On 02/11/11 19:54, Vlad Galu wrote: On Fri, Feb 11, 2011 at 11:36 AM, Da Rock > wrote: On 02/11/11 18:17, Julian Elischer wrote: On 2/10/11 11:22 PM, Da Rock wrote: "In recent vers

Re: CFR: FEATURE macros for AUDIT/CAM/IPC/KTR/MAC/NFS/NTP/PMC/SYSV/...

2011-02-11 Thread Anonymous
Alexander Leidinger writes: > Hi, > > during the last GSoC various FEATURE macros where added to the system. > Before committing them, I would like to get some review (like if macro > is in the correct file, and for those FEATURES where the description > was not taken from NOTES if the descriptio

Re: linux PF_PACKET compatibility

2011-02-11 Thread Julian Elischer
On 2/11/11 1:36 AM, Da Rock wrote: On 02/11/11 18:17, Julian Elischer wrote: On 2/10/11 11:22 PM, Da Rock wrote: "In recent versions of the Linux kernel (post-2.0 releases) a new protocol family has been introduced, named PF_PACKET. This family allows an application to send and receive packets

problem with build mcelog

2011-02-11 Thread venom
Hello. i am trying build mcelog FreeBSD 8.1-RELEASE-p2 FreeBSD 8.1-RELEASE-p2 #0: Fri Jan 14 04:15:56 UTC 2011 root@freebsd:/usr/obj/usr/src/sys/GENERIC amd64 # fetch http://ftp2.pl.freebsd.org/pub/FreeBSD/distfiles/mcelog-1.0pre2.tar.gz # tar -xf mcelog-1.0pre2.tar.gz # cd mcelog-1.0p

problem with build mcelog

2011-02-11 Thread venom
Hello. i am trying build mcelog FreeBSD 8.1-RELEASE-p2 FreeBSD 8.1-RELEASE-p2 #0: Fri Jan 14 04:15:56 UTC 2011 root@freebsd:/usr/obj/usr/src/sys/GENERIC amd64 # fetch http://ftp2.pl.freebsd.org/pub/FreeBSD/distfiles/mcelog-1.0pre2.tar.gz # tar -xf mcelog-1.0pre2.tar.gz # cd mcelog-1.0pre

Re: [RELEASE] host-setup(1): a dialog(1)-based utility for configuring FreeBSD

2011-02-11 Thread Bruce Cran
On Fri, 11 Feb 2011 08:56:42 +0100 Damien Fleuriot wrote: > The list strips non-text attachments so there isn't much to see at > the moment though... It wasn't supposed to be attached - try http://druidbsd.sourceforge.net/download/host-setup.txt :) -- Bruce Cran ___

Re: [RELEASE] host-setup(1): a dialog(1)-based utility for configuring FreeBSD

2011-02-11 Thread Damien Fleuriot
Hi Devin, Thanks for sharing your work. The list strips non-text attachments so there isn't much to see at the moment though... --- Fleuriot Damien On 11 Feb 2011, at 04:53, Devin Teske wrote: > Hi All, > > I'd like to announce the release of a new script. A script that I've > developed f

Re: CFR: FEATURE macros for AUDIT/CAM/IPC/KTR/MAC/NFS/NTP/PMC/SYSV/...

2011-02-11 Thread Alexander Leidinger
Quoting John Baldwin (from Fri, 11 Feb 2011 07:51:52 -0500): On Friday, February 11, 2011 4:30:28 am Alexander Leidinger wrote: Hi, during the last GSoC various FEATURE macros where added to the system. Before committing them, I would like to get some review (like if macro is in the correct f

Re: linux PF_PACKET compatibility

2011-02-11 Thread Da Rock
On 02/11/11 19:54, Vlad Galu wrote: On Fri, Feb 11, 2011 at 11:36 AM, Da Rock > wrote: On 02/11/11 18:17, Julian Elischer wrote: On 2/10/11 11:22 PM, Da Rock wrote: "In recent versions of the Linux kernel (post-2.0

Re: CFR: FEATURE macros for AUDIT/CAM/IPC/KTR/MAC/NFS/NTP/PMC/SYSV/...

2011-02-11 Thread John Baldwin
On Friday, February 11, 2011 4:30:28 am Alexander Leidinger wrote: > Hi, > > during the last GSoC various FEATURE macros where added to the system. > Before committing them, I would like to get some review (like if macro > is in the correct file, and for those FEATURES where the description

CFR: FEATURE macros for AUDIT/CAM/IPC/KTR/MAC/NFS/NTP/PMC/SYSV/...

2011-02-11 Thread Alexander Leidinger
Hi, during the last GSoC various FEATURE macros where added to the system. Before committing them, I would like to get some review (like if macro is in the correct file, and for those FEATURES where the description was not taken from NOTES if the description is OK). If nobody complains, I

Re: linux PF_PACKET compatibility

2011-02-11 Thread Vlad Galu
On Fri, Feb 11, 2011 at 11:36 AM, Da Rock < freebsd-hack...@herveybayaustralia.com.au> wrote: > On 02/11/11 18:17, Julian Elischer wrote: > >> On 2/10/11 11:22 PM, Da Rock wrote: >> >>> "In recent versions of the Linux kernel (post-2.0 releases) a new >>> protocol family has been introduced, named

Re: linux PF_PACKET compatibility

2011-02-11 Thread Da Rock
On 02/11/11 18:17, Julian Elischer wrote: On 2/10/11 11:22 PM, Da Rock wrote: "In recent versions of the Linux kernel (post-2.0 releases) a new protocol family has been introduced, named PF_PACKET. This family allows an application to send and receive packets dealing directly with the network

Re: linux PF_PACKET compatibility

2011-02-11 Thread Vlad Galu
On Fri, Feb 11, 2011 at 9:22 AM, Da Rock < freebsd-hack...@herveybayaustralia.com.au> wrote: > "In recent versions of the Linux kernel (post-2.0 releases) a new protocol > family has been introduced, named PF_PACKET. This family allows an > application to send and receive packets dealing directly

Re: linux PF_PACKET compatibility

2011-02-11 Thread Julian Elischer
On 2/10/11 11:22 PM, Da Rock wrote: "In recent versions of the Linux kernel (post-2.0 releases) a new protocol family has been introduced, named PF_PACKET. This family allows an application to send and receive packets dealing directly with the network card driver, thus avoiding the usual protoc