In D32356#785045, @hselasky wrote:@jhb : No. The current patch is for -current / main. Do you want me to create such a git repository, or can we use your existing freebsd fork / branch?
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Feed Advanced Search
Advanced Search
Advanced Search
Mar 28 2022
Mar 28 2022
Mar 24 2022
Mar 24 2022
Mar 23 2022
Mar 23 2022
• hselasky added a comment to D32356: ktls: Add full support for TLS RX offloading via network interface..
@jhb : No. The current patch is for -current / main. Do you want me to create such a git repository, or can we use your existing freebsd fork / branch?
Do you have this pushed to a public branch somewhere (e.g. on GitHub?) It might be easiest to show you what I am saying about how to handle the crypto for the mixed case if I can generate a patch relative to your branch.
Mar 16 2022
Mar 16 2022
firk_cantconnect.ru updated the test plan for D34579: Verify directory fds against chroot when receiving them through SCM_RIGHTS.
Mar 15 2022
Mar 15 2022
firk_cantconnect.ru retitled D34560: Add mount option to disallow creating sockets on filesystem from Add mount option to disallow creating socketson filesystem to Add mount option to disallow creating sockets on filesystem.
Mar 14 2022
Mar 14 2022
firk_cantconnect.ru requested review of D34560: Add mount option to disallow creating sockets on filesystem.
Mar 3 2022
Mar 3 2022
I think pushing it and fixing the lagg issue after its in the tree is probably the best path forward.
• hselasky added a comment to D32356: ktls: Add full support for TLS RX offloading via network interface..
In D32356#778142, @jhb wrote:One other structural thing I see is that this still assumes the outbound route path matches the inbound path (using the route to allocate the tag and changing ktls_output_eagain to reset both sessions on a TX failure). But as Drew noted that doesn't work in his setup where the RX and TX can be over different ports in a lagg since the remove end of the lagg can use whatever algorithm it wants to distribute the RX traffic. Instead, we need to store the "leaf" ifp in a new field in m_pkthdr or the like and pass that up through into the socket buffer. At the point of m_demote when we remove the packet header you would want to check for ifp mismatches like we do for output in ip_output_send. Perhaps that can be done as a second round, but then we will just have to revert the ktls_output_eagain() change so I'd rather avoid changing that API just to have to change it back later.
Feb 24 2022
Feb 24 2022
melifaro added inline comments to D32356: ktls: Add full support for TLS RX offloading via network interface..
Feb 23 2022
Feb 23 2022
One other structural thing I see is that this still assumes the outbound route path matches the inbound path (using the route to allocate the tag and changing ktls_output_eagain to reset both sessions on a TX failure). But as Drew noted that doesn't work in his setup where the RX and TX can be over different ports in a lagg since the remove end of the lagg can use whatever algorithm it wants to distribute the RX traffic. Instead, we need to store the "leaf" ifp in a new field in m_pkthdr or the like and pass that up through into the socket buffer. At the point of m_demote when we remove the packet header you would want to check for ifp mismatches like we do for output in ip_output_send. Perhaps that can be done as a second round, but then we will just have to revert the ktls_output_eagain() change so I'd rather avoid changing that API just to have to change it back later.
Feb 18 2022
Feb 18 2022
Feb 10 2022
Feb 10 2022
• hselasky added inline comments to D32356: ktls: Add full support for TLS RX offloading via network interface..
melifaro added inline comments to D32356: ktls: Add full support for TLS RX offloading via network interface..
Feb 8 2022
Feb 8 2022
Feb 7 2022
Feb 7 2022
• hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..
Rebase.
Jan 31 2022
Jan 31 2022
Jan 27 2022
Jan 27 2022
Jan 26 2022
Jan 26 2022
• hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..
Rebase patch.
Jan 25 2022
Jan 25 2022
• hselasky added a comment to D32356: ktls: Add full support for TLS RX offloading via network interface..
@jhb : Ping.
Jan 21 2022
Jan 21 2022
And for VNET(9) jail, it seems the loopback interface is always configured first.
The behavior is inconsistent with the host.
Jan 20 2022
Jan 20 2022
Jan 18 2022
Jan 18 2022
Jan 11 2022
Jan 11 2022
• hselasky added a comment to D32356: ktls: Add full support for TLS RX offloading via network interface..
@jhb: I noticed in the AESNI crypto implementation that it might call malloc() when using the output buffer feature ... and this should be avoided when we already allocated a buffer.
• hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..
Take @jhb 's suggestion to encrypt a zero'ed mbuf and then XOR.
In D32356#765375, @hselasky wrote:Rework the re-crypt support. The low level APIs in the crypto framework can apparently only do full encryption and full decryption :-( So use that for now.
• hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..
Rework the re-crypt support. The low level APIs in the crypto framework can apparently only do full encryption and full decryption :-( So use that for now.
• hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..
Fix one more compilation issue.
• hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..
Fix minor compilation issue.
• hselasky added a comment to D32356: ktls: Add full support for TLS RX offloading via network interface..
Implement recrypt functions for the open crypto framework, OCF.
• hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..
Implement native single-pass recrypt function in the open crypto framework.
• hselasky added a comment to D32356: ktls: Add full support for TLS RX offloading via network interface..
Hi John,
Jan 7 2022
Jan 7 2022
• hselasky added inline comments to D32356: ktls: Add full support for TLS RX offloading via network interface..
• hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..
Diff reduction.
• hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..
Rebased patch.
• hselasky added inline comments to D32356: ktls: Add full support for TLS RX offloading via network interface..
• hselasky added inline comments to D32356: ktls: Add full support for TLS RX offloading via network interface..
Jan 5 2022
Jan 5 2022
jhb added inline comments to D32356: ktls: Add full support for TLS RX offloading via network interface..
Dec 20 2021
Dec 20 2021
• hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..
- Rebase patch.
- Properly implement ktls_ocf_tls13_aead_recrypt().
Dec 15 2021
Dec 15 2021
• hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..
- Catch up with latest INP_FREED changes.
- Fix some compile issues.
• hselasky removed a reviewer for D32356: ktls: Add full support for TLS RX offloading via network interface.: menyy_mellanox.com.
• hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..
Rebase patch.
Dec 1 2021
Dec 1 2021
Oooh, good catch.
In D33210#750542, @kp wrote:That was done in 3dd5760aa5f876f8a3f0735afeebdf9ee414e1f5, so I'm a little confused where this comes from.
That was done in 3dd5760aa5f876f8a3f0735afeebdf9ee414e1f5, so I'm a little confused where this comes from.
Nov 25 2021
Nov 25 2021
• hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..
Rebase patch for FreeBSD main branch.
Nov 17 2021
Nov 17 2021
• hselasky added inline comments to D32356: ktls: Add full support for TLS RX offloading via network interface..
Nov 10 2021
Nov 10 2021
Nov 8 2021
Nov 8 2021
• hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..
Address comment from @markj .
• hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..
Add support for VLAN.
Nov 5 2021
Nov 5 2021
markj added a comment to D32356: ktls: Add full support for TLS RX offloading via network interface..
Is some description of the changes, or a documentation update, available?
Sorry my bad, resubmit diff as last one include local WIP stashes.
- Removed redundant error initialization.
- Moved M_SETFIB(m, sc->vxl_fibnum) out of read lock
Nov 4 2021
Nov 4 2021
• hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..
Rebase patch on top of latest main branch.
• hselasky added a reviewer for D32356: ktls: Add full support for TLS RX offloading via network interface.: markj.
Some other things we talked about on a call today:
Left a few comments. It has been a long while since I've dealt with vxlan - and FreeBSD network stack in general - so somebody more familiar should give a correctness review.
In D32820#741041, @zlei.huang_gmail.com wrote:I'm glad to do it, but currently if_vxlan is not VNETified and IIUC it is hard to write a regression test for vxlan right now.
Yeah, that's true. If it's not VNET-ready you can't (easily) write tests for it.
In D32820#741027, @kp wrote:I'm not familiar with the vxlan code but this does look sane.
Let's give Bryan a few more days, but if he's not had the time for this by let's say Monday ping me to commit this.
Also, if someone would feel called to write a regression test for vxlan in general and this new feature specifically I'd love to see it. Something like the basic test in tests/sys/net/if_vlan.sh would already be valuable. (In fact, when I wrote that test it found a panic in the if_vlan code).
I'm glad to do it, but currently if_vxlan is not VNETified and IIUC it is hard to write a regression test for vxlan right now.
In D32820#741028, @melifaro wrote:LGTM, ty!
Any chance you can fill in the "testing" section?
LGTM, ty!
Any chance you can fill in the "testing" section?
I'm not familiar with the vxlan code but this does look sane.
LGTM for the man page part.
zlei retitled D32820: vxlan: Add support for socket ioctls SIOC[SG]TUNFIB from vxlan: Support socket ioctls SIOC[SG]TUNFIB to vxlan: Add support for socket ioctls SIOC[SG]TUNFIB.
Nov 3 2021
Nov 3 2021
Nov 2 2021
Nov 2 2021
• hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..
Several fixes and minor improvements.
Oct 29 2021
Oct 29 2021
• hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..
Fix uninitialized trail_len variable in offload case.
Oct 28 2021
Oct 28 2021
• hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..
More updates and fixes.
Oct 27 2021
Oct 27 2021
• hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..
Use next TLS record TCP SN instead of current TLS record. (maybe should pass both so driver can decide)
• hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..
Fixed some issues with TLS RX resync. Rebased and removed TOE patches.
Oct 26 2021
Oct 26 2021
• hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..
Add support for TLS RX via LAGG.
• hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..
Rebase patch and some fixes.
Oct 21 2021
Oct 21 2021
• hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..
Bugfixes.
Oct 19 2021
Oct 19 2021
• hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..
Implemented split decryption support.
Oct 18 2021
Oct 18 2021
• hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..
Update ktls_mbuf_crypto_state() function and rebase.
Oct 17 2021
Oct 17 2021
his "feature" is I believe still needed. I am keeping this alive to help me remember the details and to flag it to others.
Oct 15 2021
Oct 15 2021
• hselasky added a comment to D32356: ktls: Add full support for TLS RX offloading via network interface..
@jhb - just put a note here when your done pushing upstream and I'll rebase.
Oct 14 2021
Oct 14 2021
FYI, I'm going to pull out the non-TOE-specific bits of the toe_tls_rxswitch branch and post them for review. Once you are able to rebase on those that will help narrow down the diff a bit.
• hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..
Include all patches needed on top of the FreeBSD main branch.
Oct 8 2021
Oct 8 2021
• hselasky added inline comments to D32356: ktls: Add full support for TLS RX offloading via network interface..
Oct 7 2021
Oct 7 2021
melifaro added inline comments to D32356: ktls: Add full support for TLS RX offloading via network interface..
• hselasky requested review of D32356: ktls: Add full support for TLS RX offloading via network interface..
Oct 6 2021
Oct 6 2021
Abandoned since it works as intended.
Aug 23 2021
Aug 23 2021
In D31630#713490, @melifaro wrote:I'd rather not touch it now - there is something WIP that will change this part of the code anyway.
@melifaro Thanks very much!
Aug 22 2021
Aug 22 2021
Done.
Rebased on latest main branch.
Moved down RO_GET_FAMILY()
I'd rather not touch it now - there is something WIP that will change this part of the code anyway.
Aug 21 2021
Aug 21 2021
It's a bit more complex than that.
For the interface routes (e.g. ones w/o the gateway), you may end up with AF_LINK family in RTAX_GATEWAY.
So, you need to check if RTF_GATEWAY is set prior to using RTAX_GATEWAY.