Page MenuHomeFreeBSD

iflibGroup
ActivePublic

Details

Description

The iflib network driver infrastructure.

Recent Activity

Sat, Aug 15

nick_spun.io abandoned D58376: iflib: clean up correctly when device attach fails.

Superseded by D58721, which covers both fixes here on a rewritten common unwind path and adds the SR-IOV schema and core-offset refcount cases. Abandoning in favor of that.

Sat, Aug 15, 1:09 AM · iflib, network

Sat, Aug 8

kbowling added a comment to D58376: iflib: clean up correctly when device attach fails.

I was independently dealing with similar issues while testing SR-IOV. Can you have a look at https://reviews.freebsd.org/D58721 and the linked fail(9) commit.

Sat, Aug 8, 6:31 AM · iflib, network

Wed, Aug 5

sumit.saxena_broadcom.com added a watcher for iflib: sumit.saxena_broadcom.com.
Wed, Aug 5, 8:23 AM
Kevin Bowling <kbowling@FreeBSD.org> closed D58629: igc: defer sysctl-driven reinit to the admin task.
Wed, Aug 5, 4:44 AM · iflib, Intel Networking, network
Kevin Bowling <kbowling@FreeBSD.org> closed D58628: e1000: defer sysctl-driven reinit to the admin task.
Wed, Aug 5, 4:44 AM · iflib, Intel Networking, network

Tue, Aug 4

kbowling added a comment to D58629: igc: defer sysctl-driven reinit to the admin task.

igc already does not panic per your own statement, so I'm not sure what you are arguing. My request is to unify lifecycle management as one commit. But now looking and iflib.c I think the igc_if_init should simply be dropped from resume and media_change so please do that instead.

Tue, Aug 4, 9:40 PM · iflib, Intel Networking, network
guest-seuros added a comment to D58629: igc: defer sysctl-driven reinit to the admin task.

@kbowling resume and media_change are not the same. They already inside a CTX_LOCK already, no panic.

Tue, Aug 4, 9:31 PM · iflib, Intel Networking, network
kbowling added a comment to D58629: igc: defer sysctl-driven reinit to the admin task.

It's one unit of work unifying a lifecycle issue

Tue, Aug 4, 9:13 PM · iflib, Intel Networking, network
guest-seuros added a comment to D58629: igc: defer sysctl-driven reinit to the admin task.

Can you do the same for media_change and if_resume?

Tue, Aug 4, 9:10 PM · iflib, Intel Networking, network
kbowling requested changes to D58629: igc: defer sysctl-driven reinit to the admin task.

Can you do the same for media_change and if_resume?

Tue, Aug 4, 9:06 PM · iflib, Intel Networking, network
kbowling requested changes to D58628: e1000: defer sysctl-driven reinit to the admin task.

Can you do the same for media_change and if_resume?

Tue, Aug 4, 9:05 PM · iflib, Intel Networking, network

Mon, Aug 3

adrian added a reviewer for D58628: e1000: defer sysctl-driven reinit to the admin task: kbowling.
Mon, Aug 3, 11:36 PM · iflib, Intel Networking, network
adrian added a reviewer for D58629: igc: defer sysctl-driven reinit to the admin task: kbowling.
Mon, Aug 3, 11:35 PM · iflib, Intel Networking, network
adrian added projects to D58629: igc: defer sysctl-driven reinit to the admin task: network, Intel Networking, iflib.
Mon, Aug 3, 11:35 PM · iflib, Intel Networking, network
adrian added projects to D58628: e1000: defer sysctl-driven reinit to the admin task: network, Intel Networking, iflib.
Mon, Aug 3, 11:28 PM · iflib, Intel Networking, network
gallatin accepted D58376: iflib: clean up correctly when device attach fails.
Mon, Aug 3, 4:50 PM · iflib, network

Sat, Jul 25

adrian added a reviewer for D58376: iflib: clean up correctly when device attach fails: gallatin.

@gallatin would you mind eyeballing this? ty!

Sat, Jul 25, 3:59 AM · iflib, network
adrian added projects to D58376: iflib: clean up correctly when device attach fails: network, iflib.
Sat, Jul 25, 3:57 AM · iflib, network

Jun 11 2021

heliocentric_gmail.com added a watcher for iflib: heliocentric_gmail.com.
Jun 11 2021, 12:32 AM

May 31 2021

kbowling resigned from D30463: iflib:correct vlan register/unregister.

Yes I apologize for my own misunderstanding, I saw this patch in BZ and was confused previously and didn't see it helping the related e1000 issues. Upon seeing it here again, it seemed like the if statement WRT ctx and arg would be incorrect if receiving an event from the vlan handler, but I see that we control the argument with our EVENTHANDLER_REGISTER here so it is consistent. @kaho_elam.kais.kyoto-u.ac.jp I believe the problems you are pursuing are a combination of filter management in e1000 and a couple issues in the em_txrx.c. I have today off so I'll see if I can make some progress, I've found some bugs in testing so nothing is ready for commit yet but here's my works in progress: D30002 and D30072

May 31 2021, 4:27 PM · iflib

May 29 2021

kaho_elam.kais.kyoto-u.ac.jp added a comment to D30463: iflib:correct vlan register/unregister.

I don't understand this change. If you look at EVENTHANDLER_INVOKE, it traverses the list of registered handlers and calls each one with

_t->eh_func(_ep->ee_arg , ## __VA_ARGS__);

so the argument passed with EVENTHANDLER_REGISTER is the first parameter, followed by the parent ifnet and VID. iflib specifies the ctx (stored in ifp->if_softc) as the argument, and in iflib_vlan_register() we compare the argument with ifp->if_softc.

I tried adding some prints around this code and configured a vlan on an igb interface, and iflib indeed handled the event. So I can't see what problem this diff is fixing.

May 29 2021, 10:17 AM · iflib
kaho_elam.kais.kyoto-u.ac.jp added a comment to D30463: iflib:correct vlan register/unregister.
In D30463#685828, @erj wrote:

I also don't really understand what this is supposed to fix; we haven't had problems registering VLANs at all.

May 29 2021, 8:58 AM · iflib

May 28 2021

erj requested changes to D30463: iflib:correct vlan register/unregister.

I also don't really understand what this is supposed to fix; we haven't had problems registering VLANs at all.

May 28 2021, 10:55 PM · iflib
markj added a comment to D30463: iflib:correct vlan register/unregister.

I don't understand this change. If you look at EVENTHANDLER_INVOKE, it traverses the list of registered handlers and calls each one with

May 28 2021, 2:08 PM · iflib
kbowling accepted D30463: iflib:correct vlan register/unregister.

I see it clearly now, and agree. Thanks for the fix!

May 28 2021, 6:37 AM · iflib

May 26 2021

kaho_elam.kais.kyoto-u.ac.jp requested review of D30463: iflib:correct vlan register/unregister.
May 26 2021, 2:35 AM · iflib

Feb 19 2021

rajeshasp added a watcher for iflib: rajeshasp.
Feb 19 2021, 6:35 AM

Feb 16 2021

kgalazka added a watcher for iflib: kgalazka.
Feb 16 2021, 8:00 PM

May 8 2019

gallatin added a member for iflib: gallatin.
May 8 2019, 6:19 PM

Mar 26 2019

emaste added a member for iflib: kbowling.
Mar 26 2019, 5:12 PM

Mar 19 2019

kbowling added a watcher for iflib: kbowling.
Mar 19 2019, 3:23 AM

Mar 17 2019

marius added a member for iflib: marius.
Mar 17 2019, 4:03 PM

Mar 14 2019

cy added a member for iflib: cy.
Mar 14 2019, 7:49 PM
pkelsey added a member for iflib: pkelsey.
Mar 14 2019, 6:01 PM
bryanv added a member for iflib: bryanv.
Mar 14 2019, 5:45 PM
bz added a member for iflib: bz.
Mar 14 2019, 5:29 PM
shurd added a member for iflib: shurd.
Mar 14 2019, 5:01 PM
erj added a member for iflib: erj.
Mar 14 2019, 4:49 PM
jhb added a member for iflib: jhb.
Mar 14 2019, 4:05 PM
mat created iflib.
Mar 14 2019, 12:25 PM