Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
en_port.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2007 Mellanox Technologies. All rights reserved.
3  *
4  * This software is available to you under a choice of one of two
5  * licenses. You may choose to be licensed under the terms of the GNU
6  * General Public License (GPL) Version 2, available from the file
7  * COPYING in the main directory of this source tree, or the
8  * OpenIB.org BSD license below:
9  *
10  * Redistribution and use in source and binary forms, with or
11  * without modification, are permitted provided that the following
12  * conditions are met:
13  *
14  * - Redistributions of source code must retain the above
15  * copyright notice, this list of conditions and the following
16  * disclaimer.
17  *
18  * - Redistributions in binary form must reproduce the above
19  * copyright notice, this list of conditions and the following
20  * disclaimer in the documentation and/or other materials
21  * provided with the distribution.
22  *
23  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
27  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
28  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
29  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30  * SOFTWARE.
31  *
32  */
33 
34 #ifndef _MLX4_EN_PORT_H_
35 #define _MLX4_EN_PORT_H_
36 
37 
38 #define SET_PORT_GEN_ALL_VALID 0x7
39 #define SET_PORT_PROMISC_SHIFT 31
40 #define SET_PORT_MC_PROMISC_SHIFT 30
41 
42 #define MLX4_EN_NUM_TC 8
43 
44 #define VLAN_FLTR_SIZE 128
47 };
48 
49 
50 enum {
54 };
55 
56 enum {
62 };
63 
66 #define MLX4_EN_LINK_UP_MASK 0x80
71 #define MLX4_EN_SPEED_MASK 0x43
75 };
76 
77 
79  /* Received frames with a length of 64 octets */
89  /* Received frames with a length of 127 octets */
99  /* Received frames with a length of 255 octets */
109  /* Received frames with a length of 511 octets */
119  /* Received frames with a length of 1023 octets */
129  /* Received frames with a length of 1518 octets */
139  /* Received frames with a length of 1522 octets */
149  /* Received frames with a length of 1548 octets */
159  /* Received frames with a length of 1548 < octets < MTU */
169  /* Received frames with a length of MTU< octets and good CRC */
179  /* Received broadcast frames with good CRC */
189  /* Received multicast frames with good CRC */
199  /* Received unicast not short or GIANT frames with good CRC */
209 
210  /* Count of total octets of received frames, includes framing characters */
212  /* Count of total octets of received frames, not including framing
213  characters */
215  /* Count of Total number of octets received
216  (only for frames without errors) */
218 
222 
226 
230 
234 
238 
242 
246 
250 
251  /* Count of Total received frames including bad frames */
253  /* Count of Total number of received frames with 802.1Q encapsulation */
256 
260 
264 
268 
272 
276 
280 
284 
288 
289  /* Total number of Successfully Received Control Frames */
294  /* Count of received frames with a length/type field value between 46
295  (42 for VLANtagged frames) and 1500 (also 1500 for VLAN-tagged frames),
296  inclusive */
298  /* Count of received frames with length/type field between 1501 and 1535
299  decimal, inclusive */
301  /* Count of received frames that are longer than max allowed size for
302  802.3 frames (1518/1522) */
304  /* Count frames received with PCS error */
306 
307  /* Transmit frames with a length of 64 octets */
318  /* Transmit frames with a length of 65 to 127 octets. */
329  /* Transmit frames with a length of 128 to 255 octets */
340  /* Transmit frames with a length of 256 to 511 octets */
351  /* Transmit frames with a length of 512 to 1023 octets */
362  /* Transmit frames with a length of 1024 to 1518 octets */
373  /* Counts transmit frames with a length of 1519 to 1522 bytes */
384  /* Transmit frames with a length of 1523 to 1548 octets */
395  /* Counts transmit frames with a length of 1549 to MTU bytes */
406  /* Transmit frames with a length greater than MTU octets and a good CRC. */
417  /* Transmit broadcast frames with a good CRC */
428  /* Transmit multicast frames with a good CRC */
439  /* Transmit good frames that are neither broadcast nor multicast */
450 
451  /* total octets of transmitted frames, including framing characters */
453  /* total octets of transmitted frames, not including framing characters */
455  /* ifOutOctets */
457 
461 
465 
469 
473 
477 
481 
485 
489 
493 
494  /* Total frames transmitted with a good CRC that are not aborted */
496  /* Total number of frames transmitted with 802.1Q encapsulation */
499 
503 
507 
511 
515 
519 
523 
527 
531 
535 
536  /* Received frames with a length greater than MTU octets and a bad CRC */
538  /* Received frames with a bad CRC that are not runts, jabbers,
539  or alignment errors */
541  /* Received frames with SFD with a length of less than 64 octets and a
542  bad CRC */
544  /* Received frames with a length less than 64 octets and a good CRC */
546  /* Total Number of Received Packets Dropped */
548  /* Drop due to overflow */
550  /* Drop due to overflow */
552  /* Total of good frames. Does not include frames received with
553  frame-too-long, FCS, or length errors */
555  /* Total dropped Xmited packets */
557 };
558 
559 
560 #endif