Re: Does FreeBSD have sendmmsg or recvmmsg system calls?

2016-01-26 Thread Kevin Oberman
Since this has become a debate on programming style, it seem appropriate to mention that Edward Yourdan passed away last Tuesday. For those too young to recognize the name, he was the developer of modern structured programming. He did recognize the style rules are important, but not iron-clad. Kev

Re: Does FreeBSD have sendmmsg or recvmmsg system calls?

2016-01-26 Thread Bruce Evans
On Wed, 27 Jan 2016, Gary Jennejohn wrote: On Tue, 26 Jan 2016 17:46:52 -0500 (EST) Daniel Eischen wrote: On Tue, 26 Jan 2016, Gary Jennejohn wrote: On Tue, 26 Jan 2016 09:06:39 -0800 Luigi Rizzo wrote: On Tue, Jan 26, 2016 at 5:40 AM, Konstantin Belousov wrote: On Mon, Jan 25, 2016 at

Re: Does FreeBSD have sendmmsg or recvmmsg system calls?

2016-01-26 Thread Luigi Rizzo
On Tue, Jan 26, 2016 at 4:31 PM, Gary Jennejohn wrote: > On Tue, 26 Jan 2016 17:46:52 -0500 (EST) > Daniel Eischen wrote: > >> On Tue, 26 Jan 2016, Gary Jennejohn wrote: >> >> > On Tue, 26 Jan 2016 09:06:39 -0800 >> > Luigi Rizzo wrote: >> > >> >> On Tue, Jan 26, 2016 at 5:40 AM, Konstantin Belo

Re: Does FreeBSD have sendmmsg or recvmmsg system calls?

2016-01-26 Thread Gary Jennejohn
On Tue, 26 Jan 2016 17:46:52 -0500 (EST) Daniel Eischen wrote: > On Tue, 26 Jan 2016, Gary Jennejohn wrote: > > > On Tue, 26 Jan 2016 09:06:39 -0800 > > Luigi Rizzo wrote: > > > >> On Tue, Jan 26, 2016 at 5:40 AM, Konstantin Belousov > >> wrote: > >>> On Mon, Jan 25, 2016 at 11:22:13AM +02

Re: Does FreeBSD have sendmmsg or recvmmsg system calls?

2016-01-26 Thread Daniel Eischen
On Tue, 26 Jan 2016, Gary Jennejohn wrote: On Tue, 26 Jan 2016 09:06:39 -0800 Luigi Rizzo wrote: On Tue, Jan 26, 2016 at 5:40 AM, Konstantin Belousov wrote: On Mon, Jan 25, 2016 at 11:22:13AM +0200, Boris Astardzhiev wrote: +ssize_t +recvmmsg(int s, struct mmsghdr *__restrict msgvec, size_

Re: Does FreeBSD have sendmmsg or recvmmsg system calls?

2016-01-26 Thread Luigi Rizzo
On Tue, Jan 26, 2016 at 9:25 AM, Gary Jennejohn wrote: > On Tue, 26 Jan 2016 09:06:39 -0800 > Luigi Rizzo wrote: > >> On Tue, Jan 26, 2016 at 5:40 AM, Konstantin Belousov >> wrote: >> > On Mon, Jan 25, 2016 at 11:22:13AM +0200, Boris Astardzhiev wrote: >> >> +ssize_t >> >> +recvmmsg(int s, struc

Re: Does FreeBSD have sendmmsg or recvmmsg system calls?

2016-01-26 Thread Gary Jennejohn
On Tue, 26 Jan 2016 09:06:39 -0800 Luigi Rizzo wrote: > On Tue, Jan 26, 2016 at 5:40 AM, Konstantin Belousov > wrote: > > On Mon, Jan 25, 2016 at 11:22:13AM +0200, Boris Astardzhiev wrote: > >> +ssize_t > >> +recvmmsg(int s, struct mmsghdr *__restrict msgvec, size_t vlen, int flags, > >> +

Re: Does FreeBSD have sendmmsg or recvmmsg system calls?

2016-01-26 Thread Luigi Rizzo
On Tue, Jan 26, 2016 at 5:40 AM, Konstantin Belousov wrote: > On Mon, Jan 25, 2016 at 11:22:13AM +0200, Boris Astardzhiev wrote: >> +ssize_t >> +recvmmsg(int s, struct mmsghdr *__restrict msgvec, size_t vlen, int flags, >> +const struct timespec *__restrict timeout) >> +{ >> + size_t i, rc

Re: Does FreeBSD have sendmmsg or recvmmsg system calls?

2016-01-26 Thread Konstantin Belousov
On Mon, Jan 25, 2016 at 11:22:13AM +0200, Boris Astardzhiev wrote: > +ssize_t > +recvmmsg(int s, struct mmsghdr *__restrict msgvec, size_t vlen, int flags, > +const struct timespec *__restrict timeout) > +{ > + size_t i, rcvd; > + ssize_t ret; > + > + if (timeout != NULL) { > +

Re: swaping ring slots between NIC ring and Host ring does not always success

2016-01-26 Thread Luigi Rizzo
Hi, in FreeBSD, netmap_reload_map() is basically a NOP unless the NIC uses bounce buffers (in which case it is pointless to use netmap, and I am not even sure the code works), or there is an iommu which may need to be reprogrammed (but in that case you don't want to do it dynamically on individual