Skip to content

Commit

Permalink
1915 IPsec kstats shouldn't be persistent
Browse files Browse the repository at this point in the history
Reviewed by: Jason King <jason.king@joyent.com>
Reviewed by: ken mays <maybird1776@yahoo.com>
Reviewed by: Yuri Pankov <yuripv@gmx.com>
Reviewed by: Igor Kozhukhov <igor@dilos.org>
Approved by: Richard Lowe <richlowe@richlowe.net>
  • Loading branch information
Dan McDonald committed Dec 8, 2017
1 parent b8e5ecd commit 281819e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions usr/src/uts/common/inet/ip/ipsecah.c
Expand Up @@ -22,6 +22,7 @@
* Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
* Copyright (c) 2012 Nexenta Systems, Inc. All rights reserved.
* Copyright 2017 Joyent, Inc.
*/

#include <sys/types.h>
Expand Down Expand Up @@ -173,8 +174,8 @@ ah_kstat_init(ipsecah_stack_t *ahstack, netstackid_t stackid)
ipsec_stack_t *ipss = ahstack->ipsecah_netstack->netstack_ipsec;

ahstack->ah_ksp = kstat_create_netstack("ipsecah", 0, "ah_stat", "net",
KSTAT_TYPE_NAMED, sizeof (ah_kstats_t) / sizeof (kstat_named_t),
KSTAT_FLAG_PERSISTENT, stackid);
KSTAT_TYPE_NAMED, sizeof (ah_kstats_t) / sizeof (kstat_named_t), 0,
stackid);

if (ahstack->ah_ksp == NULL || ahstack->ah_ksp->ks_data == NULL)
return (B_FALSE);
Expand Down
3 changes: 1 addition & 2 deletions usr/src/uts/common/inet/ip/ipsecesp.c
Expand Up @@ -164,8 +164,7 @@ esp_kstat_init(ipsecesp_stack_t *espstack, netstackid_t stackid)
{
espstack->esp_ksp = kstat_create_netstack("ipsecesp", 0, "esp_stat",
"net", KSTAT_TYPE_NAMED,
sizeof (esp_kstats_t) / sizeof (kstat_named_t),
KSTAT_FLAG_PERSISTENT, stackid);
sizeof (esp_kstats_t) / sizeof (kstat_named_t), 0, stackid);

if (espstack->esp_ksp == NULL || espstack->esp_ksp->ks_data == NULL)
return (B_FALSE);
Expand Down

0 comments on commit 281819e

Please sign in to comment.