Page MenuHomeFreeBSD

cc (Cheng Cui)
User

Projects

User Details

User Since
Nov 23 2015, 12:29 AM (439 w, 4 d)

Recent Activity

Wed, Apr 24

cc requested changes to D44864: net80211: add new ciphers and RSN flags.
Wed, Apr 24, 8:11 PM · wireless
cc added a comment to D44827: net80211: add driver / crypto methods to set the hardware / software cipher suites.
In D44827#1023209, @bz 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.

Wed, Apr 24, 3:17 PM · wireless
cc added a comment to D44820: net80211: add a new field specifically for announcing specific ciphers.

Also do you have any plan to update the man page regarding the new field ic_sw_cryptocaps besides ic_cryptocaps ?

Wed, Apr 24, 2:54 PM · wireless
cc added a comment to D44820: net80211: add a new field specifically for announcing specific ciphers.

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.

Wed, Apr 24, 2:28 PM · wireless
cc accepted D44821: wpa: Remove the now not-needed local logic to hard-code cipher support.

LGTM

Wed, Apr 24, 2:23 PM · wireless
cc requested changes to D44820: net80211: add a new field specifically for announcing specific ciphers.

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. :)

Wed, Apr 24, 2:20 PM · wireless

Tue, Apr 23

cc requested changes to D43967: LinuxKPI: 802.11: close race lkpi_sta_scan_to_auth()/(*iv_update_bss)().
Tue, Apr 23, 7:17 PM
cc accepted D43966: LinuxKPI: 802.11: lock MO tx/wake_tx_queue() downcalls.
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?

Tue, Apr 23, 2:09 PM

Wed, Apr 17

cc added inline comments to D44820: net80211: add a new field specifically for announcing specific ciphers.
Wed, Apr 17, 2:35 PM · wireless

Mar 22 2024

cc added a comment to D44463: LinuxKPI: LKPI_80211_HW_CRYPTO: add basic multi-keys support.

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 22 2024, 1:30 PM

Mar 21 2024

cc updated the test plan for D44463: LinuxKPI: LKPI_80211_HW_CRYPTO: add basic multi-keys support.
Mar 21 2024, 10:14 PM
cc updated the summary of D44463: LinuxKPI: LKPI_80211_HW_CRYPTO: add basic multi-keys support.
Mar 21 2024, 10:12 PM
cc requested review of D44463: LinuxKPI: LKPI_80211_HW_CRYPTO: add basic multi-keys support.
Mar 21 2024, 10:11 PM

Mar 15 2024

cc added a comment to D43634: net80211: crypto: fix check for driver having done decryption.

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 15 2024, 6:30 PM

Mar 14 2024

cc updated the diff for D44260: LinuxKPI: LKPI_80211_HW_CRYPTO: add crypto debug flag in LinuxKPI.

code update according to comments

Mar 14 2024, 3:09 PM

Mar 7 2024

cc added inline comments to D44260: LinuxKPI: LKPI_80211_HW_CRYPTO: add crypto debug flag in LinuxKPI.
Mar 7 2024, 1:09 PM

Mar 6 2024

cc requested review of D44260: LinuxKPI: LKPI_80211_HW_CRYPTO: add crypto debug flag in LinuxKPI.
Mar 6 2024, 10:28 PM
cc added inline comments to D43648: LinuxKPI: 802.11: hardware crypto offload improvements.
Mar 6 2024, 8:35 PM
cc added inline comments to D43648: LinuxKPI: 802.11: hardware crypto offload improvements.
Mar 6 2024, 7:48 PM
cc requested changes to D43966: LinuxKPI: 802.11: lock MO tx/wake_tx_queue() downcalls.
Mar 6 2024, 2:04 PM
cc added a comment to D43966: LinuxKPI: 802.11: lock MO tx/wake_tx_queue() downcalls.

I think LKPI_80211_LHW_LOCK_ASSERT can help remind us of such LKPI_80211_LHW_LOCK requirement for lkpi_80211_mo_* functions.

Mar 6 2024, 2:04 PM
cc accepted D43965: LinuxKPI: 802.11: remove unneeded re-lookup in lkpi_80211_txq_tx_one().
Mar 6 2024, 1:45 PM

Mar 5 2024

cc accepted D44208: LinuxKPI: 802.11: return proper value for IEEE80211_CRYPTO_AES_CCM.
Mar 5 2024, 8:38 PM

Mar 4 2024

cc accepted D44165: ktls: enumify tcp_tls_mode magic numbers.
Mar 4 2024, 1:05 AM

Mar 1 2024

cc added inline comments to D44165: ktls: enumify tcp_tls_mode magic numbers.
Mar 1 2024, 1:58 PM
cc added a comment to D44165: ktls: enumify tcp_tls_mode magic numbers.

The ktls draws my attention. Hope you add reviewers.

Mar 1 2024, 1:58 PM

Feb 29 2024

cc requested changes to D43634: net80211: crypto: fix check for driver having done decryption.
Feb 29 2024, 8:01 PM
cc requested changes to D43967: LinuxKPI: 802.11: close race lkpi_sta_scan_to_auth()/(*iv_update_bss)().
Feb 29 2024, 4:31 PM
cc accepted D43944: LinuxKPI: 802.11: try to fix iwlwifi("Invalid TXQ id").

Shall correct the typo first before committing.

Feb 29 2024, 3:44 PM

Feb 26 2024

cc accepted D43751: net80211: amrr_init: change order of commands.
Feb 26 2024, 9:31 PM
cc requested changes to D43648: LinuxKPI: 802.11: hardware crypto offload improvements.

Please add PR: 277095 in the summary, as this patch also fixes that.

Feb 26 2024, 8:58 PM

Feb 23 2024

cc abandoned D43945: LinuxKPI w/ LKPI_80211_HW_CRYPTO: fix non-sleepable mutex use..
Feb 23 2024, 3:06 PM

Feb 22 2024

cc accepted D44023: tcp: cubic - restart epoch after RTO.

Good catch! Always keep an eye on the cubic_data->t_epoch refresh.

Feb 22 2024, 8:26 PM

Feb 21 2024

cc added inline comments to D43945: LinuxKPI w/ LKPI_80211_HW_CRYPTO: fix non-sleepable mutex use..
Feb 21 2024, 9:45 PM
cc accepted D43968: LinuxKPI: 802.11: implement a deferred RX path.
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 21 2024, 3:48 PM

Feb 20 2024

cc added a comment to D43968: LinuxKPI: 802.11: implement a deferred RX path.

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 20 2024, 5:09 PM

Feb 19 2024

cc added inline comments to D43945: LinuxKPI w/ LKPI_80211_HW_CRYPTO: fix non-sleepable mutex use..
Feb 19 2024, 6:12 PM

Feb 16 2024

cc requested review of D43945: LinuxKPI w/ LKPI_80211_HW_CRYPTO: fix non-sleepable mutex use..
Feb 16 2024, 9:44 PM

Feb 13 2024

cc accepted D43753: LinuxKPI: 802.11: update the ni/lsta reference cycle.

My initial test on the three patches of D43389, D43725, D43753 looks to be good. No more panics. And I need to figure out some issues in my testbed, so I give the approval first as I don't want my test to delay the schedule.

Feb 13 2024, 2:54 PM
cc accepted D43725: LinuxKPI: 802.11: band-aid for invalid state changes after (*iv_update_bss).

My initial test on the three patches of D43389, D43725, D43753 looks to be good. No more panics. And I need to figure out some issues in my testbed, so I give the approval first as I don't want my test to delay the schedule.

Feb 13 2024, 2:54 PM
cc accepted D43389: net80211: deal with lost state transitions.

My initial test on the three patches of D43389, D43725, D43753 looks to be good. No more panics. And I need to figure out some issues in my testbed, so I give the approval first as I don't want my test to delay the schedule.

Feb 13 2024, 2:54 PM

Feb 12 2024

cc added a comment to D43770: Rename HT Operation Protection micros to represent the state of the art..
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 12 2024, 3:08 PM

Feb 9 2024

cc added a comment to D43725: LinuxKPI: 802.11: band-aid for invalid state changes after (*iv_update_bss).
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>
Feb 9 2024, 9:16 PM
cc added a comment to D43658: LinuxKPI: 802.11: correct HT protection fields.

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.

Feb 9 2024, 7:43 PM
cc added a comment to D43725: LinuxKPI: 802.11: band-aid for invalid state changes after (*iv_update_bss).
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.

Feb 9 2024, 7:11 PM
cc added inline comments to D43725: LinuxKPI: 802.11: band-aid for invalid state changes after (*iv_update_bss).
Feb 9 2024, 6:55 PM
cc added a comment to D43725: LinuxKPI: 802.11: band-aid for invalid state changes after (*iv_update_bss).

Given D43389 is the FIRST of a series, is this the SECOND one or is there any dependence? Please help clarify.

Feb 9 2024, 6:51 PM
cc added inline comments to D43770: Rename HT Operation Protection micros to represent the state of the art..
Feb 9 2024, 3:14 PM
cc updated the diff for D43770: Rename HT Operation Protection micros to represent the state of the art..

Remove Copyright headnote and myself from if_iwn.c, as noted in review.

Feb 9 2024, 3:14 PM
cc accepted D43658: LinuxKPI: 802.11: correct HT protection fields.

With D43770 in mind, I think we can go ahead and commit this change.

Feb 9 2024, 1:05 PM

Feb 7 2024

cc updated the test plan for D43770: Rename HT Operation Protection micros to represent the state of the art..
Feb 7 2024, 9:00 PM
cc updated the diff for D43770: Rename HT Operation Protection micros to represent the state of the art..

add Copyright in if_iwn.c

Feb 7 2024, 8:47 PM
cc updated the diff for D43770: Rename HT Operation Protection micros to represent the state of the art..

Add missing update in if_iwn.c and keep IEEE80211_HTINFO_OPMODE_S from the kernel build lesson.

Feb 7 2024, 8:40 PM

Feb 6 2024

cc added a comment to D43658: LinuxKPI: 802.11: correct HT protection fields.

I have created D43770 to clarify/illustrate my idea.

Feb 6 2024, 10:47 PM
cc requested review of D43770: Rename HT Operation Protection micros to represent the state of the art..
Feb 6 2024, 10:45 PM
cc added a comment to D43658: LinuxKPI: 802.11: correct HT protection fields.
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.

Feb 6 2024, 8:37 PM
cc accepted D43655: net80211: fix checks for (*iv_preamble_update)/(*iv_ht_protmode_update).
Feb 6 2024, 4:05 PM

Feb 5 2024

cc added inline comments to D43647: iwlwifi: adjust to make d3.c compile.
Feb 5 2024, 5:16 PM

Feb 2 2024

cc added a comment to D43658: LinuxKPI: 802.11: correct HT protection fields.
In D43658#996657, @bz wrote:
In D43658#996222, @cc wrote:

This patch also fixes the wrong/old values used in sys/compat/linuxkpi/common/include/linux/ieee80211.h. thanks

No, this patch ONLY fixes the wrong values there. The fact that they are defined to a native version is cosmetics.

I meant this patch fixes the wrong/old values here, in the LinuxKPI. For example, IEEE80211_HT_OP_MODE_PROTECTION_NONHT_MIXED should have a value 3, not the old 0x02.

Feb 2 2024, 1:26 PM

Feb 1 2024

cc accepted D43635: LinuxKPI: 802.11: fix field order in ieee80211_key_conf.

Good catch!

Feb 1 2024, 3:13 PM

Jan 31 2024

cc accepted D43646: LinuxKPI: 802.11: extend ieee80211_key_seq and WLAN_KEY_LEN_* defines.
Jan 31 2024, 3:18 PM
cc added a comment to D43658: LinuxKPI: 802.11: correct HT protection fields.

This patch also fixes the wrong/old values used in sys/compat/linuxkpi/common/include/linux/ieee80211.h. thanks

Jan 31 2024, 2:36 PM

Jan 29 2024

cc accepted D43647: iwlwifi: adjust to make d3.c compile.
Jan 29 2024, 4:14 PM
cc requested changes to D43647: iwlwifi: adjust to make d3.c compile.

I see two "MFC after" in the summary section, and the summary section seems to contain two parts that it looks you are going to split this patch into two when you MFC it. Am I understanding correctly? Are you going to manually MFC the two parts?

Jan 29 2024, 3:41 PM

Jan 24 2024

cc accepted D43536: tcp: pass maxseg around instead of locally calculating anew.
Jan 24 2024, 2:51 PM
cc added inline comments to D43536: tcp: pass maxseg around instead of locally calculating anew.
Jan 24 2024, 2:24 PM

Jan 23 2024

cc added a comment to D43512: net80211: make sure calls to (*iv_update_bss)() are locked.

By the way, I forgot to ask, is it also helpful to add IEEE80211_LOCK_ASSERT in lkpi_iv_update_bss()?

Jan 23 2024, 8:43 PM
cc accepted D43512: net80211: make sure calls to (*iv_update_bss)() are locked.
Jan 23 2024, 5:22 PM

Jan 22 2024

cc accepted D43539: tcp: style changes.
Jan 22 2024, 2:53 PM
cc added inline comments to D43539: tcp: style changes.
Jan 22 2024, 2:25 PM

Jan 19 2024

cc committed rG404b91dac415: libexec/rc/rc.initdiskless: make tar's path flexible (authored by cc).
libexec/rc/rc.initdiskless: make tar's path flexible
Jan 19 2024, 3:46 PM

Jan 17 2024

cc accepted D43469: net80211: fix a NULL deref in ieee80211_sta_join1().
Jan 17 2024, 3:22 PM

Jan 10 2024

cc added a comment to D43389: net80211: deal with lost state transitions.

I think this patch as a fix is targeting 271979#c28. If I am right, I will use the reproduce method to test this patch. thanks

Jan 10 2024, 2:45 PM

Jan 8 2024

cc accepted D43170: tcp: clean PRR state after ECN congestion recovery..
Jan 8 2024, 2:24 PM
cc accepted D43343: tcp: prevent spurious empty segments and fix uncommon panic.

Good catch!

Jan 8 2024, 1:59 PM

Jan 5 2024

cc requested changes to D42906: tcp: do not purge SACK scoreboard on first RTO.
Jan 5 2024, 3:42 PM
cc added inline comments to D42906: tcp: do not purge SACK scoreboard on first RTO.
Jan 5 2024, 3:42 PM
cc added inline comments to D43170: tcp: clean PRR state after ECN congestion recovery..
Jan 5 2024, 3:18 PM

Jan 3 2024

cc added inline comments to D43213: tcp: retry CWR transmission if TSO doesn't support ECN.
Jan 3 2024, 2:09 PM

Jan 2 2024

cc added a comment to D43241: rc.initdiskless: Remove bogus plus sign.

Thanks for reminding me this so that I can make the right change of 93b7818226cf in MFC.

Jan 2 2024, 2:30 PM

Dec 21 2023

cc accepted D42560: net80211: improve logging about state transitions lost.

Thanks for the reminder.

Dec 21 2023, 1:18 PM

Dec 19 2023

cc accepted D42901: net80211: adjust more VHT structures/fields.

Looks good to me now. Thanks for the update.

Dec 19 2023, 8:07 PM

Dec 18 2023

cc closed D42765: libexec/rc/rc.initdiskless: make tar's path flexible.

This is committed in https://cgit.freebsd.org/src/commit/?id=93b7818226cf5270646725805b4a8c17a1ad3761

Dec 18 2023, 9:18 PM

Dec 15 2023

cc requested changes to D42901: net80211: adjust more VHT structures/fields.
Dec 15 2023, 8:49 PM
cc committed rG93b7818226cf: libexec/rc/rc.initdiskless: make tar's path flexible (authored by cc).
libexec/rc/rc.initdiskless: make tar's path flexible
Dec 15 2023, 1:48 PM

Dec 14 2023

cc added a comment to D42901: net80211: adjust more VHT structures/fields.

Sorry, not sure how this is missing in my radar. Please allow one day or two to finish my review.

Dec 14 2023, 5:13 PM

Dec 13 2023

cc added a comment to D42949: siftr: refactor batch log processing.

Tested in Emulab.net. Looks good to me.

Dec 13 2023, 7:10 PM
cc retitled D42765: libexec/rc/rc.initdiskless: make tar's path flexible from libexec/rc/rc.initdiskless: use tar from a working location to libexec/rc/rc.initdiskless: make tar's path flexible.
Dec 13 2023, 3:43 PM
cc updated the diff for D42765: libexec/rc/rc.initdiskless: make tar's path flexible.

code update with successful test

Dec 13 2023, 3:40 PM

Dec 9 2023

cc added a comment to D42765: libexec/rc/rc.initdiskless: make tar's path flexible.
In D42765#979657, @imp wrote:

/rescue/tar is a requirement. What's wrong with that? the whole bug is because someone tried to grab the wrong image to start with and there's going to be way more than just this one detail wrong with the running system.

Dec 9 2023, 3:18 PM

Dec 7 2023

cc added inline comments to D42949: siftr: refactor batch log processing.
Dec 7 2023, 2:28 PM
cc added a comment to D42949: siftr: refactor batch log processing.

I think I have tested this method of separating packet processing and free before. But I want to make sure it is performing as expected. I will give my comment after testing.

Dec 7 2023, 2:24 PM

Dec 5 2023

cc removed a reviewer for D42765: libexec/rc/rc.initdiskless: make tar's path flexible: tuexen.
Dec 5 2023, 9:09 PM
cc updated the diff for D42765: libexec/rc/rc.initdiskless: make tar's path flexible.

remove debug echo

Dec 5 2023, 9:08 PM
cc updated the diff for D42765: libexec/rc/rc.initdiskless: make tar's path flexible.

code update based on review comment

Dec 5 2023, 9:05 PM

Dec 4 2023

cc closed D42766: Handbook - Advanced networking - Improve Diskless Operation with PXE.
Dec 4 2023, 10:27 PM
cc committed R9:ba54c352daba: Handbook - Advanced networking - Improve Diskless Operation with PXE (authored by cc).
Handbook - Advanced networking - Improve Diskless Operation with PXE
Dec 4 2023, 10:27 PM
cc updated the diff for D42766: Handbook - Advanced networking - Improve Diskless Operation with PXE.

Add Reviewed by: carlavilla

Dec 4 2023, 10:24 PM

Nov 24 2023

cc edited reviewers for D42766: Handbook - Advanced networking - Improve Diskless Operation with PXE, added: docs; removed: Doc Committers.
Nov 24 2023, 10:14 PM
cc added a reviewer for D42766: Handbook - Advanced networking - Improve Diskless Operation with PXE: Doc Committers.
Nov 24 2023, 10:13 PM