X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_eal%2Fcommon%2Finclude%2Frte_devargs.h;h=996e1805375faa96e1e6af6b48e0c3504f45856a;hb=c07691ae10894bb6bf284fed75829b95844eacdb;hp=2e6e1f39e95162474308b2ad7ca3e3263b51d5e4;hpb=bf6dea0e04afc0d1f2c8056cd4d1aecab12502d1;p=dpdk.git diff --git a/lib/librte_eal/common/include/rte_devargs.h b/lib/librte_eal/common/include/rte_devargs.h index 2e6e1f39e9..996e180537 100644 --- a/lib/librte_eal/common/include/rte_devargs.h +++ b/lib/librte_eal/common/include/rte_devargs.h @@ -48,6 +48,7 @@ extern "C" { #endif +#include #include #include @@ -87,8 +88,8 @@ struct rte_devargs { char drv_name[32]; } virtual; }; -#define RTE_DEVARGS_LEN 256 - char args[RTE_DEVARGS_LEN]; /**< Arguments string as given by user. */ + /** Arguments string as given by user. */ + char *args; }; /** user device double-linked queue type definition */ @@ -101,12 +102,12 @@ extern struct rte_devargs_list devargs_list; * Add a device to the user device list * * For PCI devices, the format of arguments string is "PCI_ADDR" or - * "PCI_ADDR;key=val;key2=val2;...". Examples: "08:00.1", "0000:5:00.0", - * "04:00.0;arg=val". + * "PCI_ADDR,key=val,key2=val2,...". Examples: "08:00.1", "0000:5:00.0", + * "04:00.0,arg=val". * * For virtual devices, the format of arguments string is "DRIVER_NAME*" - * or "DRIVER_NAME*;key=val;key2=val2;...". Examples: "eth_ring", - * "eth_ring0", "eth_pmdAnything;arg=0:arg2=1". The validity of the + * or "DRIVER_NAME*,key=val,key2=val2,...". Examples: "eth_ring", + * "eth_ring0", "eth_pmdAnything,arg=0:arg2=1". The validity of the * driver name is not checked by this function, it is done when probing * the drivers. * @@ -135,8 +136,11 @@ rte_eal_devargs_type_count(enum rte_devtype devtype); /** * This function dumps the list of user device and their arguments. + * + * @param f + * A pointer to a file for output */ -void rte_eal_devargs_dump(void); +void rte_eal_devargs_dump(FILE *f); #ifdef __cplusplus }