cryptodev: reorganize asymmetric structs
[dpdk.git] / lib / eal / common / eal_internal_cfg.h
index d6c0470..b71faad 100644 (file)
@@ -40,6 +40,14 @@ struct simd_bitwidth {
        uint16_t bitwidth; /**< bitwidth value */
 };
 
+/** Hugepage backing files discipline. */
+struct hugepage_file_discipline {
+       /** Unlink files before mapping them to leave no trace in hugetlbfs. */
+       bool unlink_before_mapping;
+       /** Unlink existing files at startup, re-create them before mapping. */
+       bool unlink_existing;
+};
+
 /**
  * internal configuration
  */
@@ -48,7 +56,7 @@ struct internal_config {
        volatile unsigned force_nchannel; /**< force number of channels */
        volatile unsigned force_nrank;    /**< force number of ranks */
        volatile unsigned no_hugetlbfs;   /**< true to disable hugetlbfs */
-       unsigned hugepage_unlink;         /**< true to unlink backing files */
+       struct hugepage_file_discipline hugepage_file;
        volatile unsigned no_pci;         /**< true to disable PCI */
        volatile unsigned no_hpet;        /**< true to disable HPET */
        volatile unsigned vmware_tsc_map; /**< true to use VMware TSC mapping