Whamcloud - gitweb
LU-7124 o2iblnd: limit cap.max_send_wr for MLX5
[fs/lustre-release.git] / lnet / klnds / o2iblnd / o2iblnd_modparams.c
index 2e36334..cdddcd7 100644 (file)
@@ -126,11 +126,6 @@ static int fmr_cache = 1;
 CFS_MODULE_PARM(fmr_cache, "i", int, 0444,
                "non-zero to enable FMR caching");
 
-/* NB: this value is shared by all CPTs, it can grow at runtime */
-static int pmr_pool_size = 512;
-CFS_MODULE_PARM(pmr_pool_size, "i", int, 0444,
-               "size of MR cache pmr pool on each CPT");
-
 /*
  * 0: disable failover
  * 1: enable failover if necessary
@@ -170,7 +165,6 @@ kib_tunables_t kiblnd_tunables = {
         .kib_fmr_pool_size          = &fmr_pool_size,
         .kib_fmr_flush_trigger      = &fmr_flush_trigger,
         .kib_fmr_cache              = &fmr_cache,
-        .kib_pmr_pool_size          = &pmr_pool_size,
         .kib_require_priv_port      = &require_privileged_port,
        .kib_use_priv_port          = &use_privileged_port,
        .kib_nscheds                = &nscheds
@@ -335,14 +329,6 @@ static struct ctl_table kiblnd_ctl_table[] = {
        },
        {
                INIT_CTL_NAME
-               .procname       = "pmr_pool_size",
-               .data           = &pmr_pool_size,
-               .maxlen         = sizeof(int),
-               .mode           = 0444,
-               .proc_handler   = &proc_dointvec
-       },
-       {
-               INIT_CTL_NAME
                .procname       = "dev_failover",
                .data           = &dev_failover,
                .maxlen         = sizeof(int),
@@ -371,7 +357,7 @@ kiblnd_initstrtunable(char *space, char *str, int size)
         space[size-1] = 0;
 }
 
-void
+static void
 kiblnd_sysctl_init (void)
 {
        kiblnd_initstrtunable(ipif_basename_space, ipif_name,
@@ -384,7 +370,7 @@ kiblnd_sysctl_init (void)
                CWARN("Can't setup /proc tunables\n");
 }
 
-void
+static void
 kiblnd_sysctl_fini (void)
 {
        if (kiblnd_tunables.kib_sysctl != NULL)
@@ -393,12 +379,12 @@ kiblnd_sysctl_fini (void)
 
 #else
 
-void
+static void
 kiblnd_sysctl_init (void)
 {
 }
 
-void
+static void
 kiblnd_sysctl_fini (void)
 {
 }