From nobody Tue Feb 14 15:36:23 2023 X-Original-To: dev-commits-src-all@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 4PGQKg3pVJz3s5Bw; Tue, 14 Feb 2023 15:36:23 +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 4PGQKg3GlJz4LT7; Tue, 14 Feb 2023 15:36:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676388983; 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=hDKm9ZKT6ONqtv6QY32vSXhAGV2zDFFwXt401rq8mZM=; b=g4d18cwo9Q+g0IP26YbNHZ9uNUwJyyqLCc0QCd43CeDx4ZPDovHdUXwc9ApK6+fzoI0arK HYet6H0duQXuBms8zH0p3wN2ZHj3yTvbxWVBHlitAyFAz9IBnvr+6Anl+RZsOADgxGNo9P xFypeCa3n1W0vEZrNobZb9gfIk90cr7vNJRzAJCxWNGHb0FkIGa6Ajl3Huq9HAYtWhfrVw Zxnnw7bA+0EODbO21trxOKVK7Acw1+VVnvuwonE2YYRKTT1KutDedwA/uSLJb5QDZ86Khc k/q4ClkWsT/kFvBFFs17XdEdpddyKoE5Tx2D+KjI6k/XT2yYhIWaq/b0jDT6ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676388983; 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=hDKm9ZKT6ONqtv6QY32vSXhAGV2zDFFwXt401rq8mZM=; b=TAcODsEmiiMH+nOr2gX171gufwCijs5mbos5iEw8S17AWxQdAL+xFpbyQ1k+1m5b75klJC W/ZiYRaCTdj1QqqtI1QcCTZqbKjvBm+g9RxliBlF2uw15ZIj07afXXWwu2nNPkAekqq/wT daOgqcYBTNPNczRUa8cG7jN6VK4lAfIIobv8a9N79jwbursmXxj8xBfOx2E8dU03Amb69Z 0U4hlvZHzF3AZhWnLhdF07qETDyB1Ty5m3tZH9z3YvNbpZ/1mzhBKakmqoAJyk4QeOJXBE KTf5kbaLL5d2ieiP4h98Fw64DVrdglDv9O1nAFet+570M7wWhYvKxGfb9PK5Ew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676388983; a=rsa-sha256; cv=none; b=vEnAk0a8Dr+MCb/geU7W3uOcOMgctTTAQCOnTC7mWeSxMvW++vXhQAP6yMx1coD/7mdwuW vk4elaklf7y1A4eR9rQPzV2E095FKimq85x5lSrU3P2rGeKvxbQO4nQVwMLC2RLwDclw++ jvkCsdqMas/HQ6D2kwRe8PGCjvJWtTtV7K0ucrF5jMyQMyriD4DZL5N+SuXBUKak2GJHgn Kci19ObbEJvU4H8+tC4IK3zD030jnUXROUFL36YoQdVIuTWITUxilkqh9hLDfLhdM+C3mx 2lh6kYf025tfoIj7uZxmLGklLxG/RS1uaIJAPcIZAPAESWRdP7oxVxfKMIRbqg== 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 4PGQKg2LrDz148k; Tue, 14 Feb 2023 15:36:23 +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 31EFaNWc043820; Tue, 14 Feb 2023 15:36:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31EFaNe7043819; Tue, 14 Feb 2023 15:36:23 GMT (envelope-from git) Date: Tue, 14 Feb 2023 15:36:23 GMT Message-Id: <202302141536.31EFaNe7043819@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Justin Hibbits Subject: git: 68b47dcbe3de - main - Finish mechanical conversion of axgbe(4) to IfAPI. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhibbits X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 68b47dcbe3de6f307d5c3bbe5d637bb07e5c3bad Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhibbits: URL: https://cgit.FreeBSD.org/src/commit/?id=68b47dcbe3de6f307d5c3bbe5d637bb07e5c3bad commit 68b47dcbe3de6f307d5c3bbe5d637bb07e5c3bad Author: Justin Hibbits AuthorDate: 2023-02-07 18:40:06 +0000 Commit: Justin Hibbits CommitDate: 2023-02-14 15:21:20 +0000 Finish mechanical conversion of axgbe(4) to IfAPI. Sponsored by: Juniper Networks, Inc. --- sys/dev/axgbe/xgbe-dev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/axgbe/xgbe-dev.c b/sys/dev/axgbe/xgbe-dev.c index 5787db4f0441..2fd0927b89af 100644 --- a/sys/dev/axgbe/xgbe-dev.c +++ b/sys/dev/axgbe/xgbe-dev.c @@ -973,8 +973,8 @@ xgbe_config_rx_mode(struct xgbe_prv_data *pdata) { unsigned int pr_mode, am_mode; - pr_mode = ((pdata->netdev->if_flags & IFF_PPROMISC) != 0); - am_mode = ((pdata->netdev->if_flags & IFF_ALLMULTI) != 0); + pr_mode = ((if_getflags(pdata->netdev) & IFF_PPROMISC) != 0); + am_mode = ((if_getflags(pdata->netdev) & IFF_ALLMULTI) != 0); xgbe_set_promiscuous_mode(pdata, pr_mode); xgbe_set_all_multicast_mode(pdata, am_mode);