Re: performance of the swtich/case statements

2014-10-29 Thread bycn82
Hi, According to my understanding in Java programming, the compiler will automatically store the values into a table and jump to the correct one according to the value only when the condition values are in running number, for example. swtich(a){ case 1: code block 1 case 2: code block 2 case 3:

Re: urtwn(4) Random freezes, urtwn_getbuf: out of xmit buffers

2014-10-29 Thread Kevin Lo
On Tue, Oct 28, 2014 at 12:41:15PM -0700, Sean Bruno wrote: > > It looks like recent HEAD seems to fail intermittently here on my home > network. It will recover, but urtwn(4) seems to lose an ack or > something on txmit. turning on debug, yields this message during the > hang event. > > hw.usb

[Bug 188032] [lo] IPv6 on lo never leaves 'tentative' state if configured with prefixlen 128

2014-10-29 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=188032 Hiroki Sato changed: What|Removed |Added CC||h...@freebsd.org Assignee|

Re: Very bad Realtek problems

2014-10-29 Thread Yonghyeon PYUN
On Wed, Oct 29, 2014 at 01:01:26PM -0400, Mason Loring Bliss wrote: > On Wed, Oct 29, 2014 at 10:46:30AM +0900, Yonghyeon PYUN wrote: > > > Given that you can reliably reproduce the issue, let's check simple ones > > first. > > Just as a quick update, I couldn't tolerate the network outages any m

inet_pton() broken

2014-10-29 Thread Bruce Evans
inet_pton() has regressed to a primitive form that doesn't support hex or octal, at least for ipv4. This breaks at least gethostbyname() on hosts in /etc/hosts. /etc/hosts is still documented as supporting the general form and as "using" [sic] inet_addr(3): %Network addresses are specified

Re: Very bad Realtek problems

2014-10-29 Thread Mason Loring Bliss
On Wed, Oct 29, 2014 at 10:46:30AM +0900, Yonghyeon PYUN wrote: > Given that you can reliably reproduce the issue, let's check simple ones > first. Just as a quick update, I couldn't tolerate the network outages any more as they were impacting my work, so I bought an Intel NIC. That said, this wi

Re: ipfw fwd duplicating packets in 9.3-RELEASE

2014-10-29 Thread Raimundo Santos
On 29 October 2014 12:53, bycn82 wrote: > > Hi, > I cannot help to point out when the ICMP packet was duplicated and transfer > via 2 different links, If it happens in my machine, I will call this feature > "multi-homing". That is a bit off topic, but how and undesired behaviour could be a featu

Re: urtwn(4) Random freezes, urtwn_getbuf: out of xmit buffers

2014-10-29 Thread Rui Paulo
On Oct 28, 2014, at 12:41, Sean Bruno wrote: > > It looks like recent HEAD seems to fail intermittently here on my home > network. It will recover, but urtwn(4) seems to lose an ack or > something on txmit. turning on debug, yields this message during the > hang event. > > hw.usb.urtwn.debug:

Re: Intel DPDK added to FreeBSD ports collection

2014-10-29 Thread Jim Harris
On Wed, Oct 29, 2014 at 8:41 AM, Rui Paulo wrote: > On Oct 29, 2014, at 05:13, Eggert, Lars wrote: > > > > Hi, > > > > On 2014-10-20, at 17:40, Jim Harris wrote: > >> Just wanted to send a heads-up that Intel's Data Plane Development Kit > >> (DPDK) for high speed packet processing was added to

Re: Intel DPDK added to FreeBSD ports collection

2014-10-29 Thread Rui Paulo
On Oct 29, 2014, at 05:13, Eggert, Lars wrote: > > Hi, > > On 2014-10-20, at 17:40, Jim Harris wrote: >> Just wanted to send a heads-up that Intel's Data Plane Development Kit >> (DPDK) for high speed packet processing was added to the FreeBSD ports >> collection last week under net/dpdk. > ...

RE: ipfw fwd duplicating packets in 9.3-RELEASE

2014-10-29 Thread bycn82
Hi, I cannot help to point out when the ICMP packet was duplicated and transfer via 2 different links, If it happens in my machine, I will call this feature "multi-homing". But what I want to say is the firewall rule fwd 192.168.0.2 proto icmp src-ip 192.168.4.2 out xmit em1 You can remove the "ou

Re: Intel DPDK added to FreeBSD ports collection

2014-10-29 Thread Eggert, Lars
Hi, On 2014-10-20, at 17:40, Jim Harris wrote: > Just wanted to send a heads-up that Intel's Data Plane Development Kit > (DPDK) for high speed packet processing was added to the FreeBSD ports > collection last week under net/dpdk. ... > For any questions, please check out dpdk.org and the develo

Re: [RFC][RFT] overhaul if_gre(4)

2014-10-29 Thread Andrey V. Elsukov
On 29.10.2014 12:35, Andrey V. Elsukov wrote: > Hi All, > > I prepared the patch for review > https://reviews.freebsd.org/D1023 For those who want to test, I prepared a tarball with sources https://people.freebsd.org/~ae/gre.tgz Modules should work on stable/10 and head/ without modifi

[RFC][RFT] overhaul if_gre(4)

2014-10-29 Thread Andrey V. Elsukov
Hi All, I prepared the patch for review https://reviews.freebsd.org/D1023 Split if_gre(4) into two modules, if_gre(4) for GRE encapsulation and if_me(4) for minimal encapsulation within IP. gre(4) changes: * convert to if_transmit; * rework locking: protect access to softc with rmlock, protec