Print this page
NEX-20178 Heavy read load using 10G i40e causes network disconnect
MFV illumos-joyent@83a8d0d616db36010b59cc850d1926c0f6a30de1
OS-7457 i40e Tx freezes on zero descriptors
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Rob Johnston <rob.johnston@joyent.com>
Approved by: Robert Mustacchi <rm@joyent.com>
MFV illumos-joyent@0d3f2b61dcfb18edace4fd257054f6fdbe07c99c
OS-7492 i40e Tx freeze when b_cont chain exceeds 8 descriptors
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Rob Johnston <rob.johnston@joyent.com>
Approved by: Robert Mustacchi <rm@joyent.com>
MFV illumos-joyent@b4bede175d4c50ac1b36078a677b69388f6fb59f
OS-7577 initialize FC for i40e
Reviewed by: Robert Mustacchi <rm@joyent.com>
Approved by: Rob Johnston <rob.johnston@joyent.com>
MFV illumos-joyent@83a8d0d616db36010b59cc850d1926c0f6a30de1
OS-7457 i40e Tx freezes on zero descriptors
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Rob Johnston <rob.johnston@joyent.com>
Approved by: Robert Mustacchi <rm@joyent.com>
MFV: illumos-joyent@61dc3dec4f82a3e13e94609a0a83d5f66c64e760
OS-6846 want i40e multi-group support
OS-7372 i40e_alloc_ring_mem() unwinds when it shouldn't
Reviewed by: Robert Mustacchi <rm@joyent.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Ryan Zezeski <rpz@joyent.com>
MFV: illumos-joyent@757454db6669c1186f60bc625510c1b67217aae6
OS-7082 i40e: blown assert in i40e_tx_cleanup_ring()
OS-7086 i40e: add mdb dcmd to dump info on tx descriptor rings
OS-7101 i40e: add kstat to track TX DMA bind failures
Reviewed by: Ryan Zezeski <rpz@joyent.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Approved by: Patrick Mooney <patrick.mooney@joyent.com>
Author: Rob Johnston <rob.johnston@joyent.com>
MFV: illumos-joyent@9e30beee2f0c127bf41868db46257124206e28d6
OS-5225 Want Fortville TSO support
Reviewed by: Ryan Zezeski <rpz@joyent.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Approved by: Patrick Mooney <patrick.mooney@joyent.com>
Author: Rob Johnston <rob.johnston@joyent.com>
NEX-13226 xvv710 25Gb NIC panics system under load
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
NEX-7822 40Gb Intel XL710 NIC performance data
Reviewed by: Steve Peng <steve.peng@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/i40e/i40e_sw.h
          +++ new/usr/src/uts/common/io/i40e/i40e_sw.h
↓ open down ↓ 3 lines elided ↑ open up ↑
   4    4   * You may only use this file in accordance with the terms of version
   5    5   * 1.0 of the CDDL.
   6    6   *
   7    7   * A full copy of the text of the CDDL should have accompanied this
   8    8   * source.  A copy of the CDDL is also available via the Internet at
   9    9   * http://www.illumos.org/license/CDDL.
  10   10   */
  11   11  
  12   12  /*
  13   13   * Copyright 2015 OmniTI Computer Consulting, Inc. All rights reserved.
  14      - * Copyright (c) 2017, Joyent, Inc.
       14 + * Copyright 2019 Joyent, Inc.
  15   15   * Copyright 2017 Tegile Systems, Inc.  All rights reserved.
  16   16   */
  17   17  
  18   18  /*
  19   19   * Please see i40e_main.c for an introduction to the device driver, its layout,
  20   20   * and more.
  21   21   */
  22   22  
  23   23  #ifndef _I40E_SW_H
  24   24  #define _I40E_SW_H
↓ open down ↓ 120 lines elided ↑ open up ↑
 145  145   * Indexes into the three ITR registers that we have.
 146  146   */
 147  147  typedef enum i40e_itr_index {
 148  148          I40E_ITR_INDEX_RX       = 0x0,
 149  149          I40E_ITR_INDEX_TX       = 0x1,
 150  150          I40E_ITR_INDEX_OTHER    = 0x2,
 151  151          I40E_ITR_INDEX_NONE     = 0x3
 152  152  } i40e_itr_index_t;
 153  153  
 154  154  /*
 155      - * Table 1-5 of the PRM notes that LSO supports up to 256 KB.
      155 + * The hardware claims to support LSO up to 256 KB, but due to the limitations
      156 + * imposed by the IP header for non-jumbo frames, we cap it at 64 KB.
 156  157   */
 157      -#define I40E_LSO_MAXLEN (256 * 1024)
      158 +#define I40E_LSO_MAXLEN (64 * 1024)
 158  159  
 159  160  #define I40E_CYCLIC_PERIOD NANOSEC      /* 1 second */
 160  161  #define I40E_DRAIN_RX_WAIT      (500 * MILLISEC)        /* In us */
 161  162  
 162  163  /*
 163  164   * All the other queue types for are defined by the common code. However, this
 164  165   * is the constant to indicate that it's terminated.
 165  166   */
 166  167  #define I40E_QUEUE_TYPE_EOL     0x7FF
 167  168  
 168  169  /*
 169  170   * See the comments in i40e_transceiver.c as to the purpose of this value and
 170  171   * how it's used to ensure that the IP header is eventually aligned when it's
 171  172   * received by the OS.
 172  173   */
 173  174  #define I40E_BUF_IPHDR_ALIGNMENT        2
 174  175  
 175  176  /*
 176      - * The XL710 controller has a limit of eight buffers being allowed to be used
 177      - * for the transmission of a single frame. This is defined in 8.4.1 - Transmit
      177 + * The XL710 controller has a total of eight buffers available for the
      178 + * transmission of any single frame. This is defined in 8.4.1 - Transmit
 178  179   * Packet in System Memory.
 179  180   */
 180  181  #define I40E_TX_MAX_COOKIE      8
 181  182  
 182  183  /*
      184 + * An LSO frame can be as large as 64KB, so we allow a DMA bind to span more
      185 + * cookies than a non-LSO frame.  The key here to is to select a value such
      186 + * that once the HW has chunked up the LSO frame into MSS-sized segments that no
      187 + * single segment spans more than 8 cookies (see comments for
      188 + * I40E_TX_MAX_COOKIE)
      189 + */
      190 +#define I40E_TX_LSO_MAX_COOKIE  32
      191 +
      192 +/*
 183  193   * Sizing to determine the amount of available descriptors at which we'll
 184  194   * consider ourselves blocked. Also, when we have these available, we'll then
 185  195   * consider ourselves available to transmit to MAC again. Strictly speaking, the
 186  196   * MAX is based on the ring size. The default sizing is based on ixgbe.
 187  197   */
 188  198  #define I40E_MIN_TX_BLOCK_THRESH        I40E_TX_MAX_COOKIE
 189  199  #define I40E_DEF_TX_BLOCK_THRESH        I40E_MIN_TX_BLOCK_THRESH
 190  200  
 191  201  /*
 192  202   * Sizing for DMA thresholds. These are used to indicate whether or not we
↓ open down ↓ 3 lines elided ↑ open up ↑
 196  206   */
 197  207  #define I40E_MIN_RX_DMA_THRESH          0
 198  208  #define I40E_DEF_RX_DMA_THRESH          256
 199  209  #define I40E_MAX_RX_DMA_THRESH          INT32_MAX
 200  210  
 201  211  #define I40E_MIN_TX_DMA_THRESH          0
 202  212  #define I40E_DEF_TX_DMA_THRESH          256
 203  213  #define I40E_MAX_TX_DMA_THRESH          INT32_MAX
 204  214  
 205  215  /*
      216 + * The max size of each individual tx buffer is 16KB - 1.
      217 + * See table 8-17
      218 + */
      219 +#define I40E_MAX_TX_BUFSZ               0x0000000000003FFFull
      220 +
      221 +/*
 206  222   * Resource sizing counts. There are various aspects of hardware where we may
 207  223   * have some variable number of elements that we need to handle. Such as the
 208  224   * hardware capabilities and switch capacities. We cannot know a priori how many
 209  225   * elements to do, so instead we take a starting guess and then will grow it up
 210  226   * to an upper bound on a number of elements, to limit memory consumption in
 211  227   * case of a hardware bug.
 212  228   */
 213  229  #define I40E_HW_CAP_DEFAULT     40
 214  230  #define I40E_SWITCH_CAP_DEFAULT 25
 215  231  
↓ open down ↓ 17 lines elided ↑ open up ↑
 233  249  #define I40E_HMC_TX_CTX_UNIT            128
 234  250  #define I40E_HMC_TX_NEW_CONTEXT         1
 235  251  #define I40E_HMC_TX_FC_DISABLE          0
 236  252  #define I40E_HMC_TX_TS_DISABLE          0
 237  253  #define I40E_HMC_TX_FD_DISABLE          0
 238  254  #define I40E_HMC_TX_ALT_VLAN_DISABLE    0
 239  255  #define I40E_HMC_TX_WB_ENABLE           1
 240  256  #define I40E_HMC_TX_TPH_DISABLE         0
 241  257  
 242  258  /*
 243      - * Whenever we establish and create a VSI, we need to assign some number of
 244      - * queues that it's allowed to access from the PF. Because we only have a single
 245      - * VSI per PF at this time, we assign it all the queues.
 246      - *
 247      - * Many of the devices support what's called Data-center Bridging. Which is a
 248      - * feature that we don't have much use of at this time. However, we still need
 249      - * to fill in this information. We follow the guidance of the note in Table 7-80
 250      - * which talks about bytes 62-77. It says that if we don't want to assign
 251      - * anything to traffic classes, we should set the field to zero. Effectively
 252      - * this means that everything in the system is assigned to traffic class zero.
 253      - */
 254      -#define I40E_ASSIGN_ALL_QUEUES          0
 255      -#define I40E_TRAFFIC_CLASS_NO_QUEUES    0
 256      -
 257      -/*
 258  259   * This defines the error mask that we care about from rx descriptors. Currently
 259  260   * we're only concerned with the general errors and oversize errors.
 260  261   */
 261  262  #define I40E_RX_ERR_BITS        ((1 << I40E_RX_DESC_ERROR_RXE_SHIFT) | \
 262  263          (1 << I40E_RX_DESC_ERROR_OVERSIZE_SHIFT))
 263  264  
 264  265  /*
 265  266   * Property sizing macros for firmware versions, etc. They need to be large
 266  267   * enough to hold 32-bit quantities transformed to strings as %d.%d or %x.
 267  268   */
 268  269  #define I40E_DDI_PROP_LEN       64
 269  270  
 270  271  /*
 271      - * We currently consolidate some overrides that we use in the code here. These
 272      - * will be gone in the fullness of time, but as we're bringing up the device,
 273      - * this is what we use.
      272 + * Place an artificial limit on the max number of groups. The X710
      273 + * series supports up to 384 VSIs to be partitioned across PFs as the
      274 + * driver sees fit. But until we support more interrupts this seems
      275 + * like a good place to start.
 274  276   */
 275      -#define I40E_GROUP_MAX          1
 276      -#define I40E_TRQPAIR_MAX        1
      277 +#define I40E_GROUP_MAX          32
 277  278  
 278  279  #define I40E_GROUP_NOMSIX       1
 279  280  #define I40E_TRQPAIR_NOMSIX     1
 280  281  
 281  282  /*
 282  283   * It seems reasonable to cast this to void because the only reason that we
 283  284   * should be getting a DDI_FAILURE is due to the fact that we specify addresses
 284  285   * out of range. Because we specify no offset or address, it shouldn't happen.
 285  286   */
 286  287  #ifdef  DEBUG
↓ open down ↓ 111 lines elided ↑ open up ↑
 398  399          mblk_t                  *rcb_mp;
 399  400          uint32_t                rcb_ref;
 400  401          i40e_dma_buffer_t       rcb_dma;
 401  402          frtn_t                  rcb_free_rtn;
 402  403          struct i40e_rx_data     *rcb_rxd;
 403  404  } i40e_rx_control_block_t;
 404  405  
 405  406  typedef enum {
 406  407          I40E_TX_NONE,
 407  408          I40E_TX_COPY,
 408      -        I40E_TX_DMA
      409 +        I40E_TX_DMA,
      410 +        I40E_TX_DESC,
 409  411  } i40e_tx_type_t;
 410  412  
 411  413  typedef struct i40e_tx_desc i40e_tx_desc_t;
      414 +typedef struct i40e_tx_context_desc i40e_tx_context_desc_t;
 412  415  typedef union i40e_32byte_rx_desc i40e_rx_desc_t;
 413  416  
      417 +struct i40e_dma_bind_info {
      418 +        caddr_t dbi_paddr;
      419 +        size_t dbi_len;
      420 +};
      421 +
 414  422  typedef struct i40e_tx_control_block {
 415  423          struct i40e_tx_control_block    *tcb_next;
 416  424          mblk_t                          *tcb_mp;
 417  425          i40e_tx_type_t                  tcb_type;
 418  426          ddi_dma_handle_t                tcb_dma_handle;
      427 +        ddi_dma_handle_t                tcb_lso_dma_handle;
 419  428          i40e_dma_buffer_t               tcb_dma;
      429 +        struct i40e_dma_bind_info       *tcb_bind_info;
      430 +        uint_t                          tcb_bind_ncookies;
      431 +        boolean_t                       tcb_used_lso;
 420  432  } i40e_tx_control_block_t;
 421  433  
 422  434  /*
 423  435   * Receive ring data (used below).
 424  436   */
 425  437  typedef struct i40e_rx_data {
 426  438          struct i40e     *rxd_i40e;
 427  439  
 428  440          /*
 429  441           * RX descriptor ring definitions
↓ open down ↓ 80 lines elided ↑ open up ↑
 510  522  } i40e_rxq_stat_t;
 511  523  
 512  524  /*
 513  525   * Collection of TX Statistics on a given queue
 514  526   */
 515  527  typedef struct i40e_txq_stat {
 516  528          kstat_named_t   itxs_bytes;             /* Bytes out on queue */
 517  529          kstat_named_t   itxs_packets;           /* Packets out on queue */
 518  530          kstat_named_t   itxs_descriptors;       /* Descriptors issued */
 519  531          kstat_named_t   itxs_recycled;          /* Descriptors reclaimed */
      532 +        kstat_named_t   itxs_force_copy;        /* non-TSO force copy */
      533 +        kstat_named_t   itxs_tso_force_copy;    /* TSO force copy */
 520  534          /*
 521  535           * Various failure conditions.
 522  536           */
 523  537          kstat_named_t   itxs_hck_meoifail;      /* ether offload failures */
 524  538          kstat_named_t   itxs_hck_nol2info;      /* Missing l2 info */
 525  539          kstat_named_t   itxs_hck_nol3info;      /* Missing l3 info */
 526  540          kstat_named_t   itxs_hck_nol4info;      /* Missing l4 info */
 527  541          kstat_named_t   itxs_hck_badl3;         /* Not IPv4/IPv6 */
 528  542          kstat_named_t   itxs_hck_badl4;         /* Bad L4 Paylaod */
      543 +        kstat_named_t   itxs_lso_nohck;         /* Missing offloads for LSO */
      544 +        kstat_named_t   itxs_bind_fails;        /* DMA bind failures */
 529  545  
 530  546          kstat_named_t   itxs_err_notcb;         /* No tcb's available */
 531  547          kstat_named_t   itxs_err_nodescs;       /* No tcb's available */
 532  548          kstat_named_t   itxs_err_context;       /* Total context failures */
 533  549  
 534  550          kstat_named_t   itxs_num_unblocked;     /* Number of MAC unblocks */
 535  551  } i40e_txq_stat_t;
 536  552  
 537  553  /*
 538  554   * An instance of an XL710 transmit/receive queue pair. This currently
↓ open down ↓ 215 lines elided ↑ open up ↑
 754  770          uint_t  ifr_ntx_queue;
 755  771          uint_t  ifr_trx_queue_used;
 756  772          uint_t  ifr_nvsis;
 757  773          uint_t  ifr_nvsis_used;
 758  774          uint_t  ifr_nmacfilt;
 759  775          uint_t  ifr_nmacfilt_used;
 760  776          uint_t  ifr_nmcastfilt;
 761  777          uint_t  ifr_nmcastfilt_used;
 762  778  } i40e_func_rsrc_t;
 763  779  
      780 +typedef struct i40e_vsi {
      781 +        uint16_t                iv_seid;
      782 +        uint16_t                iv_number;
      783 +        kstat_t                 *iv_kstats;
      784 +        i40e_vsi_stats_t        iv_stats;
      785 +        uint16_t                iv_stats_id;
      786 +} i40e_vsi_t;
      787 +
 764  788  /*
      789 + * While irg_index and irg_grp_hdl aren't used anywhere, they are
      790 + * still useful for debugging.
      791 + */
      792 +typedef struct i40e_rx_group {
      793 +        uint32_t                irg_index;    /* index in i40e_rx_groups[] */
      794 +        uint16_t                irg_vsi_seid; /* SEID of VSI for this group */
      795 +        mac_group_handle_t      irg_grp_hdl;  /* handle to mac_group_t */
      796 +        struct i40e             *irg_i40e;    /* ref to i40e_t */
      797 +} i40e_rx_group_t;
      798 +
      799 +/*
 765  800   * Main i40e per-instance state.
 766  801   */
 767  802  typedef struct i40e {
 768  803          list_node_t     i40e_glink;             /* Global list link */
 769  804          list_node_t     i40e_dlink;             /* Device list link */
 770  805          kmutex_t        i40e_general_lock;      /* General device lock */
 771  806  
 772  807          /*
 773  808           * General Data and management
 774  809           */
↓ open down ↓ 7 lines elided ↑ open up ↑
 782  817  
 783  818          /*
 784  819           * Pointers to common code data structures and memory for the common
 785  820           * code.
 786  821           */
 787  822          struct i40e_hw                          i40e_hw_space;
 788  823          struct i40e_osdep                       i40e_osdep_space;
 789  824          struct i40e_aq_get_phy_abilities_resp   i40e_phy;
 790  825          void                                    *i40e_aqbuf;
 791  826  
      827 +#define I40E_DEF_VSI_IDX        0
      828 +#define I40E_DEF_VSI(i40e)      ((i40e)->i40e_vsis[I40E_DEF_VSI_IDX])
      829 +#define I40E_DEF_VSI_SEID(i40e) (I40E_DEF_VSI(i40e).iv_seid)
      830 +
 792  831          /*
 793  832           * Device state, switch information, and resources.
 794  833           */
 795      -        int                     i40e_vsi_id;
 796      -        uint16_t                i40e_vsi_num;
      834 +        i40e_vsi_t              i40e_vsis[I40E_GROUP_MAX];
      835 +        uint16_t                i40e_mac_seid;   /* SEID of physical MAC */
      836 +        uint16_t                i40e_veb_seid;   /* switch atop MAC (SEID) */
      837 +        uint16_t                i40e_vsi_avail;  /* VSIs avail to this PF */
      838 +        uint16_t                i40e_vsi_used;   /* VSIs used by this PF */
 797  839          struct i40e_device      *i40e_device;
 798  840          i40e_func_rsrc_t        i40e_resources;
 799  841          uint16_t                i40e_switch_rsrc_alloc;
 800  842          uint16_t                i40e_switch_rsrc_actual;
 801  843          i40e_switch_rsrc_t      *i40e_switch_rsrcs;
 802  844          i40e_uaddr_t            *i40e_uaddrs;
 803  845          i40e_maddr_t            *i40e_maddrs;
 804  846          int                     i40e_mcast_promisc_count;
 805  847          boolean_t               i40e_promisc_on;
 806  848          link_state_t            i40e_link_state;
 807  849          uint32_t                i40e_link_speed;        /* In Mbps */
 808  850          link_duplex_t           i40e_link_duplex;
 809  851          uint_t                  i40e_sdu;
 810  852          uint_t                  i40e_frame_max;
 811  853  
 812  854          /*
 813  855           * Transmit and receive information, tunables, and MAC info.
 814  856           */
 815  857          i40e_trqpair_t  *i40e_trqpairs;
 816  858          boolean_t       i40e_mr_enable;
 817      -        int             i40e_num_trqpairs;
      859 +        uint_t          i40e_num_trqpairs; /* total TRQPs (per PF) */
      860 +        uint_t          i40e_num_trqpairs_per_vsi; /* TRQPs per VSI */
 818  861          uint_t          i40e_other_itr;
 819  862  
 820      -        int             i40e_num_rx_groups;
      863 +        i40e_rx_group_t *i40e_rx_groups;
      864 +        uint_t          i40e_num_rx_groups;
 821  865          int             i40e_num_rx_descs;
 822      -        mac_group_handle_t i40e_rx_group_handle;
 823  866          uint32_t        i40e_rx_ring_size;
 824  867          uint32_t        i40e_rx_buf_size;
 825  868          boolean_t       i40e_rx_hcksum_enable;
 826  869          uint32_t        i40e_rx_dma_min;
 827  870          uint32_t        i40e_rx_limit_per_intr;
 828  871          uint_t          i40e_rx_itr;
 829  872  
 830  873          int             i40e_num_tx_descs;
 831  874          uint32_t        i40e_tx_ring_size;
 832  875          uint32_t        i40e_tx_buf_size;
 833  876          uint32_t        i40e_tx_block_thresh;
 834  877          boolean_t       i40e_tx_hcksum_enable;
      878 +        boolean_t       i40e_tx_lso_enable;
 835  879          uint32_t        i40e_tx_dma_min;
 836  880          uint_t          i40e_tx_itr;
 837  881  
 838  882          /*
 839  883           * Interrupt state
 840  884           */
 841  885          uint_t          i40e_intr_pri;
 842  886          uint_t          i40e_intr_force;
 843  887          uint_t          i40e_intr_type;
 844  888          int             i40e_intr_cap;
↓ open down ↓ 3 lines elided ↑ open up ↑
 848  892          size_t          i40e_intr_size;
 849  893          ddi_intr_handle_t *i40e_intr_handles;
 850  894          ddi_cb_handle_t i40e_callback_handle;
 851  895  
 852  896          /*
 853  897           * DMA attributes. See i40e_transceiver.c for why we have copies of them
 854  898           * in the i40e_t.
 855  899           */
 856  900          ddi_dma_attr_t          i40e_static_dma_attr;
 857  901          ddi_dma_attr_t          i40e_txbind_dma_attr;
      902 +        ddi_dma_attr_t          i40e_txbind_lso_dma_attr;
 858  903          ddi_device_acc_attr_t   i40e_desc_acc_attr;
 859  904          ddi_device_acc_attr_t   i40e_buf_acc_attr;
 860  905  
 861  906          /*
 862  907           * The following two fields are used to protect and keep track of
 863  908           * outstanding, loaned buffers to MAC. If we have these, we can't
 864  909           * detach as we have active DMA memory outstanding.
 865  910           */
 866  911          kmutex_t        i40e_rx_pending_lock;
 867  912          kcondvar_t      i40e_rx_pending_cv;
 868  913          uint32_t        i40e_rx_pending;
 869  914  
 870  915          /*
 871  916           * PF statistics and VSI statistics.
 872  917           */
 873  918          kmutex_t                i40e_stat_lock;
 874  919          kstat_t                 *i40e_pf_kstat;
 875      -        kstat_t                 *i40e_vsi_kstat;
 876  920          i40e_pf_stats_t         i40e_pf_stat;
 877      -        i40e_vsi_stats_t        i40e_vsi_stat;
 878      -        uint16_t                i40e_vsi_stat_id;
 879  921  
 880  922          /*
 881  923           * Misc. stats and counters that should maybe one day be kstats.
 882  924           */
 883  925          uint64_t        i40e_s_link_status_errs;
 884  926          uint32_t        i40e_s_link_status_lasterr;
 885  927  
 886  928          /*
 887  929           * LED information. Note this state is only modified in
 888  930           * i40e_gld_set_led() which is protected by MAC's serializer lock.
↓ open down ↓ 79 lines elided ↑ open up ↑
 968 1010   */
 969 1011  mblk_t *i40e_ring_tx(void *, mblk_t *);
 970 1012  extern void i40e_tx_recycle_ring(i40e_trqpair_t *);
 971 1013  extern void i40e_tx_cleanup_ring(i40e_trqpair_t *);
 972 1014  
 973 1015  /*
 974 1016   * Statistics functions.
 975 1017   */
 976 1018  extern boolean_t i40e_stats_init(i40e_t *);
 977 1019  extern void i40e_stats_fini(i40e_t *);
 978      -extern boolean_t i40e_stat_vsi_init(i40e_t *);
 979      -extern void i40e_stat_vsi_fini(i40e_t *);
     1020 +extern boolean_t i40e_stat_vsi_init(i40e_t *, uint_t);
     1021 +extern void i40e_stat_vsi_fini(i40e_t *, uint_t);
 980 1022  extern boolean_t i40e_stats_trqpair_init(i40e_trqpair_t *);
 981 1023  extern void i40e_stats_trqpair_fini(i40e_trqpair_t *);
 982 1024  extern int i40e_m_stat(void *, uint_t, uint64_t *);
 983 1025  extern int i40e_rx_ring_stat(mac_ring_driver_t, uint_t, uint64_t *);
 984 1026  extern int i40e_tx_ring_stat(mac_ring_driver_t, uint_t, uint64_t *);
 985 1027  
 986 1028  /*
 987 1029   * MAC/GLDv3 functions, and functions called by MAC/GLDv3 support code.
 988 1030   */
 989 1031  extern boolean_t i40e_register_mac(i40e_t *);
↓ open down ↓ 15 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX