MCPcopy Create free account
hub / github.com/F-Stack/f-stack / pfe_parse_vdev_init_params

Function pfe_parse_vdev_init_params

dpdk/drivers/net/pfe/pfe_ethdev.c:914–941  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

912}
913
914static int
915pfe_parse_vdev_init_params(struct pfe_vdev_init_params *params,
916 struct rte_vdev_device *dev)
917{
918 struct rte_kvargs *kvlist = NULL;
919 int ret = 0;
920
921 static const char * const pfe_vdev_valid_params[] = {
922 PFE_VDEV_GEM_ID_ARG,
923 NULL
924 };
925
926 const char *input_args = rte_vdev_device_args(dev);
927
928 if (!input_args)
929 return -1;
930
931 kvlist = rte_kvargs_parse(input_args, pfe_vdev_valid_params);
932 if (kvlist == NULL)
933 return -1;
934
935 ret = rte_kvargs_process(kvlist,
936 PFE_VDEV_GEM_ID_ARG,
937 &parse_integer_arg,
938 &params->gem_id);
939 rte_kvargs_free(kvlist);
940 return ret;
941}
942
943static int
944pmd_pfe_probe(struct rte_vdev_device *vdev)

Callers 1

pmd_pfe_probeFunction · 0.85

Calls 4

rte_vdev_device_argsFunction · 0.85
rte_kvargs_parseFunction · 0.85
rte_kvargs_processFunction · 0.85
rte_kvargs_freeFunction · 0.85

Tested by

no test coverage detected