From nobody Mon Sep 4 10:15:46 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RfPfV2159z4rnm3 for ; Mon, 4 Sep 2023 10:15:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RfPfT6vS8z3HyS for ; Mon, 4 Sep 2023 10:15:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693822546; a=rsa-sha256; cv=none; b=ME2OOUAjeBjNgNAADYeq7ZbQbj5k6/REivJA5ZxiBq1Xz/x9GK2nCygLXSWSwwLA+B2bQ/ KSW8zjxCuBgwbibd/sinu9ZIveQyp0k9vxBsywRuxj0CAN3DOdK9XDWoyXoRnx1ZNNr9lA e8H2cIo+KCpbGwbhWch4NL8aJA4C4GCKsYV3mVjUSKkfnwU66L4vx6SvcHSeyUjbsFV/qX A5QnbkRy4+WKp9pRdjhTLJdnwBPfNWNRe/Lc6f7M8RpDDb2k/cD187K5E5Em6eiAlufANq 8aAEsDKcAZN01Sc2wD8bM4rErEDJnYLxSXPOg2EuQCaUuN6ZTcHMrqGypWAO3w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693822546; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gJWXAnTwVDRFzDU48FuLXf27mxcZ4EvdCPnUhVyWNNs=; b=YzyAGSKCpTnpSKGsTa+KkR21iBQg8bbql11AFpbjFar1RElYvkEhAmczHNf7SkshkfqGA6 fAmjOv+100gH3Jrb9XDQbplBokaCI2+XvjIihqDsXst6iecaR2s9mD9cTzAxzhX3w3MEKG ffO+v4yIa5sdVBcwym6n1huTz5/t0403FvvHRtRh96mi7rHuIEP6QG6Fbf4PYAbAYQAvYQ yKuqgiD2Jm2kNpSdXpwmqK93jHqT7+NsQKNqSWX0GI2rNHuDWcSw13BavLUM3tWadZ8ps/ lteNQnX643W9lAhhcUWPeUs0v0HEoBfSeLQKB2sbeKBvo20ESY04tzNJNFhLyQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RfPfT5yzsz12n7 for ; Mon, 4 Sep 2023 10:15:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 384AFjbT068515 for ; Mon, 4 Sep 2023 10:15:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 384AFjL1068514 for bugs@FreeBSD.org; Mon, 4 Sep 2023 10:15:45 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 273559] [iflib] numa allocation Date: Mon, 04 Sep 2023 10:15:46 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: konrad.kreciwilk@korbank.pl X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273559 Bug ID: 273559 Summary: [iflib] numa allocation Product: Base System Version: 13.2-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: konrad.kreciwilk@korbank.pl Hello, Based on https://reviews.freebsd.org/D19930 I did a patch for iflib: diff --git a/sys/net/iflib.c b/sys/net/iflib.c index d6dcb0931..4437f6e57 100644 --- a/sys/net/iflib.c +++ b/sys/net/iflib.c @@ -5953,7 +5953,7 @@ iflib_register(if_ctx_t ctx) type =3D IFT_PPP; } else type =3D IFT_ETHER; - ifp =3D ctx->ifc_ifp =3D if_alloc(type); + ifp =3D ctx->ifc_ifp =3D if_alloc_dev(type, dev); if (ifp =3D=3D NULL) { device_printf(dev, "can not allocate ifnet structure\n"); return (ENOMEM); for allocate NUMA local memory. I used it for lagg lacp egress port selecti= on based on NUMA domain. So far everything worked fine (stable/13 build 12 Apr 2022). Yesterday I did upgrade to latest stable/13 and patch has stopped working. The same flow comes to ix1 (numa-domain 0) and goes out ix3 (numa-domain 1). Lagg0 has enabled use_numa (as before). System has a few v= lans on lagg0 and does the routing #dev numa domain dev.ix.3.%domain: 1 dev.ix.2.%domain: 1 dev.ix.1.%domain: 0 dev.ix.0.%domain: 0 #interfaces #10G - ix0 ifconfig_ix0=3D"up" #10G - ix1 ifconfig_ix1=3D"up" #10G - ix2 ifconfig_ix2=3D"up" #10G - ix3 ifconfig_ix3=3D"up" #LAGG LACP ifconfig_lagg0=3D"laggproto lacp laggport ix0 laggport ix1 laggport ix2 lag= gport ix3 up -wol -vlanhwtso -tso -lro" lagg0: flags=3D8843 metric 0 mtu 15= 00 =20=20=20=20=20=20=20 options=3D4e100bb ether 90:e2:ba:78:9d:2c laggproto lacp lagghash l2,l3,l4 lagg options: flags=3D15 flowid_shift: 16 lagg statistics: active ports: 2 flapping: 0 lag id: [(8000,90-E2-BA-78-9D-2C,0152,0000,0000), (0000,00-11-22-33-44-55,000C,0000,0000)] laggport: ix0 flags=3D0<> state=3D41 [(8000,90-E2-BA-78-9D-2C,8001,8000,0001), (FFFF,00-00-00-00-00-00,0000,FFFF,0000)] laggport: ix1 flags=3D1c state=3D3d [(8000,90-E2-BA-78-9D-2C,0152,8000,0002), (0000,00-11-22-33-44-55,000C,0000,03EF)] laggport: ix2 flags=3D0<> state=3D41 [(8000,90-E2-BA-78-9D-2C,8007,8000,0007), (FFFF,00-00-00-00-00-00,0000,FFFF,0000)] laggport: ix3 flags=3D1c state=3D3d [(8000,90-E2-BA-78-9D-2C,0152,8000,0008), (0000,00-11-22-33-44-55,000C,0000,03EF)] groups: lagg media: Ethernet autoselect status: active nd6 options=3D29 Where is the problem ? --=20 You are receiving this mail because: You are the assignee for the bug.=