1 /*********************************************************
2 * Copyright (C) 2007 VMware, Inc. All rights reserved.
4 * SPDX-License-Identifier: BSD-3-Clause
6 *********************************************************/
10 * Definitions for UPTv1
12 * Some of the defs are duplicated in vmkapi_net_upt.h, because
13 * vmkapi_net_upt.h cannot distribute with OSS yet and vmkapi headers can
14 * only include vmkapi headers. Make sure they are kept in sync!
20 #define UPT1_MAX_TX_QUEUES 64
21 #define UPT1_MAX_RX_QUEUES 64
23 #define UPT1_MAX_INTRS (UPT1_MAX_TX_QUEUES + UPT1_MAX_RX_QUEUES)
26 #include "vmware_pack_begin.h"
28 uint64 TSOPktsTxOK; /* TSO pkts post-segmentation */
31 uint64 ucastBytesTxOK;
33 uint64 mcastBytesTxOK;
35 uint64 bcastBytesTxOK;
39 #include "vmware_pack_end.h"
43 #include "vmware_pack_begin.h"
45 uint64 LROPktsRxOK; /* LRO pkts */
46 uint64 LROBytesRxOK; /* bytes from LRO pkts */
47 /* the following counters are for pkts from the wire, i.e., pre-LRO */
49 uint64 ucastBytesRxOK;
51 uint64 mcastBytesRxOK;
53 uint64 bcastBytesRxOK;
54 uint64 pktsRxOutOfBuf;
57 #include "vmware_pack_end.h"
60 /* interrupt moderation level */
61 #define UPT1_IML_NONE 0 /* no interrupt moderation */
62 #define UPT1_IML_HIGHEST 7 /* least intr generated */
63 #define UPT1_IML_ADAPTIVE 8 /* adpative intr moderation */
65 /* values for UPT1_RSSConf.hashFunc */
66 #define UPT1_RSS_HASH_TYPE_NONE 0x0
67 #define UPT1_RSS_HASH_TYPE_IPV4 0x01
68 #define UPT1_RSS_HASH_TYPE_TCP_IPV4 0x02
69 #define UPT1_RSS_HASH_TYPE_IPV6 0x04
70 #define UPT1_RSS_HASH_TYPE_TCP_IPV6 0x08
72 #define UPT1_RSS_HASH_FUNC_NONE 0x0
73 #define UPT1_RSS_HASH_FUNC_TOEPLITZ 0x01
75 #define UPT1_RSS_MAX_KEY_SIZE 40
76 #define UPT1_RSS_MAX_IND_TABLE_SIZE 128
79 #include "vmware_pack_begin.h"
85 uint8 hashKey[UPT1_RSS_MAX_KEY_SIZE];
86 uint8 indTable[UPT1_RSS_MAX_IND_TABLE_SIZE];
88 #include "vmware_pack_end.h"
92 #define UPT1_F_RXCSUM 0x0001 /* rx csum verification */
93 #define UPT1_F_RSS 0x0002
94 #define UPT1_F_RXVLAN 0x0004 /* VLAN tag stripping */
95 #define UPT1_F_LRO 0x0008