Re: igb(4) txcsum6 broken in few cases

2017-09-25 Thread Sepherosa Ziehau
It will be more than helpful, if you can provides tcpdumps. On Tue, Sep 26, 2017 at 8:51 AM, Julian K. wrote: > Hi, > > I was debugging a lot to figure out that checksum offloading for outgoing > IPv6 packets may lead to invalid checksums. It is reproducible with certain > payloads and many of my

[Differential] D12453: mbuf: Remove UDP_IPV4_EX, which is never defined.

2017-09-22 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added a comment. In https://reviews.freebsd.org/D12453#258240, @rwatson wrote: > This seems generally sensible. > > I'm not quite sure about keeping the "Non-standard RSS hash types" comment, as M_HASHTYPE_OPAQUE is basically intended to be a catch-all for any othe

[Differential] D12455: rss: Remove never defined UDP_IPV4_EX

2017-09-21 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com created this revision. Herald added a subscriber: ae. REVISION DETAIL https://reviews.freebsd.org/D12455 AFFECTED FILES sys/net/rss_config.c sys/net/rss_config.h CHANGE DETAILS diff --git a/sys/net/rss_config.h b/sys/net/rss_config.h --- a/sys/net/rss_config.h +++ b/sy

[Differential] D12453: mbuf: Remove UDP_IPV4_EX, which is never defined.

2017-09-21 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com created this revision. REVISION SUMMARY Add comment to explain the IPV6_EX suffix. The confusion about these RSS hash type probably stems from the facts that they were never widely implemented by hardwares. REVISION DETAIL https://reviews.freebsd.org/D12453 AFF

Re: RSS_UDP_IPV4_EX?

2017-09-21 Thread Sepherosa Ziehau
> > I seem to recall it was something some chipsets supported? I forget the > details. > > > > -adrian > > > On 30 August 2017 at 00:07, Sepherosa Ziehau wrote: >> >> IPv4 UDP with extended headers o_O? Or

ixl(4) RSS hash type

2017-09-10 Thread Sepherosa Ziehau
Hi all, I am on the way to cleanup the UDP_IPV4_EX bit. The only effective consumer of this undefined RSS hash type is ixl. So I took a bit close look at it, then I have several question about its hash type configuration: ixl_set_rss_pctypes(). It tries to set hash for IPV6 fragment, if RSS_IP

Re: RSS_UDP_IPV4_EX?

2017-09-03 Thread Sepherosa Ziehau
, UDP_IPV6 and UDP_IPV6_EX. I am going to whack UDP_IPV4_EX and update various comment. I will setup a review soon. Thanks, sephe > > Robert > > On 2 Sep 2017, at 00:43, Adrian Chadd wrote: > > Hi, > > I seem to recall it was something some chipsets supported? I forget th

RSS_UDP_IPV4_EX?

2017-08-30 Thread Sepherosa Ziehau
IPv4 UDP with extended headers o_O? Or it was just a mistake. Thanks, sephe -- Tomorrow Will Never Die ___ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubs

Re: Question on taskqueue_drain

2017-04-18 Thread Sepherosa Ziehau
On Wed, Apr 19, 2017 at 10:39 AM, Somayajulu, David wrote: > Sorry what I meant to ask was, whether it is O.K to call taskqueue_drain(), > when an MTX_DEF lock is grabbed prior to calling taskqueue_drain(). > You will hit WITNESS, if the drain needs to wait; that's probably the best case. If th

Re: about that DFBSD performance test

2017-03-11 Thread Sepherosa Ziehau
On Wed, Mar 8, 2017 at 8:25 PM, Kevin Bowling wrote: > Right off the bat, FreeBSD doesn't really understand NUMA in any sufficient > capacity. Unfortunately at companies like the one I work at, we take that > to mean "OK buy a high bin CPU and only populate one socket" which serves > us well and

Re: Why is MSI-X support disabled on bce(4)?

2017-03-11 Thread Sepherosa Ziehau
On Tue, Mar 7, 2017 at 11:10 PM, Kajetan Staszkiewicz wrote: > Dnia poniedziaƂek, 6 marca 2017 16:06:03 CET Sepherosa Ziehau pisze: >> On Thu, Mar 2, 2017 at 10:02 PM, Kajetan Staszkiewicz >> >> wrote: >> > To whom it might concern: >> > >> > Well,

Re: Why is MSI-X support disabled on bce(4)?

2017-03-06 Thread Sepherosa Ziehau
On Thu, Mar 2, 2017 at 10:02 PM, Kajetan Staszkiewicz wrote: > To whom it might concern: > > Well, at least it does concern me. Why is support for multiple interrupts and > queues not enabled on bce(4)? > > Whole block of code is surrounded with #ifdef 0 ... #endif > > https://github.com/freebsd/f

Re: listening sockets as non sockets

2017-03-02 Thread Sepherosa Ziehau
On Fri, Mar 3, 2017 at 6:00 AM, Gleb Smirnoff wrote: > On Sun, Feb 26, 2017 at 11:37:59PM +0800, Sepherosa Ziehau wrote: > S> r314268 -> solisten > S> > S> 1KB: > S> Performance (reqs/s) > S> 77916.71 -> 26240.37 > S> Latency average > S&g

Re: Fwd: Re: Disappointing packets-per-second performance results on a Dell,PE R530

2017-02-27 Thread Sepherosa Ziehau
Did you compile and installed GENERIC-NODEBUG kernel for the CURRENT test? On Tue, Feb 28, 2017 at 10:13 AM, Caraballo-vega, Jordan A. (GSFC-6062)[COMPUTER SCIENCE CORP] wrote: > As a summarywe have a Dell R530 with a Chelsio T580 cardwith -CURRENT. > > In an attempt to reduce the time the syste

Re: listening sockets as non sockets

2017-02-26 Thread Sepherosa Ziehau
On Mon, Feb 27, 2017 at 9:36 AM, Sepherosa Ziehau wrote: > On Sat, Feb 25, 2017 at 11:56 PM, Slawa Olhovchenkov wrote: >> On Sat, Feb 25, 2017 at 11:09:29PM +0800, Sepherosa Ziehau wrote: >> >>> > Can I use per-connection Lua script (for delays and url generation)?

Re: listening sockets as non sockets

2017-02-26 Thread Sepherosa Ziehau
On Sat, Feb 25, 2017 at 11:56 PM, Slawa Olhovchenkov wrote: > On Sat, Feb 25, 2017 at 11:09:29PM +0800, Sepherosa Ziehau wrote: > >> > Can I use per-connection Lua script (for delays and url generation)? >> > Not per-thread. I am need to emulate many client connect

Re: listening sockets as non sockets

2017-02-26 Thread Sepherosa Ziehau
On Mon, Feb 27, 2017 at 1:37 AM, Gleb Smirnoff wrote: > On Sun, Feb 26, 2017 at 11:37:59PM +0800, Sepherosa Ziehau wrote: > S> Just got enough time to do some benchmark. The configuration is > S> pretty simple, one server box w/ 2x82599, two client boxes w/ 1x82599, > S>

Re: listening sockets as non sockets

2017-02-26 Thread Sepherosa Ziehau
On Thu, Feb 23, 2017 at 7:27 AM, Gleb Smirnoff wrote: > On Tue, Feb 21, 2017 at 09:58:45AM +0100, Julien Charbon wrote: > J> > T> 1) The patch worked pretty okay, but the idea of separate file type is > J> > T>abandoned. With current filedescriptor code it is almost impossible > J> > T>to

Re: listening sockets as non sockets

2017-02-25 Thread Sepherosa Ziehau
On Fri, Feb 24, 2017 at 9:13 PM, Slawa Olhovchenkov wrote: > On Thu, Feb 23, 2017 at 06:36:36PM +0300, Slawa Olhovchenkov wrote: > >> On Thu, Feb 23, 2017 at 11:40:21AM +0800, Sepherosa Ziehau wrote: >> >> > On Thu, Feb 23, 2017 at 7:27 AM, Gleb Smirnoff wrote: >&g

Re: listening sockets as non sockets

2017-02-22 Thread Sepherosa Ziehau
On Thu, Feb 23, 2017 at 7:27 AM, Gleb Smirnoff wrote: > On Tue, Feb 21, 2017 at 09:58:45AM +0100, Julien Charbon wrote: > J> > T> 1) The patch worked pretty okay, but the idea of separate file type is > J> > T>abandoned. With current filedescriptor code it is almost impossible > J> > T>to

Re: ifmedia status callback is non-sleepable

2017-02-09 Thread Sepherosa Ziehau
On Sat, Jan 28, 2017 at 3:37 AM, Gleb Smirnoff wrote: > Andrew, > > On Thu, Jan 26, 2017 at 08:24:43PM +0300, Andrew Rybchenko wrote: > A> I'd like to double-check that it is intended/known limitation on ifmedia > A> status callback to be non-sleepable. > A> The limitation is imposed by usage of

[Differential] D9345: ifnet: move the new ifnet_event EVENTHANDLER_DECLARE to net/if_var.h

2017-01-26 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com accepted this revision. REVISION DETAIL https://reviews.freebsd.org/D9345 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: decui_microsoft.com, hselasky, cem, np, kmacy, kib, honzhan_microsoft.com, howard0su_gmail.com, jhb, ae, delphij,

Re: High priority for the tx queue in netmap

2017-01-23 Thread Sepherosa Ziehau
On Tue, Jan 24, 2017 at 3:00 PM, Xiaoye Sun wrote: > I'm using the typical intel 10 Gbps nic. > Does ethtool have related configuration command? You can check Intel's spec on their website for the chip you use. They have very good documentation. IIRC, the default behavior is to round-robin TX qu

Re: High priority for the tx queue in netmap

2017-01-23 Thread Sepherosa Ziehau
On Tue, Jan 24, 2017 at 4:09 AM, Xiaoye Sun wrote: > Hi, > > In my application, there are multiple tx queues in the OS, and the netmap > program uses one tx queue. I wondering if I can give the netmap tx queue > higher priority so that the NIC always sends the packets from this queue if > netmap p

[Differential] D8963: ifnet: introduce event handlers for ifup/ifdown events

2017-01-17 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added a comment. If no objection comes, we plan to commit this earlier next week. REVISION DETAIL https://reviews.freebsd.org/D8963 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: decui_microsoft.com, hselasky, cem, np, kmacy, kib, h

[Differential] D9058: alc: Add Killer E2500 support.

2017-01-05 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com created this revision. sepherosa_gmail.com added reviewers: jhb, decui_microsoft.com. sepherosa_gmail.com added a subscriber: freebsd-net-list. REVISION DETAIL https://reviews.freebsd.org/D9058 AFFECTED FILES share/man/man4/alc.4 sys/dev/alc/if_alc.c sys/dev/alc/if_alc

[Differential] D8904: inet: Fix routing issue by calling if_up()

2017-01-05 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com abandoned this revision. REVISION DETAIL https://reviews.freebsd.org/D8904 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com, adrian, bz

[Differential] D8904: inet: Fix routing issue by calling if_up()

2017-01-05 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added a comment. In https://reviews.freebsd.org/D8904#185970, @karels wrote: > I think the change is a step in the right direction. Certainly, "ifconfig xxN down" followed by an implicit UP should not cause any change to the routing table. Does anyone know why the "

Re: Changing NIC ring weight in indirection table

2017-01-03 Thread Sepherosa Ziehau
On Fri, Dec 30, 2016 at 11:34 PM, David Belle-Isle wrote: > Hi, > > Can anyone tell me how to set the weight of a ring from the indirection > table on FreeBSD? My plan is to yank out a TX ring and to use it solely > with netmap to receive packets but want to make sure the kernel won't be > receivi

[Differential] D8905: if: Defer the if_up until the ifnet.if_ioctl is called.

2016-12-29 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added a comment. In https://reviews.freebsd.org/D8905#185507, @jhb wrote: > I would suggest rewording the message a bit to something like: > > Defer if_up() until after the interface's if_ioctl method is called. > > This ensures the interface is initialize

[Differential] D8905: if: Defer the if_up until the ifnet.if_ioctl is called.

2016-12-29 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com updated the summary for this revision. REVISION DETAIL https://reviews.freebsd.org/D8905 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.c

[Differential] D8963: ifnet: introduce event handlers for ifup/ifdown events

2016-12-29 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added reviewers: glebius, gnn, rwatson. sepherosa_gmail.com added a subscriber: freebsd-net-list. REVISION DETAIL https://reviews.freebsd.org/D8963 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: decui_microsoft.com, hselasky, sepherosa_

[Differential] D8904: inet: Fix routing issue by calling if_up()

2016-12-25 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added a comment. In https://reviews.freebsd.org/D8904#184430, @hrs wrote: > The cause is that the prefix route was removed by in_scrubprefix() in the PRC_IFDOWN handler and never reinstalled upon PRC_IFUP because the reinstallation is done only for ifa passed to SIOC

[Differential] D8905: if: Defer the if_up until the ifnet.if_ioctl is called.

2016-12-25 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com created this revision. sepherosa_gmail.com added reviewers: delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com, adrian, hiren, bz, gnn, glebius, karels. sepherosa_gmail.com added a subscriber: freebsd-net-list. REVISION SUMMARY So if_{down,up}

[Differential] D8904: inet: Fix routing issue by calling if_up()

2016-12-25 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com created this revision. sepherosa_gmail.com added reviewers: delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com, adrian, bz, gnn, hiren, glebius, rwatson, karels. sepherosa_gmail.com added a subscriber: freebsd-net-list. REVISION SUMMARY This

Re: mutex usage in if_bridge vs other drivers

2016-12-07 Thread Sepherosa Ziehau
On Sat, Dec 3, 2016 at 3:36 PM, Chris Torek wrote: >>... Dropping the lock is entirely the wrong thing to do -- as >>you note, if we do, then the bridge members can change out from >>under us. The only path forward is to use an sx lock, but ... > [snip] >>In code paths that modify the list of br

[Differential] D8214: ifnet: Use if_link_state snapshot to invoke ifnet_link_event

2016-10-10 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com created this revision. sepherosa_gmail.com added reviewers: glebius, adrian, gnn, bz. sepherosa_gmail.com added a subscriber: freebsd-net-list. REVISION SUMMARY So that everyone in this task have consistent view of link state. REVISION DETAIL https://reviews.freebsd.org/D8

[Differential] D7710: net/vlan: Shift for pri is 13 (pri mask 0xe000) not 1.

2016-08-31 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added a comment. I plan to commit this next Monday, if no objection comes. REVISION DETAIL https://reviews.freebsd.org/D7710 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, glebius, bz, gnn, rwatson, araujo, bms

[Differential] D7710: net/vlan: Shift for pri is 13 (pri mask 0xe000) not 1.

2016-08-30 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com created this revision. sepherosa_gmail.com added reviewers: glebius, bz, gnn, rwatson, araujo, bms. sepherosa_gmail.com added a subscriber: freebsd-net-list. REVISION DETAIL https://reviews.freebsd.org/D7710 AFFECTED FILES sys/net/ethernet.h CHANGE DETAILS diff --git a/s

[Differential] D7594: net/rndis: Fix RNDIS_STATUS_PENDING definition.

2016-08-22 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com created this revision. sepherosa_gmail.com added reviewers: hselasky, glebius, bz, gnn, rwatson. sepherosa_gmail.com added a subscriber: freebsd-net-list. REVISION SUMMARY While I'm here, sort the RNDIS status in ascending order. REVISION DETAIL https://reviews.freebsd.org

[Differential] D7592: net: Split RNDIS protocol structs/macros out of dev/usb/net/if_urndisreg.h

2016-08-22 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added a comment. In https://reviews.freebsd.org/D7592#157754, @hselasky wrote: > Just make sure the code builds, amd64, i386, arm. > > --HPS Yeah, sure. REVISION DETAIL https://reviews.freebsd.org/D7592 EMAIL PREFERENCES https://reviews.freebsd.org/set

[Differential] D7593: net/rndis: Add canonical RNDIS major/minor version as of today.

2016-08-22 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com created this revision. sepherosa_gmail.com added reviewers: hselasky, glebius, bz, gnn, rwatson. sepherosa_gmail.com added a subscriber: freebsd-net-list. REVISION DETAIL https://reviews.freebsd.org/D7593 AFFECTED FILES sys/dev/usb/net/if_urndis.c sys/net/rndis.h CHANGE

[Differential] D7592: net: Split RNDIS protocol structs/macros out of dev/usb/net/if_urndisreg.h

2016-08-21 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added a subscriber: freebsd-net-list. REVISION DETAIL https://reviews.freebsd.org/D7592 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, hselasky, glebius, rwatson, bz, gnn, adrian Cc: freebsd-net-list ___

[Differential] D7499: tcp/lro: Make # of LRO entries tunable

2016-08-14 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com created this revision. sepherosa_gmail.com added reviewers: rrs, gallatin, hselasky, np. sepherosa_gmail.com added a subscriber: freebsd-net-list. Herald added a reviewer: transport. REVISION SUMMARY Obtained from: rrs, gallatin REVISION DETAIL https://reviews.freebsd

Re: 40Gbps http client benchmark

2016-08-07 Thread Sepherosa Ziehau
We have an optimized wrk here: https://github.com/sepherosa/wrk It greatly reduces the # of kqueue syscalls and avoids unnecessary setsockopt etc. BTW, how many concurrent connections and threads are you testing w/? Did you reduce the MSL on your client machines? Default local port range probabl

Re: proposal: splitting NIC RSS up from stack RSS

2016-08-07 Thread Sepherosa Ziehau
On Thu, Aug 4, 2016 at 3:55 PM, Adrian Chadd wrote: > [snip] > > I've updated the wiki with this TODO list. How's it look? > > https://wiki.freebsd.org/NetworkRSS Pretty much what had been discussed on the mail-list. Good summary. Thanks, sephe -- Tomorrow Will Never Die _

[Differential] D7415: tcp/lro: If timestamps mismatch or it's a FIN, force flush.

2016-08-04 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com updated this revision to Diff 19032. sepherosa_gmail.com added a comment. Don't create entry for segments cant be further aggregated/delayed. Noticed-by: hps CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D7415?vs=19031&id=19032 REVISION DETAIL https://reviews

[Differential] D7415: tcp/lro: If timestamps mismatch or it's a FIN, force flush.

2016-08-04 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added inline comments. INLINE COMMENTS > hselasky wrote in tcp_lro.c:852 > Should there be added: > > if (force_flush) > > return (TCP_LRO_CANNOT); > > If no match is found in the list? Ah, yeah, it was in the original patch from rrs, got lost by me :P REVISION DETAIL

[Differential] D7415: tcp/lro: If timestamps mismatch or it's a FIN, force flush.

2016-08-04 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added reviewers: hiren, bz. REVISION DETAIL https://reviews.freebsd.org/D7415 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, rrs, gallatin, hselasky, np, glebius, #transport, hiren, bz Cc: freebsd-net-list

[Differential] D7415: tcp/lro: If timestamps mismatch or it's a FIN, force flush.

2016-08-04 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com created this revision. sepherosa_gmail.com added reviewers: rrs, gallatin, hselasky, np, glebius. sepherosa_gmail.com added a subscriber: freebsd-net-list. Herald added a reviewer: transport. REVISION SUMMARY This keeps the segments/ACK/FIN delivery order. Before t

Re: proposal: splitting NIC RSS up from stack RSS

2016-07-21 Thread Sepherosa Ziehau
On Fri, Jul 22, 2016 at 6:39 AM, Adrian Chadd wrote: > hi, > > Cool! Yeah, the RSS bits thing can be removed, as it's just doing a > bitmask instead of a % operator to do mapping. I think we can just go > to % and if people need the extra speed from a power-of-two operation, > they can reintroduce

[Differential] D6689: tcp/lro: Implement hash table for LRO entries.

2016-07-07 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added a comment. In https://reviews.freebsd.org/D6689#148473, @sepherosa_gmail.com wrote: > In https://reviews.freebsd.org/D6689#148252, @rrs wrote: > > > These look fine and familiar ;-) > > > > I think a hash table as an option to sorting is probably a good th

[Differential] D6689: tcp/lro: Implement hash table for LRO entries.

2016-07-05 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added a comment. In https://reviews.freebsd.org/D6689#148252, @rrs wrote: > These look fine and familiar ;-) > > I think a hash table as an option to sorting is probably a good thing :D Yeah, and I got pretty exiting performance improvement and noticeable la

[Differential] D6689: tcp/lro: Implement hash table for LRO entries.

2016-06-13 Thread sepherosa_gmail.com (Sepherosa Ziehau)
diff --git a/sys/netinet/tcp_lro.h b/sys/netinet/tcp_lro.h --- a/sys/netinet/tcp_lro.h +++ b/sys/netinet/tcp_lro.h @@ -40,6 +40,7 @@ struct lro_entry { LIST_ENTRY(lro_entry) next; + LIST_ENTRY(lro_entry) hash_next; struct mbuf *m_head; struct mbuf *m_tail; union { @@ -95,6 +96,8 @@ u

[Differential] D6689: tcp/lro: Implement hash table for LRO entries.

2016-06-12 Thread sepherosa_gmail.com (Sepherosa Ziehau)
___ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

[Differential] D6689: tcp/lro: Implement hash table for LRO entries.

2016-06-12 Thread sepherosa_gmail.com (Sepherosa Ziehau)
___ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

[Differential] D6689: tcp/lro: Implement hash table for LRO entries.

2016-06-07 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added a comment. In https://reviews.freebsd.org/D6689#142118, @gallatin wrote: > Looks good in terms of not killing perf. for the sorted case, and I'm fine with it as-is. However, maybe an else would be better than a goto? Yeah, sure, I can move the bucket

[Differential] D6689: tcp/lro: Implement hash table for LRO entries.

2016-06-06 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added a comment. In https://reviews.freebsd.org/D6689#141127, @hselasky wrote: > > Well, as I said the VM does not have the luxury to do sorting :) > > Can you test the existing "tcp_lro_flush_all()" in combination with "tcp_lro_queue_mbuf()" and compare it to your

[Differential] D6689: tcp/lro: Implement hash table for LRO entries.

2016-06-06 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com updated this revision to Diff 17347. sepherosa_gmail.com added a comment. Address hps's cache pollution concern for queue_mbuf path. Similar approach was in the patch obtained from rrs. CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D6689?vs=17214&id=17347 REVIS

[Differential] D6688: net: Use M_HASHTYPE_OPAQUE_HASH if the mbuf flowid has hash properties

2016-06-02 Thread sepherosa_gmail.com (Sepherosa Ziehau)
___ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

[Differential] D6689: tcp/lro: Implement hash table for LRO entries.

2016-06-02 Thread sepherosa_gmail.com (Sepherosa Ziehau)
___ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

[Differential] D6689: tcp/lro: Implement hash table for LRO entries.

2016-06-02 Thread sepherosa_gmail.com (Sepherosa Ziehau)
diff --git a/sys/netinet/tcp_lro.h b/sys/netinet/tcp_lro.h --- a/sys/netinet/tcp_lro.h +++ b/sys/netinet/tcp_lro.h @@ -40,6 +40,7 @@ struct lro_entry { LIST_ENTRY(lro_entry) next; + LIST_ENTRY(lro_entry) hash_next; struct mbuf *m_head; struct mbuf *m_tail; union { @@ -95,6 +96,8 @@ u

[Differential] D6689: tcp/lro: Implement hash table for LRO entries.

2016-06-02 Thread sepherosa_gmail.com (Sepherosa Ziehau)
___ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

[Differential] D6689: tcp/lro: Implement hash table for LRO entries.

2016-06-02 Thread sepherosa_gmail.com (Sepherosa Ziehau)
___ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

[Differential] D6688: net: Use M_HASHTYPE_OPAQUE_HASH if the mbuf flowid has hash properties

2016-06-02 Thread sepherosa_gmail.com (Sepherosa Ziehau)
___ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

[Differential] D6406: mbuf: Add a flag for M_HASHTYPE_ to indicate the type has hash properties

2016-05-24 Thread sepherosa_gmail.com (Sepherosa Ziehau)
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h --- a/sys/sys/mbuf.h +++ b/sys/sys/mbuf.h @@ -316,30 +316,41 @@ * * Most NICs support RSS, which provides ordering and explicit affinity, and * use the hash m_flag bits to indicate what header fields were covered by - * the hash. M_HASHTYPE_OPAQUE

[Differential] D6406: mbuf: Add a flag for M_HASHTYPE_ to indicate the type has hash properties

2016-05-24 Thread sepherosa_gmail.com (Sepherosa Ziehau)
___ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

[Differential] D6406: mbuf: Add a flag for M_HASHTYPE_ to indicate the type has hash properties

2016-05-24 Thread sepherosa_gmail.com (Sepherosa Ziehau)
___ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

[Differential] D6406: mbuf: Add a flag for M_HASHTYPE_ to indicate the type has hash properties

2016-05-23 Thread sepherosa_gmail.com (Sepherosa Ziehau)
___ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

[Differential] D6406: mbuf: Add a flag for M_HASHTYPE_ to indicate the type has hash properties

2016-05-23 Thread sepherosa_gmail.com (Sepherosa Ziehau)
___ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

[Differential] D6406: mbuf: Add a flag for M_HASHTYPE_ to indicate the type has hash properties

2016-05-23 Thread sepherosa_gmail.com (Sepherosa Ziehau)
___ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

[Differential] D6406: mbuf: Add a flag for M_HASHTYPE_ to indicate the type has hash properties

2016-05-23 Thread sepherosa_gmail.com (Sepherosa Ziehau)
___ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

[Differential] D6406: mbuf: Add a flag for M_HASHTYPE_ to indicate the type has hash properties

2016-05-23 Thread sepherosa_gmail.com (Sepherosa Ziehau)
___ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

[Differential] D5872: tcp: Don't prematurely drop receiving-only connections

2016-05-23 Thread sepherosa_gmail.com (Sepherosa Ziehau)
___ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

[Differential] D5872: tcp: Don't prematurely drop receiving-only connections

2016-05-17 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added a comment. Any comment? I'd like to get this in before 11 code freeze. REVISION DETAIL https://reviews.freebsd.org/D5872 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, #network, glebius, adrian, delphij,

[Differential] D6406: mbuf: Add a flag for M_HASHTYPE_ to indicate the type has hash properties

2016-05-17 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added a comment. In https://reviews.freebsd.org/D6406#136037, @hselasky wrote: > What is the advantage of this bit versus a hash-type range check? Range check is not helpful. Some drivers' OPAQUE flowid is actually RSS hash value (it just does not know the RSS

[Differential] D6406: mbuf: Add a flag for M_HASHTYPE_ to indicate the type has hash properties

2016-05-17 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added a comment. In https://reviews.freebsd.org/D6406#136051, @gallatin wrote: > So the real goal here is to be able to express to the LRO code that you have a hash that is usable as a hash (eg, not just an ordinal queue index), and yet warn the RSS code that it is no

[Differential] D6406: mbuf: Add a flag for M_HASHTYPE_ to indicate the type has hash properties

2016-05-16 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added reviewers: network, adrian, delphij, rwatson, gnn, glebius, rrs, gallatin, bz. sepherosa_gmail.com added a subscriber: freebsd-net-list. REVISION DETAIL https://reviews.freebsd.org/D6406 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/

[Differential] D5872: tcp: Don't prematurely drop receiving-only connections

2016-05-10 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added a comment. In https://reviews.freebsd.org/D5872#130813, @lstewart wrote: > In https://reviews.freebsd.org/D5872#130806, @sepherosa_gmail.com wrote: > > > In https://reviews.freebsd.org/D5872#130805, @lstewart wrote: > > > > > In https://reviews.freebsd.org

[Differential] D5872: tcp: Don't prematurely drop receiving-only connections

2016-05-10 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com updated this revision to Diff 16171. sepherosa_gmail.com added a comment. Change if(..) {panic} into assertion and wrap the assertion using macro. CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D5872?vs=15642&id=16171 REVISION DETAIL https://reviews.freebsd.org/

[Differential] D6148: tcp/syncache: Add comment for syncache_respond

2016-04-29 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com created this revision. sepherosa_gmail.com added reviewers: network, adrian, rwatson, gnn, lstewart, glebius, delphij, mike-karels.net, jtl, hiren, sbruno, hselasky. sepherosa_gmail.com added a subscriber: freebsd-net-list. Herald added a reviewer: transport. REVISION SUMMARY

[Differential] D6120: tcp/syncache: Set flowid and hash type properly for SYN|ACK

2016-04-29 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added a comment. In https://reviews.freebsd.org/D6120#130844, @hselasky wrote: > Basically what you're doing is to loop back the flowid of the received packet - right? > > Maybe you could put that in a code comment. Yep, since we don't have inp to loopback

[Differential] D6120: tcp/syncache: Set flowid and hash type properly for SYN|ACK

2016-04-28 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com updated the summary for this revision. REVISION DETAIL https://reviews.freebsd.org/D6120 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, adrian, rwatson, gnn, lstewart, glebius, delphij, mike-karels.net, jtl, networ

[Differential] D6137: tcp/lro: Refactor the free/active list operation.

2016-04-28 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com updated this revision to Diff 15725. sepherosa_gmail.com added a comment. Skip the free list operation, which may introduce extra cmp on hot code path CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D6137?vs=15684&id=15725 REVISION DETAIL https://reviews.freebsd.

[Differential] D5872: tcp: Don't prematurely drop receiving-only connections

2016-04-28 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added a comment. In https://reviews.freebsd.org/D5872#130813, @lstewart wrote: > In https://reviews.freebsd.org/D5872#130806, @sepherosa_gmail.com wrote: > > > In https://reviews.freebsd.org/D5872#130805, @lstewart wrote: > > > > > In https://reviews.freebsd.org

[Differential] D5872: tcp: Don't prematurely drop receiving-only connections

2016-04-28 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added a comment. In https://reviews.freebsd.org/D5872#130805, @lstewart wrote: > In https://reviews.freebsd.org/D5872#130179, @sepherosa_gmail.com wrote: > > > We probably can leave the cwnd resetting to later rexmt timeout or possible later fast retransmit (I thin

[Differential] D6137: tcp/lro: Refactor the free/active list operation.

2016-04-28 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added a comment. In https://reviews.freebsd.org/D6137#130603, @gallatin wrote: > The tcp_lro_entry_get() abstraction adds an extra compare to the critical path (the compare against NULL in the function itself, in addition to the same compare in the main routine). At

[Differential] D6120: tcp/syncache: Set flowid and hash type properly for SYN|ACK

2016-04-28 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added inline comments. INLINE COMMENTS sys/netinet/tcp_syncache.c:1507 OK, but as a different commit. REVISION DETAIL https://reviews.freebsd.org/D6120 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, adrian, rwats

[Differential] D6120: tcp/syncache: Set flowid and hash type properly for SYN|ACK

2016-04-28 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added a comment. In https://reviews.freebsd.org/D6120#130786, @hiren wrote: > I hope you'd write a bit more descriptive commit-log (not just 'what' but also 'why') for the change. Thanks a lot for your work! OK :) REVISION DETAIL https://reviews.freebsd.org/

[Differential] D6137: tcp/lro: Refactor the free/active list operation.

2016-04-27 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com created this revision. sepherosa_gmail.com added reviewers: network, gallatin, rrs, adrian, delphij, glebius, hselasky, np, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com. sepherosa_gmail.com added a subscriber: freebsd-net-list. Herald added a reviewer: trans

[Differential] D5872: tcp: Don't prematurely drop receiving-only connections

2016-04-27 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added inline comments. INLINE COMMENTS sys/netinet/tcp_output.c:1551 It's what I am testing w/, since I need non-INVARIANT kernel to generate enough traffic to make ENOBUFS happen. We can change it into KASSERT, however, I am wondering should we just use "if (__predict

[Differential] D6120: tcp/syncache: Set flowid and hash type properly for SYN|ACK

2016-04-27 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com created this revision. sepherosa_gmail.com added reviewers: network, adrian, rwatson, gnn, lstewart, glebius, delphij, mike-karels.net, jtl, hiren. sepherosa_gmail.com added a subscriber: freebsd-net-list. Herald added a reviewer: transport. REVISION DETAIL https://reviews.f

[Differential] D5872: tcp: Don't prematurely drop receiving-only connections

2016-04-27 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added a comment. In https://reviews.freebsd.org/D5872#130173, @mike-karels.net wrote: > I disagree; congestion is congestion, not "congestion for everyone but me". I'd prefer to leave the cwnd change until it is replaced by something more modern. We probably

[Differential] D5872: tcp: Don't prematurely drop receiving-only connections

2016-04-26 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added a comment. In https://reviews.freebsd.org/D5872#128542, @mike-karels.net wrote: > btw, I think the line to set the snd_cwnd should remain for now, until something replaces it. ENOBUFS signals local congestion. Well, resetting the cwnd can be unfair for

[Differential] D5872: tcp: Don't prematurely drop receiving-only connections

2016-04-26 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com updated the summary for this revision. sepherosa_gmail.com updated this revision to Diff 15642. CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D5872?vs=14968&id=15642 REVISION DETAIL https://reviews.freebsd.org/D5872 AFFECTED FILES sys/netinet/tcp_output.c CHANG

[Differential] D5872: tcp: Don't prematurely drop receiving-only connections

2016-04-20 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added a comment. In https://reviews.freebsd.org/D5872#128556, @hiren wrote: > In https://reviews.freebsd.org/D5872#128555, @lstewart wrote: > > > I thought that had been fixed ages ago... oops. > > > Fixed? i.e. doing something other than setting cwnd to 1 seg

[Differential] D5872: tcp: Don't prematurely drop receiving-only connections

2016-04-20 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added a comment. In https://reviews.freebsd.org/D5872#128542, @mike-karels.net wrote: > btw, I think the line to set the snd_cwnd should remain for now, until something replaces it. ENOBUFS signals local congestion. ok. REVISION DETAIL https://reviews.fre

[Differential] D5872: tcp: Don't prematurely drop receiving-only connections

2016-04-20 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added a comment. In https://reviews.freebsd.org/D5872#128535, @gnn wrote: > Not my comment "once everyone agrees" :-) heh, just read the first part of the comment :P REVISION DETAIL https://reviews.freebsd.org/D5872 EMAIL PREFERENCES https://reviews.freebs

[Differential] D5872: tcp: Don't prematurely drop receiving-only connections

2016-04-20 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added a comment. In https://reviews.freebsd.org/D5872#128530, @gnn wrote: > Let's keep this moving along. Mike isn't (yet) a committer but if someone can commit this once everyone agrees that would be great. OK, I will do it. REVISION DETAIL https://reviews

[Differential] [Commented On] D5872: tcp: Don't prematurely drop receiving-only connections

2016-04-17 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com added a comment. In https://reviews.freebsd.org/D5872#127372, @mike-karels.net wrote: > Setting a retransmission timer on an ACK makes no sense; I don't think tcp_output will send an ACK on a retransmission timeout. > > Setting timers in the ENOBUFS case is at best

  1   2   3   >