Page MenuHomeFreeBSD
Feed Advanced Search

Feb 9 2017

pkelsey added a comment to D5017: More than 65K connection from single application.

This is the source comment that should have been submitted with my 'request for change' action, had I pressed the buttons in a way that didn't dispose of it instead.

Feb 9 2017, 5:23 PM · network
pkelsey requested changes to D5017: More than 65K connection from single application.
Feb 9 2017, 5:15 PM · network

Feb 3 2017

pkelsey committed rS313168: Fix VIMAGE-related bugs in TFO. The autokey callout vnet context was.
Fix VIMAGE-related bugs in TFO. The autokey callout vnet context was
Feb 3 2017, 5:03 PM

Oct 15 2016

pkelsey committed rS307337: Fix cases where the TFO pending counter would leak references, and eventually….
Fix cases where the TFO pending counter would leak references, and eventually…
Oct 15 2016, 1:41 AM
pkelsey closed D8235: Fix TFO pending counter leaks by committing rS307337: Fix cases where the TFO pending counter would leak references, and eventually….
Oct 15 2016, 1:41 AM

Oct 14 2016

pkelsey added a member for transport: pkelsey.
Oct 14 2016, 2:04 AM

Oct 13 2016

pkelsey updated the diff for D8235: Fix TFO pending counter leaks.

Adjusted label names and comments

Oct 13 2016, 7:23 PM

Oct 12 2016

pkelsey retitled D8235: Fix TFO pending counter leaks from to Fix TFO pending counter leaks.
Oct 12 2016, 10:56 PM
pkelsey added a comment to D8218: Close t_tfo_pending leaks.
In D8218#170900, @jtl wrote:

This is functionally equivalent, but I don't think it is clearer. I think it is less clear that the conditional decrement is placed after the tfo_done label as it will never execute after a goto tfo_done.

I placed it there as a matter of future-proofing. It doesn't hurt anything for it to be after the tfo_done label. But, if someone makes a code change to add a new goto tfo_done, it will still hit this check.

Because you obviously have strong feelings for exactly how this code should be (and this doesn't really impact me), I've opened a bug and assigned it to you. You can fix it at your convenience.

Oct 12 2016, 8:52 PM
pkelsey added a comment to D8218: Close t_tfo_pending leaks.

This is functionally equivalent, but I don't think it is clearer. I think it is less clear that the conditional decrement is placed after the tfo_done label as it will never execute after a goto tfo_done. There is clear one-to-one correspondence between creating a TFO socket and not needing this decrement that I think is blurred by this positioning because the decrement is not an action that is common to 'done' and 'tfo_done', it is unique to 'done'. I think we would be better off if the code wasn't arranging to cancel a conditional action because it was placed in a path it never needs to be in.

Oct 12 2016, 7:05 PM

Oct 11 2016

pkelsey added a comment to D8218: Close t_tfo_pending leaks.
In D8218#170623, @jtl wrote:

I can only identify one circumstance where the t_tfo_pending counter on a listen socket will be incremented without a corresponding decrement ever occurring - when all of the following conditions are met:

  1. TFO is enabled in the system
  2. A TFO SYN with an invalid TFO cookie matches a listen socket that has TFO enabled
  3. The current t_tfo_pending count on that socket is <= so_qlimit / 2

The other way is...

  1. TFO enabled
  2. t_tfo_pending count <= so_qlimit / 2
  3. SYN without a TFO option, followed by a SYN with a valid TFO cookie and the same IPs and port numbers

See line-specific comments in the patch.

I don't see in-line comments. Perhaps you can resubmit them?

Oct 11 2016, 7:59 PM
pkelsey added a comment to D8218: Close t_tfo_pending leaks.

There is still a path that leaks when mac_syncache_init() fails.

Oct 11 2016, 7:56 PM
pkelsey added a comment to D8218: Close t_tfo_pending leaks.

I can only identify two circumstances where the t_tfo_pending counter on a listen socket will be incremented without a corresponding decrement ever occurring.

Oct 11 2016, 7:05 PM

Sep 1 2016

pkelsey committed rS305169: _taskqueue_start_threads() now fails if it doesn't actually start any threads..
_taskqueue_start_threads() now fails if it doesn't actually start any threads.
Sep 1 2016, 2:06 AM
pkelsey closed D7701: _taskqueue_start_threads() should only claim success if it starts a thread by committing rS305169: _taskqueue_start_threads() now fails if it doesn't actually start any threads..
Sep 1 2016, 2:06 AM

Aug 30 2016

pkelsey added a comment to D7701: _taskqueue_start_threads() should only claim success if it starts a thread.
In D7701#159878, @jhb wrote:

This looks correct though I'd be surprised if any code actually ran into it. (Or at least, if kthread_add() is failing your system is probably in trouble already.)

Aug 30 2016, 2:20 AM

Aug 29 2016

pkelsey retitled D7701: _taskqueue_start_threads() should only claim success if it starts a thread from to _taskqueue_start_threads() should only claim success if it starts a thread.
Aug 29 2016, 9:46 PM

Dec 28 2015

pkelsey committed rS292823: MFC r292706:.
MFC r292706:
Dec 28 2015, 2:43 AM

Dec 24 2015

pkelsey committed rS292706: Implementation of server-side TCP Fast Open (TFO) [RFC7413]..
Implementation of server-side TCP Fast Open (TFO) [RFC7413].
Dec 24 2015, 7:10 PM
pkelsey closed D4350: TCP Fast Open (TFO) [RFC7413] Server-side Implementation by committing rS292706: Implementation of server-side TCP Fast Open (TFO) [RFC7413]..
Dec 24 2015, 7:10 PM

Dec 23 2015

pkelsey added a comment to D4350: TCP Fast Open (TFO) [RFC7413] Server-side Implementation.

Absent any issues raised, I am going to commit this sometime in the next 24-48 hours.

Dec 23 2015, 12:01 AM

Dec 17 2015

pkelsey updated D4350: TCP Fast Open (TFO) [RFC7413] Server-side Implementation.
Dec 17 2015, 5:58 PM

Dec 9 2015

pkelsey updated the diff for D4350: TCP Fast Open (TFO) [RFC7413] Server-side Implementation.

Fixed issue with discarding TFO ACKs in tcp_do_segment() and fixed issue with snd_una not being properly advanced when TFO connections transition to ESTABLISHED, also in tcp_do_segment(). Also some minor cleanups (comments, whitespace, etc).

Dec 9 2015, 7:43 PM
pkelsey added inline comments to D4350: TCP Fast Open (TFO) [RFC7413] Server-side Implementation.
Dec 9 2015, 7:31 PM

Dec 3 2015

pkelsey added inline comments to D4350: TCP Fast Open (TFO) [RFC7413] Server-side Implementation.
Dec 3 2015, 2:31 AM
pkelsey added inline comments to D4350: TCP Fast Open (TFO) [RFC7413] Server-side Implementation.
Dec 3 2015, 12:53 AM

Dec 2 2015

pkelsey updated the diff for D4350: TCP Fast Open (TFO) [RFC7413] Server-side Implementation.

File contents for tcp_fastopen.[ch] were missing from the initial diff.

Dec 2 2015, 9:13 PM
pkelsey added a reviewer for D4350: TCP Fast Open (TFO) [RFC7413] Server-side Implementation: rrs.
Dec 2 2015, 8:06 PM
pkelsey added inline comments to D4350: TCP Fast Open (TFO) [RFC7413] Server-side Implementation.
Dec 2 2015, 8:00 PM
pkelsey retitled D4350: TCP Fast Open (TFO) [RFC7413] Server-side Implementation from to TCP Fast Open (TFO) [RFC7413] Server-side Implementation.
Dec 2 2015, 7:44 PM

Sep 7 2015

pkelsey added a comment to D3567: ignore ICMP need frag with equal or larger MTU offer.

I don't think we should be taking any

Sep 7 2015, 5:32 PM

Sep 4 2015

pkelsey added a comment to D3567: ignore ICMP need frag with equal or larger MTU offer.

We shouldn't be taking any action at all based on a NEEDFRAG message that suggests (or from which we deduce) a new mtu that is the same or larger than the current one. I think the clearest expression of this idea is to only call tcp_mtudisc() from tcp_ctlinput() when the new mtu could decrease tp->t_maxseg (and remove the comment that tcp_mtudisc() 'does the right thing').

Sep 4 2015, 3:53 PM

Jul 29 2015

pkelsey committed rS286027: Revert r265338, r271089 and r271123 as those changes do not handle.
Revert r265338, r271089 and r271123 as those changes do not handle
Jul 29 2015, 5:59 PM

Jul 21 2015

pkelsey committed rS285762: MFC r285567:.
MFC r285567:
Jul 21 2015, 6:38 PM

Jul 20 2015

pkelsey committed rD47025: Remove trailing "@" from team approval example in Committer's Guide,.
Remove trailing "@" from team approval example in Committer's Guide,
Jul 20 2015, 6:28 PM
pkelsey closed D3128: Remove trailing "@" from team approval example in Committer's Guide by committing rD47025: Remove trailing "@" from team approval example in Committer's Guide,.
Jul 20 2015, 6:28 PM
pkelsey updated the diff for D3128: Remove trailing "@" from team approval example in Committer's Guide.

Moved </entry> to the end of the </screen> line in the last edit.

Jul 20 2015, 3:01 AM
pkelsey updated the diff for D3128: Remove trailing "@" from team approval example in Committer's Guide.

Adjusted markup for team approval example per wblock.

Jul 20 2015, 2:15 AM

Jul 19 2015

pkelsey retitled D3128: Remove trailing "@" from team approval example in Committer's Guide from to Remove trailing "@" from team approval example in Committer's Guide.
Jul 19 2015, 8:50 PM

Jul 18 2015

pkelsey committed rS285665: MFC r285275 (only the part that fixes PR 199568):.
MFC r285275 (only the part that fixes PR 199568):
Jul 18 2015, 1:29 AM

Jul 17 2015

pkelsey closed D3060: Don't use uninitialized timestamp echo reply value. by committing rS285657: Check TCP timestamp option flag so that the automatic receive buffer.
Jul 17 2015, 5:37 PM
pkelsey committed rS285657: Check TCP timestamp option flag so that the automatic receive buffer.
Check TCP timestamp option flag so that the automatic receive buffer
Jul 17 2015, 5:37 PM

Jul 15 2015

pkelsey committed rS285605: MFC r285190:.
MFC r285190:
Jul 15 2015, 4:57 PM
pkelsey committed rS285604: MFC r285188:.
MFC r285188:
Jul 15 2015, 4:56 PM
pkelsey committed rS285593: Revert inadvertent change to amd64/GENERIC..
Revert inadvertent change to amd64/GENERIC.
Jul 15 2015, 1:05 AM
pkelsey committed rS285592: Add netmap support for ixgbe SRIOV VFs (that is, to if_ixv)..
Add netmap support for ixgbe SRIOV VFs (that is, to if_ixv).
Jul 15 2015, 1:02 AM
pkelsey closed D2923: netmap support for ixgbe SRIOV VFs (if_ixv) by committing rS285592: Add netmap support for ixgbe SRIOV VFs (that is, to if_ixv)..
Jul 15 2015, 1:02 AM
pkelsey committed rS285590: Fix igxbe SRIOV VF (if_ixv) initialization bugs. The MAC address for.
Fix igxbe SRIOV VF (if_ixv) initialization bugs. The MAC address for
Jul 15 2015, 12:36 AM
pkelsey closed D2922: Fix ixgbe SRIOV bugs by committing rS285590: Fix igxbe SRIOV VF (if_ixv) initialization bugs. The MAC address for.
Jul 15 2015, 12:36 AM

Jul 13 2015

pkelsey added a comment to D2922: Fix ixgbe SRIOV bugs.

It's been two weeks with no further input. I just pinged rstone directly with a last-call. If there are no further objections in the next 8 hours or so, I plan to commit this as-is.

Jul 13 2015, 6:35 PM
pkelsey added a comment to D3060: Don't use uninitialized timestamp echo reply value..
In D3060#60525, @hiren wrote:

https://www.ietf.org/rfc/rfc1323.txt mentions:

The Timestamp Echo Reply field (TSecr) is only valid if the ACK
bit is set in the TCP header; if it is valid, it echos a times-
tamp value that was sent by the remote TCP in the TSval field
of a Timestamps option.  When TSecr is not valid, its value
must be zero.

Which I brought up to Patrick but then he mentioned that while following this and always initializing the tsecr field early in tcpopt processing would be the correct thing to do but the code is already established elsewhere to 1) check the option flag for the timestamp option and then 2) check if the value is not zero.

And I agree that because of that reasoning, the proposed fix seems sufficient to me.

Also adding network so someone else can also review this.

Jul 13 2015, 1:58 AM

Jul 12 2015

pkelsey retitled D3060: Don't use uninitialized timestamp echo reply value. from to Don't use uninitialized timestamp echo reply value..
Jul 12 2015, 7:00 AM

Jul 8 2015

pkelsey committed rS285299: MFV r285292:.
MFV r285292:
Jul 8 2015, 11:58 PM
pkelsey committed rS285292: Merge upstream fix to eliminate build-breaking gcc warnings of no.
Merge upstream fix to eliminate build-breaking gcc warnings of no
Jul 8 2015, 9:33 PM
pkelsey closed D3007: Merge tcpdump 4.7.4 to head by committing rS285275: MFV r285191: tcpdump 4.7.4..
Jul 8 2015, 4:19 PM
pkelsey committed rS285275: MFV r285191: tcpdump 4.7.4..
MFV r285191: tcpdump 4.7.4.
Jul 8 2015, 4:19 PM
pkelsey committed rS285273: Replace use of .Po Pc with the preferred .Pq for single line.
Replace use of .Po Pc with the preferred .Pq for single line
Jul 8 2015, 4:17 PM
pkelsey closed D3000: Replace use of .Po Pc with the preferred .Pq for single line enclosures in iovctl.conf(5), iovctl(8), pci(9), and pci_iov_schema(9). by committing rS285273: Replace use of .Po Pc with the preferred .Pq for single line.
Jul 8 2015, 4:17 PM

Jul 7 2015

pkelsey removed a reviewer for D3000: Replace use of .Po Pc with the preferred .Pq for single line enclosures in iovctl.conf(5), iovctl(8), pci(9), and pci_iov_schema(9).: rstone.
Jul 7 2015, 8:53 PM
pkelsey added a comment to D3007: Merge tcpdump 4.7.4 to head.
In D3007#59268, @wblock wrote:

Are the local changes FreeBSD-specific? To put it another way, can they be submitted upstream to avoid being lost on the next import? The man page changes look that way, at least.

Jul 7 2015, 2:56 PM
pkelsey updated D3007: Merge tcpdump 4.7.4 to head.
Jul 7 2015, 2:13 PM
pkelsey retitled D3007: Merge tcpdump 4.7.4 to head from to Merge tcpdump 4.7.4 to head.
Jul 7 2015, 4:32 AM

Jul 6 2015

pkelsey committed rS285210: Tag tcpdump 4.7.4.
Tag tcpdump 4.7.4
Jul 6 2015, 4:50 PM
pkelsey committed rS285208: Don't acquire sysctlmemlock in userland_sysctl() when the old value.
Don't acquire sysctlmemlock in userland_sysctl() when the old value
Jul 6 2015, 4:07 PM
pkelsey closed D2987: Don't acquire sysctlmemlock unnecessarily by committing rS285208: Don't acquire sysctlmemlock in userland_sysctl() when the old value.
Jul 6 2015, 4:07 PM
pkelsey added a comment to D2987: Don't acquire sysctlmemlock unnecessarily.
In D2987#59000, @kib wrote:

This is probably fine.

But, from the description of the sysctlmemlock, it seems that the lock must be owned whenever sysctl_wire_old_buffer() is called, am I right ? If yes, I think an assertion that the lock is owned, should be added to the wire_old_buffer().

Jul 6 2015, 2:14 PM
pkelsey committed rS285191: Vendor import of tcpdump 4.7.4..
Vendor import of tcpdump 4.7.4.
Jul 6 2015, 2:16 AM
pkelsey committed rS285190: Fix if_loop so bpfwrite() can use it regardless of the state of.
Fix if_loop so bpfwrite() can use it regardless of the state of
Jul 6 2015, 2:12 AM
pkelsey closed D2989: Fix if_loop so bpfwrite() can use it regardless of the state of bd_hdrcmplt. by committing rS285190: Fix if_loop so bpfwrite() can use it regardless of the state of.
Jul 6 2015, 2:12 AM
pkelsey retitled D3000: Replace use of .Po Pc with the preferred .Pq for single line enclosures in iovctl.conf(5), iovctl(8), pci(9), and pci_iov_schema(9). from to Replace use of .Po Pc with the preferred .Pq for single line enclosures in iovctl.conf(5), iovctl(8), pci(9), and pci_iov_schema(9)..
Jul 6 2015, 2:09 AM
pkelsey committed rS285189: Fix range upper bound for uint32_t and uint64_t, and reformat range.
Fix range upper bound for uint32_t and uint64_t, and reformat range
Jul 6 2015, 1:48 AM
pkelsey closed D2988: Fix range descriptions in iovctl.conf(5) man page by committing rS285189: Fix range upper bound for uint32_t and uint64_t, and reformat range.
Jul 6 2015, 1:48 AM
pkelsey committed rS285188: Fix sysctl(3) so it returns the intended values for all mib names in.
Fix sysctl(3) so it returns the intended values for all mib names in
Jul 6 2015, 1:42 AM
pkelsey closed D2945: Fix handling of 'user' mib in sysctl(3) by committing rS285188: Fix sysctl(3) so it returns the intended values for all mib names in.
Jul 6 2015, 1:42 AM
pkelsey edited reviewers for D2987: Don't acquire sysctlmemlock unnecessarily, added: kib; removed: jhb.
Jul 6 2015, 1:30 AM

Jul 4 2015

pkelsey retitled D2989: Fix if_loop so bpfwrite() can use it regardless of the state of bd_hdrcmplt. from to Fix if_loop so bpfwrite() can use it regardless of the state of bd_hdrcmplt..
Jul 4 2015, 3:57 AM
pkelsey added inline comments to D2988: Fix range descriptions in iovctl.conf(5) man page.
Jul 4 2015, 3:05 AM

Jul 3 2015

pkelsey retitled D2988: Fix range descriptions in iovctl.conf(5) man page from to Fix range descriptions in iovctl.conf(5) man page.
Jul 3 2015, 9:41 PM
pkelsey retitled D2987: Don't acquire sysctlmemlock unnecessarily from to Don't acquire sysctlmemlock unnecessarily.
Jul 3 2015, 9:20 PM

Jun 30 2015

pkelsey added a reviewer for D2945: Fix handling of 'user' mib in sysctl(3): hselasky.
Jun 30 2015, 2:03 PM
pkelsey added inline comments to D2923: netmap support for ixgbe SRIOV VFs (if_ixv).
Jun 30 2015, 2:02 PM

Jun 29 2015

pkelsey added a comment to D2922: Fix ixgbe SRIOV bugs.
In D2922#57500, @erj wrote:
In D2922#57477, @erj wrote:

Everything but the change in ixgbe_vf.c looks good to me.

It looks like the PF driver needs to not set CTS when it acks the reset request, instead of the VF driver ignoring the flag.

So ixgbe_vf_reset_msg() in if_ix.c needs to change instead.

It certainly wasn't clear to me what the implementation intent was with CTS flag, so I made this change in what appeared to be the most consistent way given the existing code. In this case, ixgbe_set_rar_vf(), ixgbe_set_uc_addr_vf(), and ixgbev_get_queues() served as the reference for what the VF side of things was doing before checking flags in the response header. Considering your requested change to the patch, would those also be changed under the same reasoning? Also, in if_ix.c, ixgbe_vf_get_queues() is setting IXGBE_VT_MSGTYPE_CTS in its response - should that also be eliminated as the receiver of that response is just masking it off?

My reasoning was "do it because it'll match the Linux PF's behavior" and not "I don't like the way you did it." AFAICT, the Linux PF doesn't send CTS on a VF reset request ACK because they don't think it's necessary. The VF is marked as being clear to send in their PF after their reset flow, so they might assume the VF would know it's clear to send if it receives a response.

Jun 29 2015, 9:11 PM
pkelsey added a comment to D2922: Fix ixgbe SRIOV bugs.
In D2922#57477, @erj wrote:

Everything but the change in ixgbe_vf.c looks good to me.

It looks like the PF driver needs to not set CTS when it acks the reset request, instead of the VF driver ignoring the flag.

So ixgbe_vf_reset_msg() in if_ix.c needs to change instead.

Jun 29 2015, 5:54 PM
pkelsey retitled D2945: Fix handling of 'user' mib in sysctl(3) from to Fix handling of 'user' mib in sysctl(3).
Jun 29 2015, 4:54 PM

Jun 27 2015

pkelsey updated D2922: Fix ixgbe SRIOV bugs.
Jun 27 2015, 6:19 PM
pkelsey added a reviewer for D2922: Fix ixgbe SRIOV bugs: gnn.
Jun 27 2015, 6:14 PM
pkelsey added a reviewer for D2923: netmap support for ixgbe SRIOV VFs (if_ixv): gnn.
Jun 27 2015, 6:13 PM
pkelsey committed rS284891: Use correct flag in iovctl_start()..
Use correct flag in iovctl_start().
Jun 27 2015, 6:02 PM
pkelsey closed D2921: iovctl rc script uses invalid option by committing rS284891: Use correct flag in iovctl_start()..
Jun 27 2015, 6:02 PM
pkelsey retitled D2923: netmap support for ixgbe SRIOV VFs (if_ixv) from to netmap support for ixgbe SRIOV VFs (if_ixv).
Jun 27 2015, 6:43 AM
pkelsey retitled D2922: Fix ixgbe SRIOV bugs from to Fix ixgbe SRIOV bugs.
Jun 27 2015, 5:53 AM
pkelsey retitled D2921: iovctl rc script uses invalid option from to iovctl rc script uses invalid option.
Jun 27 2015, 5:29 AM

Jun 6 2015

pkelsey committed rS283978: MFC r283641:.
MFC r283641:
Jun 6 2015, 10:51 PM
pkelsey committed rS283977: MFC r283652:.
MFC r283652:
Jun 6 2015, 10:51 PM

May 28 2015

pkelsey committed rS283652: Provide an unambiguous description of the potential hazard in calling.
Provide an unambiguous description of the potential hazard in calling
May 28 2015, 4:18 PM
pkelsey committed rS283641: Add CAP_FCNTL to the lease file capsicum rights, and limit to.
Add CAP_FCNTL to the lease file capsicum rights, and limit to
May 28 2015, 5:38 AM

May 24 2015

pkelsey committed rS283344: MFC r283093:.
MFC r283093:
May 24 2015, 1:52 AM
pkelsey committed rS283343: MFC r282978:.
MFC r282978:
May 24 2015, 1:48 AM

May 19 2015

pkelsey committed rS283093: Added description of POSIX-specified behavior when invoked on a key from….
Added description of POSIX-specified behavior when invoked on a key from…
May 19 2015, 2:25 AM

May 15 2015

pkelsey committed rS282978: When a netmap process terminates without the full set of buffers it.
When a netmap process terminates without the full set of buffers it
May 15 2015, 3:37 PM