Just saw https://reviews.freebsd.org/D46068. If this patch has not been committed, we can still further revise it, so that D46068 can be cleaner on function re-use.
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Jul 24 2024
Jul 23 2024
code clean up
Jul 22 2024
Thanks for the update. Looks better and just a small concern about TCP_MAXWIN for 65535.
Jul 19 2024
Jul 16 2024
After reading the paper and IETF slides, it looks good to me on top of the general view. Just some small concerns below.
Jul 12 2024
Thanks for the update! Looks good to me.
Over all looks good to me. Thanks for the update.
Jul 11 2024
Jun 18 2024
I started to draft the results into wiki pages from testing this patch. Please let me know any metrics you would like to see.
Jun 7 2024
Other than the comment wording like "rtwn supports the default set of net80211 supported ciphers (IEEE80211_CRYPTO_[WEP, TKIP, AES_CCM])", looks good to me.
Jun 5 2024
Jun 4 2024
Looks good to me. :)
May 17 2024
May 15 2024
Start to pick up slowly about where I left, and touch the water. :)
May 13 2024
I see you made comments of "ieee80211_set_software_ciphers() is not needed" in if_rtwn.c. Do you mind to add it in the rest of the drivers files? Or is there any better/central place to put such comment or document it?
May 7 2024
update based on bz@ comments
May 6 2024
rebase before scrutiny check
May 2 2024
Individual accept.
May 1 2024
Apr 30 2024
Just some minor issues.
Apr 29 2024
If you have a plan to figure out TEXT_SET(crypto##_set, name##_modevent) and TEXT_SET(ratectl##_set, alg##_modevent), I have no problem with this patch.
Cautious individual accept.
Apr 26 2024
I don't get it why this change made a difference in your test. Is it because of the bug I pointed in TEXT_SET ?
LGTM
The rest looks good to me.
Apr 24 2024
In D44827#1023217, @adrian wrote:In D44827#1023209, @bz wrote:In D44827#1023208, @adrian wrote:eg ath(4) would do something like:
How do you want to implement ath_settkipmic() "nicely" without exposing the field?
oops my bad. it'll be a flag for hardware encryption support! I fixed the code snippet.
Also do you have any plan to update the man page regarding the new field ic_sw_cryptocaps besides ic_cryptocaps ?
Also please update the Summary section in this review, i.e. the mentioned new field ic_wpa_cryptocaps is actually the ic_sw_cryptocaps in the code change.
LGTM
I am intending to give approval, but I am afraid of missing the new response to my review comment for the code comment update. So let's be patient. :)
Apr 23 2024
In D43966#1023788, @bz wrote:@cc Adding LOCK asserts is a very good idea; not all the functions need them if I remember correctly. Should I really add it to this "fix" or should I do a separate full pass on the linux_80211_macops.c file?
Apr 17 2024
Mar 22 2024
In D44463#1014016, @adrian wrote:you negotiate it as an extension, and then it's used to switch STA keys without dropping frames.
During association with the AP, sw/hw keys (indexes) are set. And before tx, the hw key is selected by sw key's index returned from ieee80211_crypto_get_txkey(), same way as without LKPI_80211_HW_CRYPTO.
Mar 21 2024
Mar 15 2024
I am working the "multi-key" support these days on top of D43634(this patch) and D43648, but it turns out this patch is causing more trouble than it is trying to solve.
In fact, it caused this "Abort trap" from the console and then my VM is shutdown silently. The kernel is main with LKPI_80211_HW_CRYPTO on top of this patch.
Mar 14 2024
code update according to comments
Mar 7 2024
Mar 6 2024
I think LKPI_80211_LHW_LOCK_ASSERT can help remind us of such LKPI_80211_LHW_LOCK requirement for lkpi_80211_mo_* functions.
Mar 5 2024
Mar 4 2024
Mar 1 2024
The ktls draws my attention. Hope you add reviewers.
Feb 29 2024
Shall correct the typo first before committing.
Feb 26 2024
Please add PR: 277095 in the summary, as this patch also fixes that.
Feb 23 2024
Feb 22 2024
Good catch! Always keep an eye on the cubic_data->t_epoch refresh.
Feb 21 2024
In D43968#1003515, @bz wrote:In D43968#1003463, @cc wrote:Initial test shows this error when I changed the channel number in AP. Looks like a reproduce of PR 277100 without LKPI_80211_HW_CRYPTO enabled, or a separate issue?
Yes, looks likely same/similar than in the PR.
You've seen the comments (1)-(4) above?
Feb 20 2024
Initial test shows this error when I changed the channel number in AP. Looks like a reproduce of PR 277100 without LKPI_80211_HW_CRYPTO enabled, or a separate issue?
Feb 19 2024
Feb 16 2024
Feb 13 2024
Feb 12 2024
In D43770#999610, @bz wrote:Can we please NOT do this. I explained it in my other review (D43658) twice by now.
This is (a) only changing some defines to change and not all the others for the same structure, (b) it's been in at least 3 major releases this way why still change it? It fits with the entire HT code. For VHT which is not used yet we still can do and do.
Also, if doing I said replace them with the names from LinuxKPI so we do not have two versions. You are just trading one name for another name and still leaving us with more compat names.
Feb 9 2024
In D43725#999202, @cc wrote:In D43725#999194, @cc wrote:Given D43389 is the FIRST of a series, is this the SECOND one or is there any dependence? Please help clarify.
I think there is dependence, as I applied this patch only, restarted netif, and hit the panic:
--- trap 0x9, rip = 0xffffffff80cf8661, rsp = 0xfffffe00ab111d00, rbp = 0xfffffe00ab111d10 --- node_free() at node_free+0x11/frame 0xfffffe00ab111d10 lkpi_sta_auth_to_scan() at lkpi_sta_auth_to_scan+0x27f/frame 0xfffffe00ab111d80 lkpi_iv_newstate() at lkpi_iv_newstate+0x253/frame 0xfffffe00ab111df0 ieee80211_newstate_cb() at ieee80211_newstate_cb+0x226/frame 0xfffffe00ab111e40 taskqueue_run_locked() at taskqueue_run_locked+0xab/frame 0xfffffe00ab111ec0 taskqueue_thread_loop() at taskqueue_thread_loop+0xd3/frame 0xfffffe00ab111ef0 fork_exit() at fork_exit+0x82/frame 0xfffffe00ab111f30 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe00ab111f30 --- trap 0, rip = 0, rsp = 0, rbp = 0 --- KDB: enter: panic [ thread pid 0 tid 100192 ] Stopped at kdb_enter+0x32: movq $0,0xe394d3(%rip) db>
In D43658#999086, @emaste wrote:I thought the ports tree contains user-space applications. Are you talking about some user-space drivers in the ports tree?
There are a number of kernel modules in the ports tree as well. drm-kmod is one well known example.
In D43725#999194, @cc wrote:Given D43389 is the FIRST of a series, is this the SECOND one or is there any dependence? Please help clarify.
Given D43389 is the FIRST of a series, is this the SECOND one or is there any dependence? Please help clarify.
Remove Copyright headnote and myself from if_iwn.c, as noted in review.
With D43770 in mind, I think we can go ahead and commit this change.
Feb 7 2024
add Copyright in if_iwn.c
Add missing update in if_iwn.c and keep IEEE80211_HTINFO_OPMODE_S from the kernel build lesson.
Feb 6 2024
I have created D43770 to clarify/illustrate my idea.
In D43658#997148, @bz wrote:If I understand correctly, these defines are from the Table 8-130—HT Operation element fields and subfields (continued) on page 615. I quoted them below. I think it's better to use cleaner names for these defines in sys/net80211/ieee80211.h and use an indent similar to the Linux version.
There's a lot to be said about the "native" net80211 version. But that's not part of this review request. I tend to not change the old stuff there if it is used (VHT is not used yet, so that's why there is cleanup going on there still). Simply MFCing it could be a pain without leaving compat defines. In this case it seems only iwn(4) would be affected so we could argue we can but I haven't checked all the other related fields and that's where the real pain comes in.
I think a separate patch "just rename these defines in sys/net80211/ieee80211.h" shall be OK, and can MFC, because their corresponding values are correct. If you agree, I can submit a patch for review.
The defines in net80211 are part of the public KPI and have been for a decade.
They are used at least in one device driver as well. I have not recently checked if there are any usable wlan(4) drivers in ports still supporting HT but that's due diligens to be done then as well.
If we are fine with breaking out-of-tree then we should probably just move the ones from LinuxKPI into net80211 and have a single definition of them.
But them we'll have inconsistent naming with the other fields for "HTINFO" etc. and that makes no sense either.
Hence my leaning of leaving the "legacy bits" as-are.