Page MenuHomeFreeBSD
Feed Advanced Search

Apr 14 2017

ae committed rS316823: Fix the build..
Fix the build.
Apr 14 2017, 10:22 AM
ae committed rS316822: Rework r316770 to make it protocol independent and general, like we.
Rework r316770 to make it protocol independent and general, like we
Apr 14 2017, 9:01 AM

Apr 13 2017

ae accepted D10388: ICMP6 rate-limit enhancements.

Looks good to me.

Apr 13 2017, 11:05 PM
ae added inline comments to D10385: Remove many write-only variables from kernel.
Apr 13 2017, 9:20 PM
ae accepted D10386: Do not double free the memory in if_clone..

I'm not glebius@, but the patch looks correct.

Apr 13 2017, 5:19 PM
ae committed rS316770: Clear h/w csum flags on mbuf handled by UDP..
Clear h/w csum flags on mbuf handled by UDP.
Apr 13 2017, 5:04 PM
ae committed rS316759: Add large replay widow support to setkey(8) and libipsec..
Add large replay widow support to setkey(8) and libipsec.
Apr 13 2017, 2:44 PM
ae closed D10375: Add large replay widow support to setkey(8) and improve setkey's debugging by committing rS316759: Add large replay widow support to setkey(8) and libipsec..
Apr 13 2017, 2:44 PM

Apr 12 2017

ae created D10375: Add large replay widow support to setkey(8) and improve setkey's debugging.
Apr 12 2017, 7:44 PM

Apr 11 2017

ae closed D10356: Inherit IPv6 checksum offloading flags to vlan interfaces by committing rS316716: Inherit IPv6 checksum offloading flags to vlan interfaces..
Apr 11 2017, 7:23 PM
ae committed rS316716: Inherit IPv6 checksum offloading flags to vlan interfaces..
Inherit IPv6 checksum offloading flags to vlan interfaces.
Apr 11 2017, 7:23 PM
ae committed rS316715: Make sysctl identifiers for direct netisr queue unique..
Make sysctl identifiers for direct netisr queue unique.
Apr 11 2017, 7:20 PM
ae closed D10358: Make sysctl identifiers for direct netisr queue to be unique by committing rS316715: Make sysctl identifiers for direct netisr queue unique..
Apr 11 2017, 7:20 PM
ae created D10358: Make sysctl identifiers for direct netisr queue to be unique.
Apr 11 2017, 11:25 AM
ae created D10356: Inherit IPv6 checksum offloading flags to vlan interfaces.
Apr 11 2017, 9:16 AM
ae committed rS316699: Do not adjust interface MTU automatically. Leave this task to the system.
Do not adjust interface MTU automatically. Leave this task to the system
Apr 11 2017, 8:56 AM
ae closed D10215: Disable automatic MTU adjustment for if_gre(4) and if_me(4) by committing rS316699: Do not adjust interface MTU automatically. Leave this task to the system.
Apr 11 2017, 8:56 AM
ae committed rS316697: MFC r316490:.
MFC r316490:
Apr 11 2017, 7:41 AM

Apr 9 2017

ae accepted D10330: Fix bugs in routing socket use by userland tools.

Looks good to me. Also I want to note, that all

do 
 read();
} while()

loops are affected to the problem described in rS303374. It would be nice to fix this problem too. :)

Apr 9 2017, 3:36 PM
ae accepted D10318: Remove redundant checks of rtm_type in route_output().
Apr 9 2017, 11:15 AM

Apr 7 2017

ae accepted D10304: Bug 172913 setkey(8) is unclear on anti-replay window size option semantics.
Apr 7 2017, 2:46 PM
ae committed rS316605: MFC r316329:.
MFC r316329:
Apr 7 2017, 10:45 AM

Apr 6 2017

ae added inline comments to D9894: Honor net.inet.tcp.drop_synfin in other states than LISTEN.
Apr 6 2017, 1:47 PM

Apr 4 2017

ae committed rS316508: Use unique SPI..
Use unique SPI.
Apr 4 2017, 11:30 PM
ae committed rS316507: In the example section show that TCP-MD5 connection needs SA for both.
In the example section show that TCP-MD5 connection needs SA for both
Apr 4 2017, 11:28 PM
ae committed rS316490: When we are doing SA lookup for TCP-MD5, check both source and.
When we are doing SA lookup for TCP-MD5, check both source and
Apr 4 2017, 1:41 PM

Apr 3 2017

ae committed rS316461: Remove "IPFW static rules" rmlock..
Remove "IPFW static rules" rmlock.
Apr 3 2017, 1:35 PM
ae closed D10154: Use PFIL's rmlock instead of IPFW's static rules rmlock by committing rS316461: Remove "IPFW static rules" rmlock..
Apr 3 2017, 1:35 PM
ae committed rS316458: MFC r316013:.
MFC r316013:
Apr 3 2017, 1:04 PM
ae committed rS316457: MFC r316012:.
MFC r316012:
Apr 3 2017, 12:49 PM
ae committed rS316446: MFC r304041:.
MFC r304041:
Apr 3 2017, 8:51 AM
ae committed rS316445: MFC r307570:.
MFC r307570:
Apr 3 2017, 7:40 AM
ae committed rS316444: MFC r303012:.
MFC r303012:
Apr 3 2017, 7:30 AM
ae added a comment to D10154: Use PFIL's rmlock instead of IPFW's static rules rmlock.
In D10154#211425, @ae wrote:

I think some performance increasing is possible with static rules.

What do you mean by "static rules" ?

Apr 3 2017, 6:14 AM
ae committed rS316438: GC some unused declarations..
GC some unused declarations.
Apr 3 2017, 4:45 AM
ae closed D10150: Add ipfw protocol modification module ipfw_pmod by committing rS316435: Add ipfw_pmod kernel module..
Apr 3 2017, 3:08 AM
ae committed rS316435: Add ipfw_pmod kernel module..
Add ipfw_pmod kernel module.
Apr 3 2017, 3:08 AM
ae committed rS316434: Add O_EXTERNAL_DATA opcode support..
Add O_EXTERNAL_DATA opcode support.
Apr 3 2017, 2:45 AM
ae committed rS316433: Add the log formatting for an external action opcode..
Add the log formatting for an external action opcode.
Apr 3 2017, 2:26 AM

Apr 1 2017

ae committed rS316353: MFC r316133:.
MFC r316133:
Apr 1 2017, 10:03 AM

Mar 31 2017

ae added a comment to D10154: Use PFIL's rmlock instead of IPFW's static rules rmlock.

I didn't see any difference (I'm building world&kernel using WITH_META_MODE, I hope it didn't impact build):

Mar 31 2017, 6:35 PM
ae created D10215: Disable automatic MTU adjustment for if_gre(4) and if_me(4).
Mar 31 2017, 1:47 PM
ae committed rS316329: Reset the cached state of last lookup in the dynamic states when an.
Reset the cached state of last lookup in the dynamic states when an
Mar 31 2017, 9:27 AM

Mar 30 2017

ae committed rS316274: MFC r303018:.
MFC r303018:
Mar 30 2017, 2:21 PM

Mar 29 2017

ae accepted D10158: [mbufq] add mbufq_concat_all().
Mar 29 2017, 6:23 PM
ae committed rS316133: Fix bug in r308972 that leads to panic when non-compressed IPComp.
Fix bug in r308972 that leads to panic when non-compressed IPComp
Mar 29 2017, 10:26 AM

Mar 28 2017

ae added a comment to D10158: [mbufq] add mbufq_concat_all().

Maybe the name without _all suffix will be better choice?
Also, since there are no protection from concurrent access to queues, I think this should be noted in the comment too. The caller must have exclusive access to both queues, otherwise it is possible to get the wrong result.

Mar 28 2017, 2:22 PM
ae updated subscribers of D10154: Use PFIL's rmlock instead of IPFW's static rules rmlock.
Mar 28 2017, 9:04 AM
ae added a comment to D10154: Use PFIL's rmlock instead of IPFW's static rules rmlock.
In D10154#209953, @eri wrote:

Just curious, do you have any comparison/profiling data if this improves anything?

Mar 28 2017, 9:03 AM

Mar 27 2017

ae added a comment to D10154: Use PFIL's rmlock instead of IPFW's static rules rmlock.

So this just changes the locking model to use a per-vnet lock rather than a per-chain lock for stuff?

Mar 27 2017, 10:56 PM
ae created D10154: Use PFIL's rmlock instead of IPFW's static rules rmlock.
Mar 27 2017, 8:45 PM
ae updated the summary of D10150: Add ipfw protocol modification module ipfw_pmod.
Mar 27 2017, 6:43 PM
ae updated the diff for D10150: Add ipfw protocol modification module ipfw_pmod.

Modify some comments and error messages. Fix checksum modification
for forwarded traffic.

Mar 27 2017, 6:33 PM
ae created D10150: Add ipfw protocol modification module ipfw_pmod.
Mar 27 2017, 1:51 PM
ae committed rS316013: ake pfil's locking macros private..
ake pfil's locking macros private.
Mar 27 2017, 8:18 AM
ae committed rS316012: Declare module version..
Declare module version.
Mar 27 2017, 7:56 AM

Mar 20 2017

ae committed rS315625: MFC r315192:.
MFC r315192:
Mar 20 2017, 8:16 AM
ae committed rS315624: MFC r315192:.
MFC r315192:
Mar 20 2017, 8:11 AM
ae accepted D10059: Fix reference count leak with L2 caching..

This is something that I mean when said about setting RT_LLE_CACHE flags in the TCP/UDP code. This even looks better.

Mar 20 2017, 8:05 AM

Mar 19 2017

ae committed rS315532: MFC r314716:.
MFC r314716:
Mar 19 2017, 7:34 AM

Mar 18 2017

ae committed rS315515: Add a note about IPsec update to the UPDATING. This is direct commit..
Add a note about IPsec update to the UPDATING. This is direct commit.
Mar 18 2017, 10:19 PM
ae committed rS315514: MFC r304572 (by bz):.
MFC r304572 (by bz):
Mar 18 2017, 10:04 PM
ae committed rS315479: MFC r315050:.
MFC r315050:
Mar 18 2017, 10:49 AM

Mar 16 2017

ae abandoned D9929: Change the syntax of ipfw named states.

Committed in r315305.

Mar 16 2017, 11:59 AM
ae added inline comments to D9614: better UDF support from GSoC 2012.
Mar 16 2017, 11:44 AM

Mar 15 2017

ae committed rS315305: Change the syntax of ipfw's named states..
Change the syntax of ipfw's named states.
Mar 15 2017, 1:36 PM

Mar 14 2017

ae committed rS315233: Use memset with structure size..
Use memset with structure size.
Mar 14 2017, 7:57 AM

Mar 13 2017

ae added a comment to D9929: Change the syntax of ipfw named states.

Julian, if you have no objection I'll commit it tomorrow.

Mar 13 2017, 4:31 PM
ae committed rS315192: Ignore ifnet renaming in the bpf ifnet departure handler..
Ignore ifnet renaming in the bpf ifnet departure handler.
Mar 13 2017, 9:04 AM
ae committed rS315191: MFC r314715:.
MFC r314715:
Mar 13 2017, 8:04 AM
ae added a comment to D9962: Fix a memory leak in ipfw.

I think it would be better move all local variables to the top of function according to style(9) and reuse some already existing variable for this.

Mar 13 2017, 7:52 AM

Mar 11 2017

ae committed rS315050: Fix the L2 address printed in the "arp: %s moved from %*D" message..
Fix the L2 address printed in the "arp: %s moved from %*D" message.
Mar 11 2017, 4:58 AM

Mar 10 2017

ae added a comment to D9929: Change the syntax of ipfw named states.

we are going to run out of available tricks for this in ipfw at some stage.. Can we re-use () like used in table? or make the : part of the keep-state.. so that "keep_state: state1" or keep_state(state1) vs "keep_state :state1"

Mar 10 2017, 7:00 AM
ae committed rS314990: MFC r314614:.
MFC r314614:
Mar 10 2017, 5:44 AM

Mar 9 2017

ae created D9929: Change the syntax of ipfw named states.
Mar 9 2017, 8:41 AM

Mar 8 2017

ae accepted D9365: Porting utility getaddrinfo from NetBSD.

It seems that the 'R' format character of sockaddr_snprintf() function has become useless. In the rest looks good for me.

Mar 8 2017, 9:50 AM
ae committed rS314900: Remove now unneded cast..
Remove now unneded cast.
Mar 8 2017, 8:09 AM
ae committed rS314899: MFC r314497:.
MFC r314497:
Mar 8 2017, 8:00 AM

Mar 7 2017

ae committed rS314829: MFC r314430:.
MFC r314430:
Mar 7 2017, 3:53 AM
ae committed rS314827: MFC r314430:.
MFC r314430:
Mar 7 2017, 3:01 AM
ae committed rS314812: Introduce the concept of IPsec security policies scope..
Introduce the concept of IPsec security policies scope.
Mar 7 2017, 12:14 AM
ae closed D9805: Add the ability to filter the listing of security policies by policy scope by committing rS314812: Introduce the concept of IPsec security policies scope..
Mar 7 2017, 12:14 AM

Mar 6 2017

ae added a comment to D9721: Add netisr queue for deferred IPsec processing to reduce kernel stack requirements.

Well, it's allocating an mbuf, adding mtags, then freeing it if it fails to queue. A lot of our network stack does this because of well, history reasons.

Ok, so on the output path once the netisr path is called, how much of that work is done without a global lock (eg crypto?) I wonder how much of this change in throughput is because the netisr thread != the NIC input CPU path, and RX is saturating (more) cores. Versus, say, some parallel processing.

Because my guess is that the RX -> IP stuff -> IP TX stuff -> ipsec encrypt -> NIC if_transmit() path is happening in one complete thread, to completion each time, so there's backpressure (the NIC for example will drop frames early if the CPU is saturated for example, and/or send pause frames, etc.)

Mar 6 2017, 1:06 AM
ae committed rS314718: Fix the build. Use new ipfw_lookup_table() in the nat64 too..
Fix the build. Use new ipfw_lookup_table() in the nat64 too.
Mar 6 2017, 12:42 AM

Mar 5 2017

ae committed rS314716: Add IPv6 support to O_IP_DST_LOOKUP opcode..
Add IPv6 support to O_IP_DST_LOOKUP opcode.
Mar 5 2017, 11:48 PM
ae closed D9873: Fix ipfw tables related PR 217262 and 217292 by committing rS314716: Add IPv6 support to O_IP_DST_LOOKUP opcode..
Mar 5 2017, 11:48 PM
ae committed rS314715: Reject invalid object types that can not be used with specific opcodes..
Reject invalid object types that can not be used with specific opcodes.
Mar 5 2017, 10:20 PM
ae added a comment to D9721: Add netisr queue for deferred IPsec processing to reduce kernel stack requirements.

I think we have three options:

  • do not change anything and require kern.kstack_pages=4 for working IPsec without panics;
  • apply this patch to slowly work without panics when we have kern.kstack_pages below 4;
  • rework the patch to use different solution.
Mar 5 2017, 9:51 PM
ae added a comment to D9721: Add netisr queue for deferred IPsec processing to reduce kernel stack requirements.

Interesting. Ok. Well the existing ipsec code for transmit just runs to completion to ip output right?

Mar 5 2017, 9:41 PM
ae added a comment to D9721: Add netisr queue for deferred IPsec processing to reduce kernel stack requirements.
In D9721#204350, @eri wrote:

Actually that is not true it will run in parallell in the netisr thread.

Mar 5 2017, 9:32 PM
ae added a comment to D9721: Add netisr queue for deferred IPsec processing to reduce kernel stack requirements.

oh hm, one ipsec flow? so ok. So, can you also dump out the NIC statistics so we can see if the NIC is seeing all the traffic on one RX ring, or whether it's being load balanced between multiple RX rings.

Mar 5 2017, 4:22 AM

Mar 4 2017

ae added a comment to D9721: Add netisr queue for deferred IPsec processing to reduce kernel stack requirements.
  • 5 416795 440933.5 423271 426451.8 9207.3367

Difference at 95.0% confidence

-122302 +/- 9631.37
-22.2872% +/- 1.74536%
(Student's t, pooled s = 6603.87)
Mar 4 2017, 8:02 PM
ae added a comment to D9721: Add netisr queue for deferred IPsec processing to reduce kernel stack requirements.

Difference at 95.0% confidence

2906.3 +/- 1989.79
0.529619% +/- 0.363866%
(Student's t, pooled s = 1364.33)
Do you want flamegraph too?
Mar 4 2017, 5:21 PM
ae added a comment to D9721: Add netisr queue for deferred IPsec processing to reduce kernel stack requirements.

Difference at 95.0% confidence

2906.3 +/- 1989.79
0.529619% +/- 0.363866%
(Student's t, pooled s = 1364.33)
Do you want flamegraph too?
Mar 4 2017, 5:17 PM

Mar 3 2017

ae committed rS314614: Fix matching table entry value. Use real table value instead of its index.
Fix matching table entry value. Use real table value instead of its index
Mar 3 2017, 8:22 PM
ae added a comment to D9721: Add netisr queue for deferred IPsec processing to reduce kernel stack requirements.

So, if there is no objection, I'll commit this patch.

Mar 3 2017, 3:42 PM
ae retitled D9873: Fix ipfw tables related PR 217262 and 217292 from to Fix ipfw tables related PR 217262 and 217292.
Mar 3 2017, 1:23 AM

Mar 2 2017

ae added inline comments to D9805: Add the ability to filter the listing of security policies by policy scope.
Mar 2 2017, 6:34 PM

Mar 1 2017

ae committed rS314507: Fix NPTv6 rule counters when one_pass is not enabled..
Fix NPTv6 rule counters when one_pass is not enabled.
Mar 1 2017, 8:00 PM
ae committed rS314497: Do not invoke the resize event when previous provider's size was zero..
Do not invoke the resize event when previous provider's size was zero.
Mar 1 2017, 6:03 PM