Print this page
10472 Limit number of multicast NCEs
Reviewed by: Cody Peter Mello <melloc@writev.io>
Reviewed by: Jason King <jason.king@joyent.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>


   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  */
  26 




  27 #ifndef _INET_IP_STACK_H
  28 #define _INET_IP_STACK_H
  29 
  30 #ifdef  __cplusplus
  31 extern "C" {
  32 #endif
  33 
  34 #include <sys/netstack.h>
  35 #include <netinet/igmp_var.h>
  36 #include <sys/modhash.h>
  37 
  38 #ifdef _KERNEL
  39 #include <sys/list.h>
  40 
  41 
  42 /*
  43  * IP statistics.
  44  */
  45 #define IP_STAT(ipst, x)        ((ipst)->ips_ip_statistics.x.value.ui64++)
  46 #define IP_STAT_UPDATE(ipst, x, n) \
  47                 ((ipst)->ips_ip_statistics.x.value.ui64 += (n))
  48 
  49 typedef struct ip_stat {
  50         kstat_named_t   ip_udp_fannorm;
  51         kstat_named_t   ip_udp_fanmb;
  52         kstat_named_t   ip_recv_pullup;
  53         kstat_named_t   ip_db_ref;
  54         kstat_named_t   ip_notaligned;
  55         kstat_named_t   ip_multimblk;
  56         kstat_named_t   ip_opt;
  57         kstat_named_t   ipsec_proto_ahesp;
  58         kstat_named_t   ip_conn_flputbq;
  59         kstat_named_t   ip_conn_walk_drain;
  60         kstat_named_t   ip_out_sw_cksum;
  61         kstat_named_t   ip_out_sw_cksum_bytes;
  62         kstat_named_t   ip_in_sw_cksum;
  63         kstat_named_t   ip_ire_reclaim_calls;
  64         kstat_named_t   ip_ire_reclaim_deleted;
  65         kstat_named_t   ip_nce_reclaim_calls;
  66         kstat_named_t   ip_nce_reclaim_deleted;



  67         kstat_named_t   ip_dce_reclaim_calls;
  68         kstat_named_t   ip_dce_reclaim_deleted;
  69         kstat_named_t   ip_tcp_in_full_hw_cksum_err;
  70         kstat_named_t   ip_tcp_in_part_hw_cksum_err;
  71         kstat_named_t   ip_tcp_in_sw_cksum_err;
  72         kstat_named_t   ip_udp_in_full_hw_cksum_err;
  73         kstat_named_t   ip_udp_in_part_hw_cksum_err;
  74         kstat_named_t   ip_udp_in_sw_cksum_err;
  75         kstat_named_t   conn_in_recvdstaddr;
  76         kstat_named_t   conn_in_recvopts;
  77         kstat_named_t   conn_in_recvif;
  78         kstat_named_t   conn_in_recvslla;
  79         kstat_named_t   conn_in_recvucred;
  80         kstat_named_t   conn_in_recvttl;
  81         kstat_named_t   conn_in_recvhopopts;
  82         kstat_named_t   conn_in_recvhoplimit;
  83         kstat_named_t   conn_in_recvdstopts;
  84         kstat_named_t   conn_in_recvrthdrdstopts;
  85         kstat_named_t   conn_in_recvrthdr;
  86         kstat_named_t   conn_in_recvpktinfo;




   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  */
  26 
  27 /*
  28  * Copyright 2019 Joyent, Inc.
  29  */
  30 
  31 #ifndef _INET_IP_STACK_H
  32 #define _INET_IP_STACK_H
  33 
  34 #ifdef  __cplusplus
  35 extern "C" {
  36 #endif
  37 
  38 #include <sys/netstack.h>
  39 #include <netinet/igmp_var.h>
  40 #include <sys/modhash.h>
  41 
  42 #ifdef _KERNEL
  43 #include <sys/list.h>
  44 
  45 
  46 /*
  47  * IP statistics.
  48  */
  49 #define IP_STAT(ipst, x)        ((ipst)->ips_ip_statistics.x.value.ui64++)
  50 #define IP_STAT_UPDATE(ipst, x, n) \
  51                 ((ipst)->ips_ip_statistics.x.value.ui64 += (n))
  52 
  53 typedef struct ip_stat {
  54         kstat_named_t   ip_udp_fannorm;
  55         kstat_named_t   ip_udp_fanmb;
  56         kstat_named_t   ip_recv_pullup;
  57         kstat_named_t   ip_db_ref;
  58         kstat_named_t   ip_notaligned;
  59         kstat_named_t   ip_multimblk;
  60         kstat_named_t   ip_opt;
  61         kstat_named_t   ipsec_proto_ahesp;
  62         kstat_named_t   ip_conn_flputbq;
  63         kstat_named_t   ip_conn_walk_drain;
  64         kstat_named_t   ip_out_sw_cksum;
  65         kstat_named_t   ip_out_sw_cksum_bytes;
  66         kstat_named_t   ip_in_sw_cksum;
  67         kstat_named_t   ip_ire_reclaim_calls;
  68         kstat_named_t   ip_ire_reclaim_deleted;
  69         kstat_named_t   ip_nce_reclaim_calls;
  70         kstat_named_t   ip_nce_reclaim_deleted;
  71         kstat_named_t   ip_nce_mcast_reclaim_calls;
  72         kstat_named_t   ip_nce_mcast_reclaim_deleted;
  73         kstat_named_t   ip_nce_mcast_reclaim_tqfail;
  74         kstat_named_t   ip_dce_reclaim_calls;
  75         kstat_named_t   ip_dce_reclaim_deleted;
  76         kstat_named_t   ip_tcp_in_full_hw_cksum_err;
  77         kstat_named_t   ip_tcp_in_part_hw_cksum_err;
  78         kstat_named_t   ip_tcp_in_sw_cksum_err;
  79         kstat_named_t   ip_udp_in_full_hw_cksum_err;
  80         kstat_named_t   ip_udp_in_part_hw_cksum_err;
  81         kstat_named_t   ip_udp_in_sw_cksum_err;
  82         kstat_named_t   conn_in_recvdstaddr;
  83         kstat_named_t   conn_in_recvopts;
  84         kstat_named_t   conn_in_recvif;
  85         kstat_named_t   conn_in_recvslla;
  86         kstat_named_t   conn_in_recvucred;
  87         kstat_named_t   conn_in_recvttl;
  88         kstat_named_t   conn_in_recvhopopts;
  89         kstat_named_t   conn_in_recvhoplimit;
  90         kstat_named_t   conn_in_recvdstopts;
  91         kstat_named_t   conn_in_recvrthdrdstopts;
  92         kstat_named_t   conn_in_recvrthdr;
  93         kstat_named_t   conn_in_recvpktinfo;