Page MenuHomeFreeBSD
Feed Advanced Search

Nov 28 2023

jacob.e.keller_intel.com added inline comments to D42698: bitstring: Support large bit strings..
Nov 28 2023, 11:16 PM

Aug 10 2020

jacob.e.keller_intel.com accepted D25954: Remove redeclaration found by gcc build.

This looks correct to me. One of the folks actively working on the Intel networking drivers should take a look to make sure they're aware of it.

Aug 10 2020, 4:38 PM

Jan 3 2020

jacob.e.keller_intel.com updated the diff for D21959: introduce new 'ice' driver for Intel E800 Ethernet controllers.

Update ice driver code

Jan 3 2020, 7:38 PM
jacob.e.keller_intel.com updated the diff for D21959: introduce new 'ice' driver for Intel E800 Ethernet controllers.

Update ice driver review to address feedback

Jan 3 2020, 7:21 PM
jacob.e.keller_intel.com abandoned D22214: factor out remove logic from if_delgroup and if_delgroups.

It looks like similar work was done via r355942, with slightly different (better) function names, and various style changes. This can be closed as essentially resolved/committed now.

Jan 3 2020, 6:32 PM

Dec 20 2019

jacob.e.keller_intel.com updated the diff for D22870: ixl: prevent non-privileged access to NVM update interface.

Fix typo of local variable name

Dec 20 2019, 4:59 PM

Dec 19 2019

jacob.e.keller_intel.com updated the diff for D22870: ixl: prevent non-privileged access to NVM update interface.

Add missing break statement

Dec 19 2019, 9:40 PM
jacob.e.keller_intel.com updated the diff for D22870: ixl: prevent non-privileged access to NVM update interface.

Refactor check as suggested by review comments

Dec 19 2019, 9:38 PM
jacob.e.keller_intel.com added a comment to D22870: ixl: prevent non-privileged access to NVM update interface.

I mean ixl_if_priv_ioctl(). I'm not sure what you mean by "that" ioctl, since ixl_if_priv_ioctl() handles multiple ioctls by virtue of not looking at the command argument. In particular, iflib passes driver-specific ioctls to ixl_if_priv_ioctl() and so would not seem to be the right place to check for privileges for exactly the reason that you state.

Dec 19 2019, 7:26 PM

Dec 18 2019

jacob.e.keller_intel.com added reviewers for D22870: ixl: prevent non-privileged access to NVM update interface: erj, jeb, markj, krzysztof.galazka_intel.com, Intel Networking.

I put the check directly in ixl_handle_nvmupd_cmd, similar to the check that we have in the ice driver code.

Dec 18 2019, 11:44 PM
jacob.e.keller_intel.com created D22870: ixl: prevent non-privileged access to NVM update interface.
Dec 18 2019, 11:41 PM

Dec 3 2019

jacob.e.keller_intel.com accepted D22523: Avoid finding every bit transition in bit_ffs_area_at.
Dec 3 2019, 6:20 PM
jacob.e.keller_intel.com added a comment to D22523: Avoid finding every bit transition in bit_ffs_area_at.

With the attached simple test program, compiled with -O3, the results without and with DM defined are:

Dec 3 2019, 6:20 PM

Dec 2 2019

jacob.e.keller_intel.com added a comment to D22523: Avoid finding every bit transition in bit_ffs_area_at.
In D22523#495149, @erj wrote:

If it helps @dougm, the maximum size we'd typically use for the bitstrings would be 2048 bits, with us maybe using 16384-bit ones in the future.

Dec 2 2019, 9:56 PM
jacob.e.keller_intel.com added a comment to D22523: Avoid finding every bit transition in bit_ffs_area_at.

Hmm. I think I understand the change.. but it seems less intuitive.

Dec 2 2019, 5:24 PM
jacob.e.keller_intel.com added a comment to D22519: Correct test error messages in bitstring_test.

Hah, thanks for fixing!

Dec 2 2019, 4:57 PM

Nov 20 2019

jacob.e.keller_intel.com updated the diff for D22400: bitstring: add functions to find contiguous set/unset bit sequences.

Update test cases per review feedback

Nov 20 2019, 10:53 PM
jacob.e.keller_intel.com added inline comments to D22400: bitstring: add functions to find contiguous set/unset bit sequences.
Nov 20 2019, 9:51 PM
jacob.e.keller_intel.com updated the diff for D22398: bitstring: exit early if _start is past size of the bitstring.

fix test cases for bit_ffc_at

Nov 20 2019, 12:46 AM
jacob.e.keller_intel.com updated the diff for D22398: bitstring: exit early if _start is past size of the bitstring.

dereference _result properly before trying to assign it

Nov 20 2019, 12:00 AM

Nov 19 2019

jacob.e.keller_intel.com updated the diff for D22398: bitstring: exit early if _start is past size of the bitstring.

add test cases to help cover the expected behavior

Nov 19 2019, 11:18 PM
jacob.e.keller_intel.com added a comment to D22400: bitstring: add functions to find contiguous set/unset bit sequences.

Updated the review to include additional test cases and fixed the manual page.

Nov 19 2019, 11:11 PM
jacob.e.keller_intel.com updated the diff for D22400: bitstring: add functions to find contiguous set/unset bit sequences.

Update review based on feedback from Alan Somers

Nov 19 2019, 11:10 PM

Nov 18 2019

jacob.e.keller_intel.com added a comment to D22400: bitstring: add functions to find contiguous set/unset bit sequences.

Ok, will add tests and fix the comments.

Nov 18 2019, 10:20 PM
jacob.e.keller_intel.com added a comment to D22398: bitstring: exit early if _start is past size of the bitstring.

Would you mind adding tests to tests/sys/sys/bitstring_test.c?

Nov 18 2019, 10:19 PM
jacob.e.keller_intel.com added a reviewer for D22400: bitstring: add functions to find contiguous set/unset bit sequences: asomers.
Nov 18 2019, 6:58 PM
jacob.e.keller_intel.com added a reviewer for D22398: bitstring: exit early if _start is past size of the bitstring: asomers.
Nov 18 2019, 6:58 PM

Nov 16 2019

jacob.e.keller_intel.com added a comment to D22400: bitstring: add functions to find contiguous set/unset bit sequences.

We use this implementation in the ice driver (current review at https://reviews.freebsd.org/D21959, will be updated to reflect moving the function here soon).

Nov 16 2019, 12:44 AM
jacob.e.keller_intel.com added a reviewer for D22400: bitstring: add functions to find contiguous set/unset bit sequences: erj.
Nov 16 2019, 12:41 AM
jacob.e.keller_intel.com created D22400: bitstring: add functions to find contiguous set/unset bit sequences.
Nov 16 2019, 12:41 AM

Nov 15 2019

jacob.e.keller_intel.com updated the summary of D22398: bitstring: exit early if _start is past size of the bitstring.
Nov 15 2019, 11:53 PM
jacob.e.keller_intel.com added a reviewer for D22398: bitstring: exit early if _start is past size of the bitstring: erj.
Nov 15 2019, 11:52 PM
jacob.e.keller_intel.com created D22398: bitstring: exit early if _start is past size of the bitstring.
Nov 15 2019, 11:50 PM

Nov 5 2019

jacob.e.keller_intel.com added a comment to D22245: route: remove extra reference on ifa in rtinit1..

You should be able to verify this leak by doing something like:

Nov 5 2019, 6:49 PM
jacob.e.keller_intel.com added a comment to D22245: route: remove extra reference on ifa in rtinit1..

I'm really not sure this is the correct fix. Possibly we should just add an ifa_free after the rtrequest1_fib()?

Nov 5 2019, 5:55 PM
jacob.e.keller_intel.com added reviewers for D22245: route: remove extra reference on ifa in rtinit1.: jhb, gallatin, erj.
Nov 5 2019, 5:54 PM
jacob.e.keller_intel.com created D22245: route: remove extra reference on ifa in rtinit1..
Nov 5 2019, 5:53 PM
jacob.e.keller_intel.com added a comment to D22244: route: remove an outdated comment from rtrequest1_fib.

I found this while debugging an extra reference on the ifa refcount. I think I found a "solution" that isn't quite right, but this comment is misleading.

Nov 5 2019, 5:42 PM
jacob.e.keller_intel.com added reviewers for D22244: route: remove an outdated comment from rtrequest1_fib: jhb, mmacy, erj.
Nov 5 2019, 5:41 PM
jacob.e.keller_intel.com created D22244: route: remove an outdated comment from rtrequest1_fib.
Nov 5 2019, 5:40 PM

Nov 4 2019

jacob.e.keller_intel.com updated the diff for D21240: net: add ETHER_IS_ZERO macro similar to ETHER_IS_BROADCAST.

Remove ETHER_IS_ZERO definitions from USB networking drivers.

Nov 4 2019, 11:29 PM
jacob.e.keller_intel.com added a comment to D22203: iflib: properly release memory allocated for DMA.
In D22203#486049, @erj wrote:

@jacob.e.keller_intel.com, is this ready to be committed?

Nov 4 2019, 10:49 PM

Nov 1 2019

jacob.e.keller_intel.com abandoned D22215: fix leak of the ifg_list structure in if_delgroups..

We're in agreement that the refactor is a better solution, so I'm going to abandon this one.

Nov 1 2019, 6:17 PM
jacob.e.keller_intel.com updated the diff for D22214: factor out remove logic from if_delgroup and if_delgroups.

add an IFNET_WLOCK_ASSERT in if_freegroup

Nov 1 2019, 6:15 PM
jacob.e.keller_intel.com added a comment to D22215: fix leak of the ifg_list structure in if_delgroups..

I think the refactored version to avoid code duplication is probably a better fix. If you go with this one, perhaps remove the whitespace changes and only commit the added free().

Nov 1 2019, 6:11 PM
jacob.e.keller_intel.com added a comment to D22215: fix leak of the ifg_list structure in if_delgroups..

Also, yay.. yet another memory leak fixed while playing whack-a-mole trying to fix leaks during driver load/unload testing. I think we still have at least one more on M_IFADDR somewhere.

Nov 1 2019, 5:29 PM
jacob.e.keller_intel.com added reviewers for D22214: factor out remove logic from if_delgroup and if_delgroups: Intel Networking, jhb, gallatin, erj.
Nov 1 2019, 5:28 PM
jacob.e.keller_intel.com added reviewers for D22215: fix leak of the ifg_list structure in if_delgroups.: Intel Networking, jhb, gallatin, erj.
Nov 1 2019, 5:28 PM
jacob.e.keller_intel.com added a comment to D22214: factor out remove logic from if_delgroup and if_delgroups.

This is likely the better approach to solving the leak described in https://reviews.freebsd.org/D22215

Nov 1 2019, 5:27 PM
jacob.e.keller_intel.com added a comment to D22215: fix leak of the ifg_list structure in if_delgroups..

This is the simpler straight forward fix to the same issue described in https://reviews.freebsd.org/D22214

Nov 1 2019, 5:26 PM
jacob.e.keller_intel.com created D22215: fix leak of the ifg_list structure in if_delgroups..
Nov 1 2019, 5:25 PM
jacob.e.keller_intel.com created D22214: factor out remove logic from if_delgroup and if_delgroups.
Nov 1 2019, 5:23 PM

Oct 31 2019

jacob.e.keller_intel.com added a comment to D22203: iflib: properly release memory allocated for DMA.

Thanks for fixing this. The NULL canaries were left over from when iflib had a separate code path which avoided busdma. When I removed this codepath, I neglected to remove those canaries.

Oct 31 2019, 10:07 PM
jacob.e.keller_intel.com added a comment to D22203: iflib: properly release memory allocated for DMA.

The fact that the map pointer can be NULL is weird, but we found this to be true in several places, and without the removal of the NULL checks we end up leaking ~200 bytes of M_DEVBUF, and associated other DMA memory allocated outside of malloc.

Oct 31 2019, 12:29 AM
jacob.e.keller_intel.com added reviewers for D22203: iflib: properly release memory allocated for DMA: erj, Intel Networking, gallatin.
Oct 31 2019, 12:28 AM
jacob.e.keller_intel.com created D22203: iflib: properly release memory allocated for DMA.
Oct 31 2019, 12:27 AM

Oct 25 2019

jacob.e.keller_intel.com added a comment to D22157: iflib: cleanup memory leaks on driver detach.

We should be able to MFC this to 12-STABLE and 11-STABLE. Since the issue has existed since the beginning of iflib in-tree, I don't really think it's worth trying to rush it into 12.1... although it is a relatively small fix.

Oct 25 2019, 11:35 PM
jacob.e.keller_intel.com added reviewers for D22157: iflib: cleanup memory leaks on driver detach: Intel Networking, erj.
Oct 25 2019, 11:34 PM
jacob.e.keller_intel.com created D22157: iflib: cleanup memory leaks on driver detach.
Oct 25 2019, 11:22 PM
jacob.e.keller_intel.com added inline comments to D22086: iflib: Stop interface before (un)registering VLAN.
Oct 25 2019, 5:28 PM

Oct 23 2019

jacob.e.keller_intel.com added inline comments to D22086: iflib: Stop interface before (un)registering VLAN.
Oct 23 2019, 6:39 PM
jacob.e.keller_intel.com added reviewers for D21239: net: prefer ETHER_ADDR_LEN over ETH_ADDR_LEN: Intel Networking, erj.
Oct 23 2019, 6:36 PM
jacob.e.keller_intel.com added reviewers for D21240: net: add ETHER_IS_ZERO macro similar to ETHER_IS_BROADCAST: Intel Networking, erj.
Oct 23 2019, 6:35 PM

Oct 18 2019

jacob.e.keller_intel.com added a comment to D22071: iflib: call ether_ifdetach and netmap_detach before stop.

Updated the review to add vlan event handler unregister calls before iflib_stop as well. I kept the call in iflib_deregister as well so that they get cleaned up properly during error flows. Now it uses the "unregister -> assign NULL" pattern so that only one of the flows will actually perform an unregister check.

Oct 18 2019, 5:42 PM
jacob.e.keller_intel.com updated the diff for D22071: iflib: call ether_ifdetach and netmap_detach before stop.

also move VLAN event handlers

Oct 18 2019, 5:36 PM
jacob.e.keller_intel.com added inline comments to D22071: iflib: call ether_ifdetach and netmap_detach before stop.
Oct 18 2019, 5:16 PM
jacob.e.keller_intel.com added a comment to D22071: iflib: call ether_ifdetach and netmap_detach before stop.

I did manage to eventually trigger another stale ifp pointer, though it was not reliable:

Kernel page fault with the following non-sleepable locks held:
exclusive sleep mutex ip6qlock (ip6qlock) r = 0 (0xfffffe00007aa848) locked @ /usr/src/sys/netinet6/frag6.c:849
shared rw vnet_rwlock (vnet_rwlock) r = 0 (0xffffffff820be700) locked @ /usr/src/sys/netinet6/frag6.c:845
stack backtrace:
#0 0xffffffff80bb6f83 at witness_debugger+0x73
#1 0xffffffff80bb7fa2 at witness_warn+0x442
#2 0xffffffff8108a0f3 at trap_pfault+0x53
#3 0xffffffff810896e4 at trap+0x2b4
#4 0xffffffff8106201c at calltrap+0x8
#5 0xffffffff80d8c07a at icmp6_error+0x4aa
#6 0xffffffff80d8b30e at frag6_freef+0x10e
#7 0xffffffff80d8b551 at frag6_slowtimo+0x111
#8 0xffffffff80bdcda4 at pfslowtimo+0x54
#9 0xffffffff80b65bdf at softclock_call_cc+0x13f
#10 0xffffffff80b65f9c at softclock+0x7c
#11 0xffffffff80b0f857 at ithread_loop+0x187
#12 0xffffffff80b0c4a4 at fork_exit+0x84
#13 0xffffffff8106305e at fork_trampoline+0xe


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0xfffffe0000825dd8
fault code              = supervisor read data, page not present
instruction pointer     = 0x20:0xffffffff80d8c5b2
stack pointer           = 0x28:0xfffffe1fc28c6ff0
frame pointer           = 0x28:0xfffffe1fc28c7090
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 12 (swi4: clock (0))
trap number             = 12
panic: page fault
cpuid = 0
time = 1571354026
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe1fc28c6cb0
vpanic() at vpanic+0x19d/frame 0xfffffe1fc28c6d00
panic() at panic+0x43/frame 0xfffffe1fc28c6d60
trap_fatal() at trap_fatal+0x39c/frame 0xfffffe1fc28c6dc0
trap_pfault() at trap_pfault+0x62/frame 0xfffffe1fc28c6e10
trap() at trap+0x2b4/frame 0xfffffe1fc28c6f20
calltrap() at calltrap+0x8/frame 0xfffffe1fc28c6f20
--- trap 0xc, rip = 0xffffffff80d8c5b2, rsp = 0xfffffe1fc28c6ff0, rbp = 0xfffffe1fc28c7090 ---
icmp6_reflect() at icmp6_reflect+0x242/frame 0xfffffe1fc28c7090
icmp6_error() at icmp6_error+0x4aa/frame 0xfffffe1fc28c70e0
frag6_freef() at frag6_freef+0x10e/frame 0xfffffe1fc28c7130
frag6_slowtimo() at frag6_slowtimo+0x111/frame 0xfffffe1fc28c7180
pfslowtimo() at pfslowtimo+0x54/frame 0xfffffe1fc28c71b0
softclock_call_cc() at softclock_call_cc+0x13f/frame 0xfffffe1fc28c7260
softclock() at softclock+0x7c/frame 0xfffffe1fc28c7290
ithread_loop() at ithread_loop+0x187/frame 0xfffffe1fc28c72f0
fork_exit() at fork_exit+0x84/frame 0xfffffe1fc28c7330
fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe1fc28c7330
--- trap 0, rip = 0, rsp = 0, rbp = 0 ---
KDB: enter: panic
Oct 18 2019, 3:41 PM

Oct 17 2019

jacob.e.keller_intel.com added inline comments to D22071: iflib: call ether_ifdetach and netmap_detach before stop.
Oct 17 2019, 11:55 PM
jacob.e.keller_intel.com added a comment to D22071: iflib: call ether_ifdetach and netmap_detach before stop.

Assuming this fix makes sense, this should be MFC'd to 11-STABLE and 12-STABLE too, IMHO.

Oct 17 2019, 11:53 PM
jacob.e.keller_intel.com updated the summary of D22071: iflib: call ether_ifdetach and netmap_detach before stop.
Oct 17 2019, 11:50 PM
jacob.e.keller_intel.com added a comment to D22071: iflib: call ether_ifdetach and netmap_detach before stop.

I did manage to eventually trigger another stale ifp pointer, though it was not reliable:

Oct 17 2019, 11:49 PM
jacob.e.keller_intel.com created D22071: iflib: call ether_ifdetach and netmap_detach before stop.
Oct 17 2019, 11:47 PM
jacob.e.keller_intel.com added inline comments to D21705: if_ixv: disable RSS configuration on 82599 and X540 VFs.
Oct 17 2019, 7:33 PM

Oct 10 2019

jacob.e.keller_intel.com added a comment to D21959: introduce new 'ice' driver for Intel E800 Ethernet controllers.

Don't forget a manpage. :-)

Oct 10 2019, 6:15 PM
jacob.e.keller_intel.com added a comment to D21959: introduce new 'ice' driver for Intel E800 Ethernet controllers.

I just looked for a short time.. more comments later..

Oct 10 2019, 12:09 AM

Oct 9 2019

jacob.e.keller_intel.com updated the diff for D21869: ix: report isc_pause_frames during stat update.

Use the correct register value for the received pause frames

Oct 9 2019, 8:35 PM
jacob.e.keller_intel.com added inline comments to D21869: ix: report isc_pause_frames during stat update.
Oct 9 2019, 8:22 PM
jacob.e.keller_intel.com created D21959: introduce new 'ice' driver for Intel E800 Ethernet controllers.
Oct 9 2019, 7:06 PM

Oct 1 2019

jacob.e.keller_intel.com created D21870: ixl: report whether device received pause frames.
Oct 1 2019, 11:44 PM
jacob.e.keller_intel.com created D21869: ix: report isc_pause_frames during stat update.
Oct 1 2019, 11:44 PM
jacob.e.keller_intel.com created D21868: e1000: correctly set isc_pause_frames only when XOFF increases.
Oct 1 2019, 11:44 PM

Sep 9 2019

jacob.e.keller_intel.com added a comment to D21547: ix, ixv: Read msix_bar from device configuration.

I agree with Eric, we should depend on the device to be configured properly, and push to get the images for the device updated if they're wrong.

Sep 9 2019, 6:01 PM

Sep 5 2019

jacob.e.keller_intel.com added a comment to D21540: initialize the STATE_LOCK in iflib_register.

This is specifically a fix for 11-STABLE. It's already fixed in CURRENT and STABLE-12. It looks like it was an accidental miss in MFC for STABLE-11 a few months ago.

Sep 5 2019, 10:33 PM
jacob.e.keller_intel.com added a reviewer for D21540: initialize the STATE_LOCK in iflib_register: erj.
Sep 5 2019, 10:33 PM
jacob.e.keller_intel.com created D21540: initialize the STATE_LOCK in iflib_register.
Sep 5 2019, 10:32 PM

Aug 13 2019

jacob.e.keller_intel.com added a comment to D21240: net: add ETHER_IS_ZERO macro similar to ETHER_IS_BROADCAST.
In D21240#462131, @aleksandr.fedorov_itglobal.com wrote:

It’s seems I found another incorrect solution:

#include <stdio.h>

int main()
{

unsigned char a = (1 << 0) ||(1<<1)||(1 <<2)||(1<<3)||(1<<4)||(1<<5);
printf("momentum more : %d\n", a);

return 0;

}

Aug 13 2019, 11:15 PM
jacob.e.keller_intel.com added a comment to D21240: net: add ETHER_IS_ZERO macro similar to ETHER_IS_BROADCAST.

Use bitwise OR instead of bitwise AND to correct implementation

Aug 13 2019, 9:21 PM
jacob.e.keller_intel.com added inline comments to D21240: net: add ETHER_IS_ZERO macro similar to ETHER_IS_BROADCAST.
Aug 13 2019, 9:19 PM

Aug 12 2019

jacob.e.keller_intel.com created D21240: net: add ETHER_IS_ZERO macro similar to ETHER_IS_BROADCAST.
Aug 12 2019, 10:53 PM
jacob.e.keller_intel.com created D21239: net: prefer ETHER_ADDR_LEN over ETH_ADDR_LEN.
Aug 12 2019, 10:53 PM

Jul 31 2019

jacob.e.keller_intel.com added a comment to D21005: iflib: add iflib_deregister to help cleanup on exit.

Move the kobject refcount removal to a separate patch

Jul 31 2019, 7:49 PM
jacob.e.keller_intel.com created D21125: iflib: remove kobject class reference increment.
Jul 31 2019, 7:49 PM

Jul 23 2019

jacob.e.keller_intel.com removed 1 blocking reviewer(s) for D21003: iflib: fix dangling device softc pointer: Intel Networking.
Jul 23 2019, 10:06 PM
jacob.e.keller_intel.com added a comment to D21005: iflib: add iflib_deregister to help cleanup on exit.
In D21005#456595, @erj wrote:

This is built on top of https://reviews.freebsd.org/D21004

It could probably be backported, but isn't as necessary as the previous patch which is why I kept them separate.

Do you mean https://reviews.freebsd.org/D21003?

Jul 23 2019, 8:18 PM

Jul 19 2019

jacob.e.keller_intel.com added a reviewer for D21005: iflib: add iflib_deregister to help cleanup on exit: erj.
Jul 19 2019, 11:53 PM
jacob.e.keller_intel.com added a comment to D21005: iflib: add iflib_deregister to help cleanup on exit.

This is built on top of https://reviews.freebsd.org/D21003

Jul 19 2019, 11:53 PM
jacob.e.keller_intel.com created D21005: iflib: add iflib_deregister to help cleanup on exit.
Jul 19 2019, 11:52 PM
jacob.e.keller_intel.com added a reviewer for D21003: iflib: fix dangling device softc pointer: erj.
Jul 19 2019, 10:46 PM
jacob.e.keller_intel.com updated the test plan for D21003: iflib: fix dangling device softc pointer.
Jul 19 2019, 10:45 PM
jacob.e.keller_intel.com created D21003: iflib: fix dangling device softc pointer.
Jul 19 2019, 10:44 PM