linux/drivers/net/ethernet/cisco/enic/vnic_nic.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright 2008-2010 Cisco Systems, Inc.  All rights reserved.
 * Copyright 2007 Nuova Systems, Inc.  All rights reserved.
 */

#ifndef _VNIC_NIC_H_
#define _VNIC_NIC_H_

#define NIC_CFG_RSS_DEFAULT_CPU_MASK_FIELD
#define NIC_CFG_RSS_DEFAULT_CPU_SHIFT
#define NIC_CFG_RSS_HASH_TYPE
#define NIC_CFG_RSS_HASH_TYPE_MASK_FIELD
#define NIC_CFG_RSS_HASH_TYPE_SHIFT
#define NIC_CFG_RSS_HASH_BITS
#define NIC_CFG_RSS_HASH_BITS_MASK_FIELD
#define NIC_CFG_RSS_HASH_BITS_SHIFT
#define NIC_CFG_RSS_BASE_CPU
#define NIC_CFG_RSS_BASE_CPU_MASK_FIELD
#define NIC_CFG_RSS_BASE_CPU_SHIFT
#define NIC_CFG_RSS_ENABLE
#define NIC_CFG_RSS_ENABLE_MASK_FIELD
#define NIC_CFG_RSS_ENABLE_SHIFT
#define NIC_CFG_TSO_IPID_SPLIT_EN
#define NIC_CFG_TSO_IPID_SPLIT_EN_MASK_FIELD
#define NIC_CFG_TSO_IPID_SPLIT_EN_SHIFT
#define NIC_CFG_IG_VLAN_STRIP_EN
#define NIC_CFG_IG_VLAN_STRIP_EN_MASK_FIELD
#define NIC_CFG_IG_VLAN_STRIP_EN_SHIFT

#define NIC_CFG_RSS_HASH_TYPE_UDP_IPV4
#define NIC_CFG_RSS_HASH_TYPE_IPV4
#define NIC_CFG_RSS_HASH_TYPE_TCP_IPV4
#define NIC_CFG_RSS_HASH_TYPE_IPV6
#define NIC_CFG_RSS_HASH_TYPE_TCP_IPV6
#define NIC_CFG_RSS_HASH_TYPE_IPV6_EX
#define NIC_CFG_RSS_HASH_TYPE_TCP_IPV6_EX
#define NIC_CFG_RSS_HASH_TYPE_UDP_IPV6

static inline void vnic_set_nic_cfg(u32 *nic_cfg,
	u8 rss_default_cpu, u8 rss_hash_type,
	u8 rss_hash_bits, u8 rss_base_cpu,
	u8 rss_enable, u8 tso_ipid_split_en,
	u8 ig_vlan_strip_en)
{}

#endif /* _VNIC_NIC_H_ */