From nobody Wed Apr 13 23:09:34 2022 X-Original-To: dev-commits-src-main@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 852801B40BEC; Wed, 13 Apr 2022 23:09:35 +0000 (UTC) (envelope-from git@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 4KdywH0zxbz4lxl; Wed, 13 Apr 2022 23:09:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649891375; 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=L5mx4urde8kz2jlcVNypBfoCWU3Wsxd6qOVwOnkqZjA=; b=ogQAJESEbn9ANKG2i42whn2i2HAa6/1gQZ1vQh4WR7Zehu4i3vnf2+OzeMHQf1/YxgMsPU mjsC3hpci+ATaj3F7nKgsIyb2oiSaIUQC1vabRD5aysjOLMUrlErYgfUT1TIUEidqIo8OR WyRvDL22SKjjNJsyHSeFvZ0puU86vNmXY8ULedeAPcrlPtP+M40dz7RJBe17flB4HoGugB kcncN0HU8kKqK9Y5XqW0Zjr1IVXQtgmhnEQ3haD6aQymtgKG6an/rFn87uP3P9zU3DDchG q0pkSkP0aH6ZQdzlZP7YE+mKhcdKEBynYTI/9joSqhPdLbpPCWvCUp2gCQlGtQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 CC76D15401; Wed, 13 Apr 2022 23:09:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23DN9YjF074565; Wed, 13 Apr 2022 23:09:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23DN9YiU074564; Wed, 13 Apr 2022 23:09:34 GMT (envelope-from git) Date: Wed, 13 Apr 2022 23:09:34 GMT Message-Id: <202204132309.23DN9YiU074564@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: ac3e46fa3ece - main - infiniband_resolve_addr: ih is only used for INET or INET6. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ac3e46fa3ece4f3c551a481a052a5a0d3a829b54 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649891375; 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=L5mx4urde8kz2jlcVNypBfoCWU3Wsxd6qOVwOnkqZjA=; b=bXOMTr85/GwZ6UJWzN6YY3mUNAiku/iWR7Gjizy/u1a18dVWEpsflXfi3ZVg08ztepDZmk DNTCg4fJJg4xJAT9A7up62+DKdOxiYCMzsw3FKaWG2BsHkciJtt14H6SNIIrrXizM39eep 4I7znI6rMgrI5JC3tA1h1QcxRSh3KcMwGiSzcwOOUBHEzGNjyadOil165NkcItq0blUIRa RzTW/KOtn+j3Bl/ZID7PwY4Hwn0W/Gzxk194fwoKb6GiXC+c64uqSQD3DdYXurafl/e42r 9lk72u/wybVKu/bu0m7wh12VzrW+j9fOHm18ckkjYCJG0b63PZGclvKiiWFUdA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649891375; a=rsa-sha256; cv=none; b=TTPovDjwC6uEWZOEsgiq32FpCCz+ob63VfqiSoCvzBrZ4zCwyn2Usm5oVohsvfGamvWf+V yqJx8y4Zihf6couxtpyEcVzcW/KUDrTth3cy4reoXvB3hCcmhCig4ekFqmpAEfKGluc/BO dlUdP42XVX6junIG2S/JwgZc35t9+2nHPH1rCthcbVNV2irBnI+DNoH3R4pkJ/sisdjjfY WcntVUKmlCSJgQHsET0X/yZ2G1xhckBa9DSK8YxvdlCV0gaMw7AX0Yp2WR1FSzG7sfEmP/ FP1N0pkjeNam1bF/bKIJyRT4T18ZaTfIJiHRSsYC9L+7BBF7aBGTtt6oQwTFtg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=ac3e46fa3ece4f3c551a481a052a5a0d3a829b54 commit ac3e46fa3ece4f3c551a481a052a5a0d3a829b54 Author: John Baldwin AuthorDate: 2022-04-13 23:08:21 +0000 Commit: John Baldwin CommitDate: 2022-04-13 23:08:21 +0000 infiniband_resolve_addr: ih is only used for INET or INET6. --- sys/net/if_infiniband.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/net/if_infiniband.c b/sys/net/if_infiniband.c index 4dfbd5272d15..c673b7d30a79 100644 --- a/sys/net/if_infiniband.c +++ b/sys/net/if_infiniband.c @@ -223,13 +223,14 @@ infiniband_resolve_addr(struct ifnet *ifp, struct mbuf *m, const struct sockaddr *dst, struct route *ro, uint8_t *phdr, uint32_t *pflags, struct llentry **plle) { - struct infiniband_header *ih; +#if defined(INET) || defined(INET6) + struct infiniband_header *ih = (struct infiniband_header *)phdr; +#endif uint32_t lleflags = 0; int error = 0; if (plle) *plle = NULL; - ih = (struct infiniband_header *)phdr; switch (dst->sa_family) { #ifdef INET