-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '40GbE' of git://git.kernel.org/pub/scm/linux/kernel/git…
…/tnguy/next-queue Tony Nguyen says: ==================== i40e: House-keeping and clean-up Ivan Vecera says: The series makes some house-keeping tasks on i40e driver: Patch 1: Removes unnecessary back pointer from i40e_hw Patch 2: Moves I40E_MASK macro to i40e_register.h where is used Patch 3: Refactors I40E_MDIO_CLAUSE* to use the common macro Patch 4: Add header dependencies to <linux/avf/virtchnl.h> Patch 5: Simplifies memory alloction functions Patch 6: Moves mem alloc structures to i40e_alloc.h Patch 7: Splits i40e_osdep.h to i40e_debug.h and i40e_io.h Patch 8: Removes circular header deps, fixes and cleans headers Patch 9: Moves DDP specific macros and structs to i40e_ddp.c * '40GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue: i40e: Move DDP specific macros and structures to i40e_ddp.c i40e: Remove circular header dependencies and fix headers i40e: Split i40e_osdep.h i40e: Move memory allocation structures to i40e_alloc.h i40e: Simplify memory allocation functions virtchnl: Add header dependencies i40e: Refactor I40E_MDIO_CLAUSE* macros i40e: Move I40E_MASK macro to i40e_register.h i40e: Remove back pointer from i40e_hw structure ==================== Link: https://lore.kernel.org/r/20231005162850.3218594-1-anthony.l.nguyen@intel.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
- Loading branch information
Showing
34 changed files
with
231 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 */ | ||
/* Copyright(c) 2023 Intel Corporation. */ | ||
|
||
#ifndef _I40E_DEBUG_H_ | ||
#define _I40E_DEBUG_H_ | ||
|
||
#include <linux/dev_printk.h> | ||
|
||
/* debug masks - set these bits in hw->debug_mask to control output */ | ||
enum i40e_debug_mask { | ||
I40E_DEBUG_INIT = 0x00000001, | ||
I40E_DEBUG_RELEASE = 0x00000002, | ||
|
||
I40E_DEBUG_LINK = 0x00000010, | ||
I40E_DEBUG_PHY = 0x00000020, | ||
I40E_DEBUG_HMC = 0x00000040, | ||
I40E_DEBUG_NVM = 0x00000080, | ||
I40E_DEBUG_LAN = 0x00000100, | ||
I40E_DEBUG_FLOW = 0x00000200, | ||
I40E_DEBUG_DCB = 0x00000400, | ||
I40E_DEBUG_DIAG = 0x00000800, | ||
I40E_DEBUG_FD = 0x00001000, | ||
I40E_DEBUG_PACKAGE = 0x00002000, | ||
I40E_DEBUG_IWARP = 0x00F00000, | ||
I40E_DEBUG_AQ_MESSAGE = 0x01000000, | ||
I40E_DEBUG_AQ_DESCRIPTOR = 0x02000000, | ||
I40E_DEBUG_AQ_DESC_BUFFER = 0x04000000, | ||
I40E_DEBUG_AQ_COMMAND = 0x06000000, | ||
I40E_DEBUG_AQ = 0x0F000000, | ||
|
||
I40E_DEBUG_USER = 0xF0000000, | ||
|
||
I40E_DEBUG_ALL = 0xFFFFFFFF | ||
}; | ||
|
||
struct i40e_hw; | ||
struct device *i40e_hw_to_dev(struct i40e_hw *hw); | ||
|
||
#define hw_dbg(hw, S, A...) dev_dbg(i40e_hw_to_dev(hw), S, ##A) | ||
|
||
#define i40e_debug(h, m, s, ...) \ | ||
do { \ | ||
if (((m) & (h)->debug_mask)) \ | ||
dev_info(i40e_hw_to_dev(hw), s, ##__VA_ARGS__); \ | ||
} while (0) | ||
|
||
#endif /* _I40E_DEBUG_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.