git: 68b47dcbe3de - main - Finish mechanical conversion of axgbe(4) to IfAPI.

From: Justin Hibbits <jhibbits_at_FreeBSD.org>
Date: Tue, 14 Feb 2023 15:36:23 UTC
The branch main has been updated by jhibbits:

URL: https://cgit.FreeBSD.org/src/commit/?id=68b47dcbe3de6f307d5c3bbe5d637bb07e5c3bad

commit 68b47dcbe3de6f307d5c3bbe5d637bb07e5c3bad
Author:     Justin Hibbits <jhibbits@FreeBSD.org>
AuthorDate: 2023-02-07 18:40:06 +0000
Commit:     Justin Hibbits <jhibbits@FreeBSD.org>
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);