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

Function sfc_dp_register

dpdk/drivers/net/sfc/sfc_dp.c:67–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67int
68sfc_dp_register(struct sfc_dp_list *head, struct sfc_dp *entry)
69{
70 if (sfc_dp_find_by_name(head, entry->type, entry->name) != NULL) {
71 SFC_GENERIC_LOG(ERR,
72 "sfc %s datapath '%s' already registered",
73 entry->type == SFC_DP_RX ? "Rx" :
74 entry->type == SFC_DP_TX ? "Tx" :
75 "unknown",
76 entry->name);
77 return EEXIST;
78 }
79
80 TAILQ_INSERT_TAIL(head, entry, links);
81
82 return 0;
83}
84
85uint64_t sfc_dp_mport_override;
86int sfc_dp_mport_offset = -1;

Callers 1

sfc_register_dpFunction · 0.85

Calls 1

sfc_dp_find_by_nameFunction · 0.85

Tested by

no test coverage detected