Page MenuHomeFreeBSD
Feed Advanced Search

Jun 16 2023

jhibbits accepted D40577: netlink: convert to IfAPI..

I agree with option 1, moving the LLE insertion code to if_llatbl.c

Jun 16 2023, 3:37 PM

May 17 2023

jhibbits accepted D40125: net/if_var.h: consistently use if_t over struct ifnet *.
May 17 2023, 3:10 AM

May 2 2023

jhibbits closed D39493: IfAPI: Add if_maddr_empty() to check for any maddrs.
May 2 2023, 6:48 PM
jhibbits committed rG0785c323f31c: Convert nfs bootp/diskless to use IfAPI (authored by jhibbits).
Convert nfs bootp/diskless to use IfAPI
May 2 2023, 6:48 PM
jhibbits committed rG4db5958a0691: Mechanically convert if_hn(4) to IfAPI (authored by jhibbits).
Mechanically convert if_hn(4) to IfAPI
May 2 2023, 6:48 PM
jhibbits committed rGf766d1d5a7c6: IfAPI: Add if_maddr_empty() to check for any maddrs (authored by jhibbits).
IfAPI: Add if_maddr_empty() to check for any maddrs
May 2 2023, 6:47 PM
jhibbits closed D38962: Convert nfs to use the IfAPI.
May 2 2023, 6:47 PM
jhibbits closed D37855: Mechanically convert if_hn(4) to DrvAPI.
May 2 2023, 6:47 PM
jhibbits updated the diff for D39493: IfAPI: Add if_maddr_empty() to check for any maddrs.

Switch to a boolean, if_maddr_empty() instead.

May 2 2023, 2:56 PM

May 1 2023

jhibbits added a comment to D39621: IfAPI: Remove temporary inclusion of if_private.h.

If it builds, I'm all up for it!

May 1 2023, 6:00 PM

Apr 25 2023

jhibbits committed rGf46a05b5d3db: al_eth: Finish conversion to IfAPI (authored by jhibbits).
al_eth: Finish conversion to IfAPI
Apr 25 2023, 6:23 PM
jhibbits committed rGcfaab41c950f: irdma: Convert to IfAPI (authored by jhibbits).
irdma: Convert to IfAPI
Apr 25 2023, 6:23 PM
jhibbits closed D38955: al_eth: Finish conversion to IfAPI.
Apr 25 2023, 6:22 PM
jhibbits closed D38960: irdma: Convert to IfAPI.
Apr 25 2023, 6:22 PM
jhibbits added inline comments to D38955: al_eth: Finish conversion to IfAPI.
Apr 25 2023, 3:49 PM
jhibbits added a comment to D38960: irdma: Convert to IfAPI.

@mateusz.moga_intel.com Thanks for validation, I'll push it today.

Apr 25 2023, 2:19 PM

Apr 24 2023

jhibbits added a reviewer for D38955: al_eth: Finish conversion to IfAPI: mw.

Add mw@ for review as well.

Apr 24 2023, 2:15 PM
jhibbits added a comment to D39493: IfAPI: Add if_maddr_empty() to check for any maddrs.

Ping? Would a simple boolean be better than a count?

Apr 24 2023, 2:14 PM
jhibbits added a comment to D38962: Convert nfs to use the IfAPI.

Ping anyone?

Apr 24 2023, 2:13 PM
jhibbits committed rG02f3b17fa596: Mechanically convert Xen netfront/netback(4) to IfAPI (authored by jhibbits).
Mechanically convert Xen netfront/netback(4) to IfAPI
Apr 24 2023, 2:12 PM
jhibbits committed rG7814374b7cd5: IfAPI: Hide the macros that touch ifnet members (authored by jhibbits).
IfAPI: Hide the macros that touch ifnet members
Apr 24 2023, 2:12 PM
jhibbits committed rG97583aa25675: linuxkpi: Migrate to IfAPI (authored by jhibbits).
linuxkpi: Migrate to IfAPI
Apr 24 2023, 2:12 PM
jhibbits closed D37800: Mechanically convert Xen netfront/netback(4) to DrvAPI.
Apr 24 2023, 2:12 PM
jhibbits closed D39491: linuxkpi: Migrate to IfAPI.
Apr 24 2023, 2:12 PM

Apr 22 2023

jhibbits committed rG0468e89cb359: zfs/powerpc64: Fix big-endian powerpc64 asm (authored by jhibbits).
zfs/powerpc64: Fix big-endian powerpc64 asm
Apr 22 2023, 3:25 PM

Apr 21 2023

jhibbits updated the diff for D37855: Mechanically convert if_hn(4) to DrvAPI.

Update diff after (several) rebases. Intended to do this 2 months ago. I hope I've addressed everything.

Apr 21 2023, 5:13 PM
jhibbits updated the diff for D38960: irdma: Convert to IfAPI.

Rebase and use @bartosz.sobczak_intel.com 's diff instead.

Apr 21 2023, 5:09 PM

Apr 20 2023

jhibbits added a comment to D38960: irdma: Convert to IfAPI.


Thanks for bearing with me @jhibbits !

I'm attaching current proposal which i rebased on top of 14-cur today and run quickly rping on roce/iwarp and it seems fine.

Apr 20 2023, 7:37 PM

Apr 19 2023

jhibbits added a comment to D38960: irdma: Convert to IfAPI.

Hi @bartosz.sobczak_intel.com the ofed fix has been committed as 12e99b63d2fa, thanks!

Apr 19 2023, 3:54 PM
jhibbits committed rG12e99b63d2fa: ofed: Fix a logic inversion from IfAPI conversion (authored by jhibbits).
ofed: Fix a logic inversion from IfAPI conversion
Apr 19 2023, 3:53 PM
jhibbits added a comment to D38960: irdma: Convert to IfAPI.

i still haven't had a chance to test this, because from what i can see the commit 3e142e07675be6d breaks iwarp for E810 devices. i'm trying to comprehend why this happens.

Crap. It should've been a purely mechanical change, with no functional changes. Unfortunately I have no way of testing. @hselasky are you able to test and debug? I hope I don't need to revert, I want to get D39621 in before the branch in May.

I know! right?
Ok, i think i found the change:

@@ -176,13 +176,13 @@ static inline int rdma_addr_gid_offset(struct rdma_dev_addr *dev_addr)
 	return dev_addr->dev_type == ARPHRD_INFINIBAND ? 4 : 0;
 }
 
-static inline u16 rdma_vlan_dev_vlan_id(const struct ifnet *dev)
+static inline u16 rdma_vlan_dev_vlan_id(if_t dev)
 {
 	uint16_t tag;
 
-	if (dev->if_type == IFT_ETHER && dev->if_pcp != IFNET_PCP_NONE)
+	if (if_gettype(dev) != IFT_ETHER || if_getpcp(dev) == IFNET_PCP_NONE)
 		return 0x0000;	/* prio-tagged traffic */
-	if (VLAN_TAG(__DECONST(struct ifnet *, dev), &tag) != 0)
+	if (VLAN_TAG(__DECONST(if_t, dev), &tag) != 0)
 		return 0xffff;
 	return tag;
 }

So we have a change from:
A && !B
into:
!A || B

Do you know why this change? It clearly is a negative of what was before. The effect is that when no vlan is set, we get vlan_id 0 instead of 0xffff, and this is used by irdma driver.

Apr 19 2023, 3:15 PM

Apr 18 2023

jhibbits updated subscribers of D38960: irdma: Convert to IfAPI.

i still haven't had a chance to test this, because from what i can see the commit 3e142e07675be6d breaks iwarp for E810 devices. i'm trying to comprehend why this happens.

Apr 18 2023, 2:43 PM

Apr 17 2023

jhibbits requested review of D39621: IfAPI: Remove temporary inclusion of if_private.h.
Apr 17 2023, 5:57 PM

Apr 12 2023

jhibbits added a comment to D38960: irdma: Convert to IfAPI.

Ah I see now. Not sure what I actually downloaded to check yesterday, now I got the right diff to compare.

Apr 12 2023, 1:44 PM

Apr 11 2023

jhibbits accepted D39240: share/mk/bsd.cpu.mk: add AltiVec / VSX to powerpc*'s MACHINE_CPU.

powerpcspe can be done separately. I don't think there's currently any attribute used, but if there will be it would be "spe" or such.

Apr 11 2023, 6:05 PM
jhibbits added a comment to D38960: irdma: Convert to IfAPI.

Hi @bartosz.sobczak_intel.com I just checked, and the diffs are identical. I have no way of testing it, I've only compiled it for all targets.

Apr 11 2023, 3:41 PM

Apr 10 2023

jhibbits requested review of D39493: IfAPI: Add if_maddr_empty() to check for any maddrs.
Apr 10 2023, 7:14 PM
jhibbits added a comment to D39491: linuxkpi: Migrate to IfAPI.

When changing structure layouts you need to bump the FreeBSD version.

Apr 10 2023, 7:09 PM
jhibbits edited reviewers for D38962: Convert nfs to use the IfAPI, added: glebius, melifaro; removed: rmacklem.
Apr 10 2023, 6:45 PM
jhibbits requested review of D39491: linuxkpi: Migrate to IfAPI.
Apr 10 2023, 6:21 PM

Apr 6 2023

jhibbits updated the diff for D38960: irdma: Convert to IfAPI.

Rebase, address feedback.

Apr 6 2023, 4:15 PM

Mar 29 2023

jhibbits added inline comments to D39240: share/mk/bsd.cpu.mk: add AltiVec / VSX to powerpc*'s MACHINE_CPU.
Mar 29 2023, 3:49 PM
jhibbits accepted D39314: Add NETLINK to powerpc by default.
Mar 29 2023, 3:48 PM
jhibbits added a comment to D39314: Add NETLINK to powerpc by default.
Mar 29 2023, 3:46 PM

Mar 24 2023

jhibbits updated the diff for D38955: al_eth: Finish conversion to IfAPI.

Drop the initial link state. Nothing else sets initial link state.

Mar 24 2023, 7:14 PM
jhibbits committed rG79aa96f9ca4d: infiniband: Bring back M_ASSERTVALID() check in infiband_bpf_mtap() (authored by jhibbits).
infiniband: Bring back M_ASSERTVALID() check in infiband_bpf_mtap()
Mar 24 2023, 3:50 PM
jhibbits committed rGbb55bb1740d2: inet6: Include if_private.h in one more netstack file (authored by jhibbits).
inet6: Include if_private.h in one more netstack file
Mar 24 2023, 3:50 PM
jhibbits committed rG727bfe3894ab: Mechanically convert qlnx(4) to IfAPI (authored by jhibbits).
Mechanically convert qlnx(4) to IfAPI
Mar 24 2023, 3:50 PM
jhibbits closed D37856: Mechanically convert qlnx(4) to DrvAPI.
Mar 24 2023, 3:49 PM
jhibbits committed rG3e142e07675b: ofed: Mechanically convert to IfAPI (authored by jhibbits).
ofed: Mechanically convert to IfAPI
Mar 24 2023, 3:49 PM
jhibbits closed D38560: ofed: Mechanically convert to IfAPI.
Mar 24 2023, 3:49 PM
jhibbits abandoned D38929: ice: Use IfAPI accessor in place of if_capenable reference.
In D38929#893449, @erj wrote:
Mar 24 2023, 2:01 PM
jhibbits added a comment to D37856: Mechanically convert qlnx(4) to DrvAPI.
In D37856#893389, @zlei wrote:

Looks good to me.

I admit that the diff https://reviews.freebsd.org/D37856?id=117248 frustrated me a lot.

Mar 24 2023, 1:44 AM

Mar 23 2023

jhibbits updated the diff for D38962: Convert nfs to use the IfAPI.

Update.

Mar 23 2023, 5:49 PM
jhibbits added a comment to D37856: Mechanically convert qlnx(4) to DrvAPI.

Any further comments on this?

Mar 23 2023, 5:48 PM
jhibbits updated the diff for D38560: ofed: Mechanically convert to IfAPI.

Update to use the new if_iter API. Remove rest of struct ifnet uses in the code.

Mar 23 2023, 5:48 PM
jhibbits added a comment to D38929: ice: Use IfAPI accessor in place of if_capenable reference.

@erj can you fix this the right way given what you also wrote in your now deleted comment? I could just revert the original change to the line if that's all that's needed.

Mar 23 2023, 2:25 PM
jhibbits committed rGe2427c6917dd: IfAPI: Add iterator to complement if_foreach() (authored by jhibbits).
IfAPI: Add iterator to complement if_foreach()
Mar 23 2023, 1:39 PM
jhibbits closed D39138: IfAPI: Add iterator to complement if_foreach().
Mar 23 2023, 1:38 PM

Mar 21 2023

jhibbits added a comment to D38960: irdma: Convert to IfAPI.

@bartosz.sobczak_intel.com I'm find holding off. When D39173 is committed I'll rebase on that and rework to also use the new iterator API which is cleaner than the callback API.

Mar 21 2023, 2:28 PM
jhibbits committed rG379e14ba6c61: powerpc/pmap: Account for a potential NULL pmap in pmap_sync_icache (authored by jhibbits).
powerpc/pmap: Account for a potential NULL pmap in pmap_sync_icache
Mar 21 2023, 2:02 PM

Mar 18 2023

jhibbits updated the diff for D39138: IfAPI: Add iterator to complement if_foreach().

Simplify things a bit, store only next pointer instead of both current and next.

Mar 18 2023, 6:59 PM
jhibbits added inline comments to D39138: IfAPI: Add iterator to complement if_foreach().
Mar 18 2023, 6:54 PM
jhibbits updated the diff for D39138: IfAPI: Add iterator to complement if_foreach().

Address feedback from @melifaro. Make the API 'safe', and change the cleanup function to 'finish'.

Mar 18 2023, 5:53 PM
jhibbits added inline comments to D39138: IfAPI: Add iterator to complement if_foreach().
Mar 18 2023, 5:50 PM

Mar 17 2023

jhibbits added inline comments to D39138: IfAPI: Add iterator to complement if_foreach().
Mar 17 2023, 5:51 PM

Mar 16 2023

jhibbits requested review of D39138: IfAPI: Add iterator to complement if_foreach().
Mar 16 2023, 8:30 PM
jhibbits added a comment to D38962: Convert nfs to use the IfAPI.

@melifaro I like that approach overall, but I think it's nicer to keep it all local on the stack using an opaque context struct, then a user can do something like:

Mar 16 2023, 1:43 AM

Mar 15 2023

jhibbits committed rGf2df50925ee9: powerpc/pmap: Add pmap_sync_icache() for radix pmap (authored by jhibbits).
powerpc/pmap: Add pmap_sync_icache() for radix pmap
Mar 15 2023, 8:48 PM
jhibbits committed rG72d1ee8d6d76: dtrace/powerpc: Adjust AFRAMES for fbt and profile (authored by jhibbits).
dtrace/powerpc: Adjust AFRAMES for fbt and profile
Mar 15 2023, 8:48 PM
jhibbits committed rGfcd94047f33b: dtrace/powerpc: "Fix" stack traces across trap frames (authored by jhibbits).
dtrace/powerpc: "Fix" stack traces across trap frames
Mar 15 2023, 8:47 PM
jhibbits committed rGed2c3bda43fb: powerpc/pmap: Add pmap_sync_icache() for radix pmap (authored by jhibbits).
powerpc/pmap: Add pmap_sync_icache() for radix pmap
Mar 15 2023, 8:08 PM
jhibbits committed rG1026d170f4f7: dtrace/powerpc: Adjust AFRAMES for fbt and profile (authored by jhibbits).
dtrace/powerpc: Adjust AFRAMES for fbt and profile
Mar 15 2023, 8:03 PM
jhibbits committed rG0a21a6659e5d: dtrace/powerpc: "Fix" stack traces across trap frames (authored by jhibbits).
dtrace/powerpc: "Fix" stack traces across trap frames
Mar 15 2023, 8:02 PM

Mar 14 2023

jhibbits closed D39024: infiniband: Convert BPF handling for IfAPI.
Mar 14 2023, 8:02 PM
jhibbits committed rGadf62e836315: infiniband: Convert BPF handling for IfAPI (authored by jhibbits).
infiniband: Convert BPF handling for IfAPI
Mar 14 2023, 8:02 PM

Mar 13 2023

jhibbits committed rGe620e088cbd1: dtrace/powerpc: Remove accidental commented out line (authored by jhibbits).
dtrace/powerpc: Remove accidental commented out line
Mar 13 2023, 3:38 PM
jhibbits updated the diff for D37800: Mechanically convert Xen netfront/netback(4) to DrvAPI.

Address feedback.

Mar 13 2023, 2:19 PM
jhibbits added inline comments to D37800: Mechanically convert Xen netfront/netback(4) to DrvAPI.
Mar 13 2023, 1:29 AM

Mar 12 2023

jhibbits added inline comments to D38962: Convert nfs to use the IfAPI.
Mar 12 2023, 6:10 PM
jhibbits added inline comments to D38962: Convert nfs to use the IfAPI.
Mar 12 2023, 6:09 PM
jhibbits added reviewers for D38962: Convert nfs to use the IfAPI: rmacklem, network.
Mar 12 2023, 5:27 PM
jhibbits committed rG6f0b2a235a13: powerpc/pmap: Add pmap_sync_icache() for radix pmap (authored by jhibbits).
powerpc/pmap: Add pmap_sync_icache() for radix pmap
Mar 12 2023, 3:53 PM

Mar 11 2023

jhibbits requested review of D39024: infiniband: Convert BPF handling for IfAPI.
Mar 11 2023, 4:50 PM
jhibbits committed rG3caaaa56bbba: phyp_llan: Mechanically convert to IfAPI (authored by jhibbits).
phyp_llan: Mechanically convert to IfAPI
Mar 11 2023, 4:44 PM
jhibbits committed rG3e1155ade1ba: dtrace/powerpc: "Fix" stack traces across trap frames (authored by jhibbits).
dtrace/powerpc: "Fix" stack traces across trap frames
Mar 11 2023, 4:44 PM
jhibbits committed rG635ecbf47015: dtrace/powerpc: Adjust AFRAMES for fbt and profile (authored by jhibbits).
dtrace/powerpc: Adjust AFRAMES for fbt and profile
Mar 11 2023, 4:44 PM
jhibbits committed rG1510005c94b8: dtsec: Complete mechanical conversion to IfAPI (authored by jhibbits).
dtsec: Complete mechanical conversion to IfAPI
Mar 11 2023, 4:44 PM

Mar 10 2023

jhibbits added inline comments to D38955: al_eth: Finish conversion to IfAPI.
Mar 10 2023, 4:26 PM

Mar 8 2023

jhibbits added inline comments to D38963: eqos: Mechanically convert to IfAPI.
Mar 8 2023, 4:52 PM
jhibbits committed rGd936c29ec021: dpaa2: Mechanically convert to IfAPI (authored by jhibbits).
dpaa2: Mechanically convert to IfAPI
Mar 8 2023, 3:16 PM
jhibbits closed D38959: dpaa2: Mechanically convert to IfAPI.
Mar 8 2023, 3:16 PM
jhibbits closed D38963: eqos: Mechanically convert to IfAPI.
Mar 8 2023, 3:16 PM
jhibbits committed rGa472fd7a5737: eqos: Mechanically convert to IfAPI (authored by jhibbits).
eqos: Mechanically convert to IfAPI
Mar 8 2023, 3:16 PM
jhibbits added inline comments to D38963: eqos: Mechanically convert to IfAPI.
Mar 8 2023, 2:55 PM

Mar 7 2023

jhibbits requested review of D38963: eqos: Mechanically convert to IfAPI.
Mar 7 2023, 9:25 PM
jhibbits updated the diff for D38962: Convert nfs to use the IfAPI.

Enter the net epoch instead of using the ifnet lock.

Mar 7 2023, 9:04 PM
jhibbits requested review of D38962: Convert nfs to use the IfAPI.
Mar 7 2023, 8:58 PM
jhibbits requested review of D38960: irdma: Convert to IfAPI.
Mar 7 2023, 8:54 PM
jhibbits requested review of D38959: dpaa2: Mechanically convert to IfAPI.
Mar 7 2023, 8:48 PM