/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ /* Copyright (C) 2023 Corigine, Inc. */ #ifndef __NFP_NIC_H__ #define __NFP_NIC_H__ … #include <linux/netdevice.h> #ifdef CONFIG_DCB /* DCB feature definitions */ #define NFP_NET_MAX_DSCP … #define NFP_NET_MAX_TC … #define NFP_NET_MAX_PRIO … #define NFP_DCB_CFG_STRIDE … struct nfp_dcb { … }; int nfp_nic_dcb_init(struct nfp_net *nn); void nfp_nic_dcb_clean(struct nfp_net *nn); #else static inline int nfp_nic_dcb_init(struct nfp_net *nn) { return 0; } static inline void nfp_nic_dcb_clean(struct nfp_net *nn) {} #endif struct nfp_app_nic_private { … }; #endif