git: f4f5b965273e - stable/13 - ixgbe: remove circular dependency in ixgbe_mbx.h

From: Kevin Bowling <kbowling_at_FreeBSD.org>
Date: Fri, 27 Sep 2024 03:41:41 UTC
The branch stable/13 has been updated by kbowling:

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

commit f4f5b965273e1115479bdfde90d4ae918e874a3b
Author:     Barbara Skobiej <barbara.skobiej@intel.com>
AuthorDate: 2024-09-20 03:22:35 +0000
Commit:     Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2024-09-27 03:40:06 +0000

    ixgbe: remove circular dependency in ixgbe_mbx.h
    
    DPDK commit message
    
    net/ixgbe/base: remove circular header dependency
    Including one header file in second header file should be avoided, so
    fix it by forward declaring the struct instead.
    
    Signed-off-by: Barbara Skobiej <barbara.skobiej@intel.com>
    
    Obtained from:  DPDK (0bc2af5)
    
    (cherry picked from commit 3167854b9d2188c4039239f741870e044b7507ac)
---
 sys/dev/ixgbe/ixgbe_mbx.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/ixgbe/ixgbe_mbx.h b/sys/dev/ixgbe/ixgbe_mbx.h
index 7a982ce89f93..3a9bd34a137f 100644
--- a/sys/dev/ixgbe/ixgbe_mbx.h
+++ b/sys/dev/ixgbe/ixgbe_mbx.h
@@ -35,7 +35,7 @@
 #ifndef _IXGBE_MBX_H_
 #define _IXGBE_MBX_H_
 
-#include "ixgbe_type.h"
+struct ixgbe_hw;
 
 struct ixgbe_mbx_operations {
 	void (*init_params)(struct ixgbe_hw *hw);