Print this page
11493 aggr needs support for multiple pseudo rx groups
Portions contributed by: Dan McDonald <danmcd@joyent.com>
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/mdb/common/modules/mac/mac.c
          +++ new/usr/src/cmd/mdb/common/modules/mac/mac.c
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
       24 + * Copyright 2018 Joyent, Inc.
  24   25   */
  25   26  
  26   27  #include <sys/mdb_modapi.h>
  27   28  #include <sys/types.h>
  28   29  #include <inet/ip.h>
  29   30  #include <inet/ip6.h>
  30   31  
  31   32  #include <sys/mac.h>
  32   33  #include <sys/mac_provider.h>
  33   34  #include <sys/mac_client.h>
↓ open down ↓ 926 lines elided ↑ open up ↑
 960  961  static char *
 961  962  mac_ring_classify2str(mac_classify_type_t classify)
 962  963  {
 963  964          switch (classify) {
 964  965          case MAC_NO_CLASSIFIER:
 965  966                  return ("no");
 966  967          case MAC_SW_CLASSIFIER:
 967  968                  return ("sw");
 968  969          case MAC_HW_CLASSIFIER:
 969  970                  return ("hw");
      971 +        case MAC_PASSTHRU_CLASSIFIER:
      972 +                return ("pass");
 970  973          }
 971  974          return ("--");
 972  975  }
 973  976  
 974  977  static int
 975  978  mac_ring_dcmd(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv)
 976  979  {
 977  980          mac_ring_t              ring;
 978  981          mac_group_t             group;
 979  982          flow_entry_t            flent;
↓ open down ↓ 290 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX