From nobody Wed Nov 16 15:42:10 2022 X-Original-To: net@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 4NC6jt4xcwz4dKtg for ; Wed, 16 Nov 2022 15:42:10 +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 4NC6jt2Jgtz4bsf for ; Wed, 16 Nov 2022 15:42:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668613330; 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: in-reply-to:in-reply-to:references:references; bh=Tz5KWWEwJJ78uS5sil009OYcREMono046DKnJVqGwO4=; b=Diw64RoQ0clPPRSCaNMjwkHQdQIpJTKvovSrlRTiwYLEFLuUDnoH2kNX7ofCo0SPzDHl3y D1gkRy0qDO9kalsjbxTaXhGWsUpq9lL1XTlUix3Bba3D7fYACc6v+kmmbiqUsk+j2kEleE TEOqgWrtfyTYodrYPA25T4oRIOprftdLaOFzLam3X2BhhXZ9dNWfDGwvZEFpho323vOs+w 6dv86p71uKkiiYA615UMLsXtLhLvPyBZ8eq+7UIfJtyNUPBKYipkpJ/I7OBO2JWaVBE+lG 8/3Ng3BDYwWFJ3WJ5Fo1tIH8aVvJeMSJ2TeyoFvqXr3P1FboJfaXVIdk1vLDUQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668613330; a=rsa-sha256; cv=none; b=YbfG/ut2f2VEtpj7MRW6xNokg1gW1tDk0c64WrmE5bUbJaw2HrpGkZ3WOOUJcjkK4JtZBY nWOH7ye8SdVgVG2XKOc4EzwfRGJDMwWFiks+RKviPsOtcXTHuxjwZ7I98YG5ePzksriOWD eeUqWC1yo2H+yOw2VSvTvZ05FJG4hVhWGrMN4hz7VJEwpLslMred4C3cED319MlABrAPOa 8JROVorubLHB4W3CqTU+qE+rEnTBvpK4pFdli8bzw6kZT8NYflZcQQvzIUnT35v0uwvca+ C21Py0x822TR1vOt0IHatlCtFYlFP8rustEAYMhf9UagMXxEc4A6KXt1Y7pGZA== 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 4NC6jt1Mv7z16hf for ; Wed, 16 Nov 2022 15:42:10 +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 2AGFgAde042948 for ; Wed, 16 Nov 2022 15:42:10 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2AGFgAk3042947 for net@FreeBSD.org; Wed, 16 Nov 2022 15:42:10 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: net@FreeBSD.org Subject: [Bug 265857] qlnxe: no IPV6 pings between nodes on the same switch until an IPv4 address is set Date: Wed, 16 Nov 2022 15:42:10 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: zlei.huang@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265857 --- Comment #22 from Zhenlei Huang --- (In reply to benoitc from comment #1) > looking at the source code: > https://cgit.freebsd.org/src/tree/sys/dev/qlnx/qlnxe/qlnx_os.c#n2675 > it seems that this snippet initialising the ha record : > ``` > ifp->if_flags |=3D IFF_UP; > if (!(ifp->if_drv_flags & IFF_DRV_RUNNING)) { > QLNX_LOCK(ha); > qlnx_init_locked(ha); > QLNX_UNLOCK(ha); > } > ``` > should also be added to=20 > https://cgit.freebsd.org/src/tree/sys/dev/qlnx/qlnxe/qlnx_os.c#n2687 > otherwise I am not sure when this is correctly initialised using an IPv6 = address. > Thoughts? Line https://cgit.freebsd.org/src/tree/sys/dev/qlnx/qlnxe/qlnx_os.c#n2687 c= alls ether_ioctl() which in turn calls `ifp->if_init(ifp->if_softc)`. For qlnx driver `ifp->if_init` is `qlnx_init()` which is a wrapper of `qlnx_init_locked()`. So when adding IPv6 addresses to the interface, it will be initialised (the same with IPv4). --=20 You are receiving this mail because: You are the assignee for the bug.=