| 65 | } |
| 66 | |
| 67 | int |
| 68 | sfc_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 | |
| 85 | uint64_t sfc_dp_mport_override; |
| 86 | int sfc_dp_mport_offset = -1; |
no test coverage detected