X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_eal%2Fcommon%2Finclude%2Frte_eal.h;h=f2c4b7dde1a2ea7a6b98f813c7a4d32bfd3d744c;hb=accf99308bacb2131ecb1880dd06d41dfafc8f3f;hp=273da9a81c85862c3d44395f5fcf603c6831bf9c;hpb=3031749c2df04a63cdcef186dcce3781e61436e8;p=dpdk.git diff --git a/lib/librte_eal/common/include/rte_eal.h b/lib/librte_eal/common/include/rte_eal.h index 273da9a81c..f2c4b7dde1 100644 --- a/lib/librte_eal/common/include/rte_eal.h +++ b/lib/librte_eal/common/include/rte_eal.h @@ -78,9 +78,6 @@ struct rte_config { /** Primary or secondary configuration */ enum rte_proc_type_t process_type; - /** A set of general status flags */ - unsigned flags; - /** * Pointer to memory configuration, which may be shared across multiple * Intel DPDK instances @@ -88,9 +85,6 @@ struct rte_config { struct rte_mem_config *mem_config; } __attribute__((__packed__)); -/* Flag definitions for rte_config flags */ -#define EAL_FLG_HIGH_IOPL 1 /**< indicates high IO privilege in a linux env */ - /** * Get the global configuration structure. * @@ -118,6 +112,17 @@ enum rte_lcore_role_t rte_eal_lcore_role(unsigned lcore_id); */ enum rte_proc_type_t rte_eal_process_type(void); +/** + * Request iopl privilege for all RPL. + * + * This function should be called by pmds which need access to ioports. + + * @return + * - On success, returns 0. + * - On failure, returns -1. + */ +int rte_eal_iopl_init(void); + /** * Initialize the Environment Abstraction Layer (EAL). *