- if (unformat (input, "ipv4-outbound-spd-flow-cache on"))
- im->output_flow_cache_flag = 1;
+ if (unformat (input, "ipv4-outbound-spd-fast-path on"))
+ {
+ im->fp_spd_is_enabled = 1;
+ im->output_flow_cache_flag = 0;
+ }
+ else if (unformat (input, "ipv4-outbound-spd-fast-path off"))
+ im->fp_spd_is_enabled = 0;
+ else if (unformat (input, "spd-fast-path-num-buckets %d",
+ &ipsec_spd_fp_num_buckets))
+ {
+ /* Number of bihash buckets is power of 2 >= input */
+ im->fp_lookup_hash_buckets = 1ULL
+ << max_log2 (ipsec_spd_fp_num_buckets);
+ }
+ else if (unformat (input, "ipv4-outbound-spd-flow-cache on"))
+ im->output_flow_cache_flag = im->fp_spd_is_enabled ? 0 : 1;