nvnet: Move NVNET_DEVICE macro up

This commit is contained in:
Matt Borgerson 2025-06-18 00:59:51 -07:00 committed by mborgerson
parent 92bc16f015
commit 62b8e789f4
1 changed files with 3 additions and 7 deletions

View File

@ -76,6 +76,9 @@ typedef struct NvNetState {
char *packet_dump_path;
} NvNetState;
#define NVNET_DEVICE(obj) \
OBJECT_CHECK(NvNetState, (obj), "nvnet")
#pragma pack(1)
struct RingDesc {
uint32_t packet_buffer;
@ -84,13 +87,6 @@ struct RingDesc {
};
#pragma pack()
/*******************************************************************************
* Helper Macros
******************************************************************************/
#define NVNET_DEVICE(obj) \
OBJECT_CHECK(NvNetState, (obj), "nvnet")
/*******************************************************************************
* Utility Functions
******************************************************************************/