IPv6 multi queue transmit

2012-07-31 Thread Venkat Duvvuru
Hi, I have a couple of questions related to flowid for IPv6. Please clarify. 1. Why is the below code (ip_output) absent for ip6_output? This is causing the ipv6 traffic to always flow in just one queue. if (inp != NULL) { INP_LOCK_ASSERT(inp); M_SETFIB(m, inp->in

networking perplexity

2012-07-31 Thread Dunn, George Jr
Hi, I am running Freebsd 9 with all current updates and am having some serious issues with the networking/routing stack. I have a machine that has 2 - 10gb interfaces and 2 - 1gb interfaces that I wish to configure. The desired effect is to have all interfaces except one of the 1Gb ports to be

Re: PCI BAR mmap

2012-07-31 Thread John Baldwin
On Tuesday, July 31, 2012 8:48:00 am Venkat Duvvuru wrote: > Hi, > How to mmap PCI BARs from userland in freebsd? > In Linux the PCI BAR appears as a file in the sysfs file system. How can I > access PCI BAR as a file in freebsd to mmap it? You can export a BAR via a d_mmap() method from a cdevsw

Re: System doesn't detect unplugged network cable and doesn't set interface up properly with DHCP

2012-07-31 Thread John Baldwin
On Saturday, July 14, 2012 3:51:25 am Jason Hellenthal wrote: > > On Fri, Jul 13, 2012 at 11:20:36AM -0700, Yuri wrote: > > On 07/13/2012 02:48, Peter Jeremy wrote: > > > This is a bug in dhclient - see PR bin/166656, which includes a fix. > > > > I think this PR addresses part of the problem: dh

Re: PCI BAR mmap

2012-07-31 Thread Venkat Duvvuru
Hi John, Thanks for your response. Is there an alternative to mmap the PCI BARs, I mean without implementing an mmap method in the driver, something like a pci subsystem mmap in Linux. Linux allows to mmap PCI BARs without any change in the device driver. /Venkat On Tue, Jul 31, 2012 at 7:21 PM,

Re: PCI BAR mmap

2012-07-31 Thread John Baldwin
On Tuesday, July 31, 2012 11:22:25 am Venkat Duvvuru wrote: > Hi John, > Thanks for your response. > Is there an alternative to mmap the PCI BARs, I mean without implementing > an mmap method in the driver, something like a pci subsystem mmap in Linux. > Linux allows to mmap PCI BARs without any ch

Re: PCI BAR mmap

2012-07-31 Thread Adrian Chadd
On 31 July 2012 08:22, Venkat Duvvuru wrote: > Hi John, > Thanks for your response. > Is there an alternative to mmap the PCI BARs, I mean without implementing > an mmap method in the driver, something like a pci subsystem mmap in Linux. > Linux allows to mmap PCI BARs without any change in the de

Re: networking perplexity

2012-07-31 Thread Julian Elischer
On 7/31/12 7:21 AM, Dunn, George Jr wrote: Hi, I am running Freebsd 9 with all current updates and am having some serious issues with the networking/routing stack. I have a machine that has 2 - 10gb interfaces and 2 - 1gb interfaces that I wish to configure. The desired effect is to have all

Re: PCI BAR mmap

2012-07-31 Thread John Baldwin
On Tuesday, July 31, 2012 12:14:41 pm Adrian Chadd wrote: > On 31 July 2012 08:22, Venkat Duvvuru wrote: > > Hi John, > > Thanks for your response. > > Is there an alternative to mmap the PCI BARs, I mean without implementing > > an mmap method in the driver, something like a pci subsystem mmap in

Re: PCI BAR mmap

2012-07-31 Thread Artem Belevich
On Tue, Jul 31, 2012 at 5:48 AM, Venkat Duvvuru wrote: > Hi, > How to mmap PCI BARs from userland in freebsd? > In Linux the PCI BAR appears as a file in the sysfs file system. How can I > access PCI BAR as a file in freebsd to mmap it? It's a bit of a hack, but if you are root, you can access p

Re: PCI BAR mmap

2012-07-31 Thread Konstantin Belousov
On Tue, Jul 31, 2012 at 10:15:22AM -0700, Artem Belevich wrote: > On Tue, Jul 31, 2012 at 5:48 AM, Venkat Duvvuru > wrote: > > Hi, > > How to mmap PCI BARs from userland in freebsd? > > In Linux the PCI BAR appears as a file in the sysfs file system. How can I > > access PCI BAR as a file in free

Re: kern/165863

2012-07-31 Thread Andrey Zonov
On 4/11/12 12:26 AM, Ryan Stone wrote: 2012/4/10 Gleb Smirnoff : Thanks, Ryan! (snip) Looks okay from my viewpoint. Have you stress tested it? My snap patch definitely had problems, AFAIR. If this patch fixes panics observed by kern/165863 and passes stress testing, then it should be commit

Re: System doesn't detect unplugged network cable and doesn't set interface up properly with DHCP

2012-07-31 Thread Peter Jeremy
On 2012-Jul-31 09:43:00 -0400, John Baldwin wrote: >On Saturday, July 14, 2012 3:51:25 am Jason Hellenthal wrote: >> >> On Fri, Jul 13, 2012 at 11:20:36AM -0700, Yuri wrote: >> > But even if it exits, it leaves the IP address that it has set, which is >> > wrong. This IP address survives through

Re: PCI BAR mmap

2012-07-31 Thread Artem Belevich
On Tue, Jul 31, 2012 at 10:41 AM, Konstantin Belousov wrote: >> It's a bit of a hack, but if you are root, you can access physical >> memory via /dev/mem. >> >> memfd = open(/dev/mem) >> ptr = mmap(NULL, bar_size, PROT_READ, 0, memfd, bar_address); >> >> You can even use dd: >> >> dd if=/dev/mem b