Print this page
4431 igb support for I354
4616 igb has uninitialized kstats

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/igb/igb_sw.h
          +++ new/usr/src/uts/common/io/igb/igb_sw.h
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright(c) 2007-2010 Intel Corporation. All rights reserved.
  24   24   */
  25   25  
  26   26  /*
  27   27   * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
       28 + * Copyright 2014 Pluribus Networks Inc. 
  28   29   */
  29   30  
  30   31  #ifndef _IGB_SW_H
  31   32  #define _IGB_SW_H
  32   33  
  33   34  #ifdef __cplusplus
  34   35  extern "C" {
  35   36  #endif
  36   37  
  37   38  #include <sys/types.h>
↓ open down ↓ 603 lines elided ↑ open up ↑
 641  642          uint32_t                mcast_count;
 642  643          uint32_t                mcast_alloc_count;
 643  644          uint32_t                mcast_max_num;
 644  645          struct ether_addr       *mcast_table;
 645  646  
 646  647          /*
 647  648           * Kstat definitions
 648  649           */
 649  650          kstat_t                 *igb_ks;
 650  651  
      652 +        /*
      653 +         * Backing store for MAC stats.  These are reported via GLDv3, instead of
      654 +         * via our private kstat structure.
      655 +         */
      656 +        uint64_t                stat_tor;       /* rbytes */
      657 +        uint64_t                stat_tpr;       /* rpackets */
      658 +        uint64_t                stat_tot;       /* obytes */
      659 +        uint64_t                stat_tpt;       /* opackets */
      660 +        uint64_t                stat_colc;      /* collisions */
      661 +        uint64_t                stat_mcc;       /* multi colls */
      662 +        uint64_t                stat_scc;       /* single colls */
      663 +        uint64_t                stat_ecol;      /* excessive colls */
      664 +        uint64_t                stat_latecol;   /* late colls */
      665 +        uint64_t                stat_bptc;      /* xmit bcast */
      666 +        uint64_t                stat_mptc;      /* xmit bcast */
      667 +        uint64_t                stat_bprc;      /* recv bcast */
      668 +        uint64_t                stat_mprc;      /* recv mcast */
      669 +        uint64_t                stat_rnbc;      /* recv nobuf */
      670 +        uint64_t                stat_roc;       /* recv toolong */
      671 +        uint64_t                stat_sec;       /* sqe errors */
      672 +        uint64_t                stat_dc;        /* defer */
      673 +        uint64_t                stat_algnerrc;  /* align errors */
      674 +        uint64_t                stat_crcerrs;   /* crc errors */
      675 +        uint64_t                stat_cexterr;   /* carrier extension errors */
      676 +        uint64_t                stat_ruc;       /* recv tooshort */
      677 +        uint64_t                stat_rjc;       /* recv jabber */
      678 +        uint64_t                stat_rxerrc;    /* recv errors */
      679 +
 651  680          uint32_t                param_en_1000fdx_cap:1,
 652  681                                  param_en_1000hdx_cap:1,
 653  682                                  param_en_100t4_cap:1,
 654  683                                  param_en_100fdx_cap:1,
 655  684                                  param_en_100hdx_cap:1,
 656  685                                  param_en_10fdx_cap:1,
 657  686                                  param_en_10hdx_cap:1,
 658  687                                  param_1000fdx_cap:1,
 659  688                                  param_1000hdx_cap:1,
 660  689                                  param_100t4_cap:1,
↓ open down ↓ 33 lines elided ↑ open up ↑
 694  723          /*
 695  724           * FMA capabilities
 696  725           */
 697  726          int                     fm_capabilities;
 698  727  
 699  728          ulong_t                 page_size;
 700  729  } igb_t;
 701  730  
 702  731  typedef struct igb_stat {
 703  732  
 704      -        kstat_named_t link_speed;       /* Link Speed */
 705  733          kstat_named_t reset_count;      /* Reset Count */
 706  734          kstat_named_t dout_sync;        /* DMA out of sync */
 707  735  #ifdef IGB_DEBUG
 708  736          kstat_named_t rx_frame_error;   /* Rx Error in Packet */
 709  737          kstat_named_t rx_cksum_error;   /* Rx Checksum Error */
 710  738          kstat_named_t rx_exceed_pkt;    /* Rx Exceed Max Pkt Count */
 711  739  
 712  740          kstat_named_t tx_overload;      /* Tx Desc Ring Overload */
 713  741          kstat_named_t tx_fail_no_tcb;   /* Tx Fail Freelist Empty */
 714  742          kstat_named_t tx_fail_no_tbd;   /* Tx Fail Desc Ring Empty */
↓ open down ↓ 10 lines elided ↑ open up ↑
 725  753          kstat_named_t prc511;   /* Packets Received - 256-511b */
 726  754          kstat_named_t prc1023;  /* Packets Received - 511-1023b */
 727  755          kstat_named_t prc1522;  /* Packets Received - 1024-1522b */
 728  756          kstat_named_t ptc64;    /* Packets Xmitted (64b) */
 729  757          kstat_named_t ptc127;   /* Packets Xmitted (64-127b) */
 730  758          kstat_named_t ptc255;   /* Packets Xmitted (128-255b) */
 731  759          kstat_named_t ptc511;   /* Packets Xmitted (255-511b) */
 732  760          kstat_named_t ptc1023;  /* Packets Xmitted (512-1023b) */
 733  761          kstat_named_t ptc1522;  /* Packets Xmitted (1024-1522b */
 734  762  #endif
 735      -        kstat_named_t crcerrs;  /* CRC Error Count */
 736  763          kstat_named_t symerrs;  /* Symbol Error Count */
 737  764          kstat_named_t mpc;      /* Missed Packet Count */
 738      -        kstat_named_t scc;      /* Single Collision Count */
 739      -        kstat_named_t ecol;     /* Excessive Collision Count */
 740      -        kstat_named_t mcc;      /* Multiple Collision Count */
 741      -        kstat_named_t latecol;  /* Late Collision Count */
 742      -        kstat_named_t colc;     /* Collision Count */
 743      -        kstat_named_t dc;       /* Defer Count */
 744      -        kstat_named_t sec;      /* Sequence Error Count */
 745  765          kstat_named_t rlec;     /* Receive Length Error Count */
 746  766          kstat_named_t xonrxc;   /* XON Received Count */
 747  767          kstat_named_t xontxc;   /* XON Xmitted Count */
 748  768          kstat_named_t xoffrxc;  /* XOFF Received Count */
 749  769          kstat_named_t xofftxc;  /* Xoff Xmitted Count */
 750  770          kstat_named_t fcruc;    /* Unknown Flow Conrol Packet Rcvd Count */
 751      -        kstat_named_t bprc;     /* Broadcasts Pkts Received Count */
 752      -        kstat_named_t mprc;     /* Multicast Pkts Received Count */
 753      -        kstat_named_t rnbc;     /* Receive No Buffers Count */
 754      -        kstat_named_t ruc;      /* Receive Undersize Count */
 755  771          kstat_named_t rfc;      /* Receive Frag Count */
 756      -        kstat_named_t roc;      /* Receive Oversize Count */
 757      -        kstat_named_t rjc;      /* Receive Jabber Count */
 758      -        kstat_named_t tor;      /* Total Octets Recvd Count */
 759      -        kstat_named_t tot;      /* Total Octets Xmted Count */
 760      -        kstat_named_t tpr;      /* Total Packets Received */
 761      -        kstat_named_t tpt;      /* Total Packets Xmitted */
 762      -        kstat_named_t mptc;     /* Multicast Packets Xmited Count */
 763      -        kstat_named_t bptc;     /* Broadcast Packets Xmited Count */
 764      -        kstat_named_t algnerrc; /* Alignment Error count */
 765      -        kstat_named_t rxerrc;   /* Rx Error Count */
 766  772          kstat_named_t tncrs;    /* Transmit with no CRS */
 767      -        kstat_named_t cexterr;  /* Carrier Extension Error count */
 768  773          kstat_named_t tsctc;    /* TCP seg contexts xmit count */
 769  774          kstat_named_t tsctfc;   /* TCP seg contexts xmit fail count */
 770  775  } igb_stat_t;
 771  776  
 772  777  /*
 773  778   * Function prototypes in e1000_osdep.c
 774  779   */
 775  780  void e1000_write_pci_cfg(struct e1000_hw *, uint32_t, uint16_t *);
 776  781  void e1000_read_pci_cfg(struct e1000_hw *, uint32_t, uint16_t *);
 777  782  int32_t e1000_read_pcie_cap_reg(struct e1000_hw *, uint32_t, uint16_t *);
↓ open down ↓ 97 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX