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

Function sw_probe

dpdk/drivers/event/sw/sw_evdev.c:938–1123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

936}
937
938static int
939sw_probe(struct rte_vdev_device *vdev)
940{
941 static struct eventdev_ops evdev_sw_ops = {
942 .dev_configure = sw_dev_configure,
943 .dev_infos_get = sw_info_get,
944 .dev_close = sw_close,
945 .dev_start = sw_start,
946 .dev_stop = sw_stop,
947 .dump = sw_dump,
948
949 .queue_def_conf = sw_queue_def_conf,
950 .queue_setup = sw_queue_setup,
951 .queue_release = sw_queue_release,
952 .port_def_conf = sw_port_def_conf,
953 .port_setup = sw_port_setup,
954 .port_release = sw_port_release,
955 .port_link = sw_port_link,
956 .port_unlink = sw_port_unlink,
957 .port_unlinks_in_progress = sw_port_unlinks_in_progress,
958
959 .eth_rx_adapter_caps_get = sw_eth_rx_adapter_caps_get,
960
961 .timer_adapter_caps_get = sw_timer_adapter_caps_get,
962
963 .crypto_adapter_caps_get = sw_crypto_adapter_caps_get,
964
965 .xstats_get = sw_xstats_get,
966 .xstats_get_names = sw_xstats_get_names,
967 .xstats_get_by_name = sw_xstats_get_by_name,
968 .xstats_reset = sw_xstats_reset,
969
970 .dev_selftest = test_sw_eventdev,
971 };
972
973 static const char *const args[] = {
974 NUMA_NODE_ARG,
975 SCHED_QUANTA_ARG,
976 CREDIT_QUANTA_ARG,
977 MIN_BURST_SIZE_ARG,
978 DEQ_BURST_SIZE_ARG,
979 REFIL_ONCE_ARG,
980 NULL
981 };
982 const char *name;
983 const char *params;
984 struct rte_eventdev *dev;
985 struct sw_evdev *sw;
986 int socket_id = rte_socket_id();
987 int sched_quanta = SW_DEFAULT_SCHED_QUANTA;
988 int credit_quanta = SW_DEFAULT_CREDIT_QUANTA;
989 int min_burst_size = 1;
990 int deq_burst_size = SCHED_DEQUEUE_DEFAULT_BURST_SIZE;
991 int refill_once = 0;
992
993 name = rte_vdev_device_name(vdev);
994 params = rte_vdev_device_args(vdev);
995 if (params != NULL && params[0] != '\0') {

Callers

nothing calls this directly

Calls 12

rte_socket_idFunction · 0.85
rte_vdev_device_nameFunction · 0.85
rte_vdev_device_argsFunction · 0.85
rte_kvargs_parseFunction · 0.85
rte_kvargs_processFunction · 0.85
rte_kvargs_freeFunction · 0.85
rte_event_pmd_vdev_initFunction · 0.85
rte_eal_process_typeFunction · 0.85
memsetFunction · 0.85
snprintfFunction · 0.85
event_dev_probing_finishFunction · 0.85

Tested by

no test coverage detected