Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/toecore.c
Show First 20 Lines • Show All 340 Lines • ▼ Show 20 Lines | unregister_toedev(struct toedev *tod) | ||||
KASSERT(registered_toedevs >= 0, | KASSERT(registered_toedevs >= 0, | ||||
("%s: registered_toedevs (%d) < 0", __func__, registered_toedevs)); | ("%s: registered_toedevs (%d) < 0", __func__, registered_toedevs)); | ||||
mtx_unlock(&toedev_lock); | mtx_unlock(&toedev_lock); | ||||
return (rc); | return (rc); | ||||
} | } | ||||
void | void | ||||
toe_syncache_add(struct in_conninfo *inc, struct tcpopt *to, struct tcphdr *th, | toe_syncache_add(struct in_conninfo *inc, struct tcpopt *to, struct tcphdr *th, | ||||
struct inpcb *inp, void *tod, void *todctx) | struct inpcb *inp, void *tod, void *todctx, uint8_t iptos) | ||||
{ | { | ||||
struct socket *lso = inp->inp_socket; | struct socket *lso = inp->inp_socket; | ||||
INP_WLOCK_ASSERT(inp); | INP_WLOCK_ASSERT(inp); | ||||
syncache_add(inc, to, th, inp, &lso, NULL, tod, todctx); | syncache_add(inc, to, th, inp, &lso, NULL, tod, todctx, iptos); | ||||
} | } | ||||
int | int | ||||
toe_syncache_expand(struct in_conninfo *inc, struct tcpopt *to, | toe_syncache_expand(struct in_conninfo *inc, struct tcpopt *to, | ||||
struct tcphdr *th, struct socket **lsop) | struct tcphdr *th, struct socket **lsop) | ||||
{ | { | ||||
NET_EPOCH_ASSERT(); | NET_EPOCH_ASSERT(); | ||||
▲ Show 20 Lines • Show All 233 Lines • Show Last 20 Lines |