* Remove rtable subscription @rs from the routing table. * Needs to be run in network epoch. */
| 1490 | * Needs to be run in network epoch. |
| 1491 | */ |
| 1492 | void |
| 1493 | rib_unsibscribe(struct rib_subscription *rs) |
| 1494 | { |
| 1495 | struct rib_head *rnh = rs->rnh; |
| 1496 | |
| 1497 | NET_EPOCH_ASSERT(); |
| 1498 | |
| 1499 | RIB_WLOCK(rnh); |
| 1500 | CK_STAILQ_REMOVE(&rnh->rnh_subscribers, rs, rib_subscription, next); |
| 1501 | RIB_WUNLOCK(rnh); |
| 1502 | |
| 1503 | epoch_call(net_epoch_preempt, destroy_subscription_epoch, |
| 1504 | &rs->epoch_ctx); |
| 1505 | } |
| 1506 | |
| 1507 | void |
| 1508 | rib_unsibscribe_locked(struct rib_subscription *rs) |
nothing calls this directly
no test coverage detected