add interface for external consumers to syncache_expand - rename syncache_add in a manner consistent with other bits intended for offload
This commit is contained in:
parent
e331636d14
commit
409d8ba5c7
@ -959,6 +959,19 @@ failed:
|
||||
return (0);
|
||||
}
|
||||
|
||||
int
|
||||
tcp_offload_syncache_expand(struct in_conninfo *inc, struct tcpopt *to,
|
||||
struct tcphdr *th, struct socket **lsop, struct mbuf *m)
|
||||
{
|
||||
int rc;
|
||||
|
||||
INP_INFO_WLOCK(&tcbinfo);
|
||||
rc = syncache_expand(inc, to, th, lsop, m);
|
||||
INP_INFO_WUNLOCK(&tcbinfo);
|
||||
|
||||
return (rc);
|
||||
}
|
||||
|
||||
/*
|
||||
* Given a LISTEN socket and an inbound SYN request, add
|
||||
* this to the syn cache, and send back a segment:
|
||||
@ -1426,7 +1439,7 @@ syncache_add(struct in_conninfo *inc, struct tcpopt *to, struct tcphdr *th,
|
||||
}
|
||||
|
||||
void
|
||||
syncache_offload_add(struct in_conninfo *inc, struct tcpopt *to,
|
||||
tcp_offload_syncache_add(struct in_conninfo *inc, struct tcpopt *to,
|
||||
struct tcphdr *th, struct inpcb *inp, struct socket **lsop,
|
||||
struct toe_usrreqs *tu, void *toepcb)
|
||||
{
|
||||
|
@ -38,11 +38,14 @@ void syncache_init(void);
|
||||
void syncache_unreach(struct in_conninfo *, struct tcphdr *);
|
||||
int syncache_expand(struct in_conninfo *, struct tcpopt *,
|
||||
struct tcphdr *, struct socket **, struct mbuf *);
|
||||
int tcp_offload_syncache_expand(struct in_conninfo *inc, struct tcpopt *to,
|
||||
struct tcphdr *th, struct socket **lsop, struct mbuf *m);
|
||||
void syncache_add(struct in_conninfo *, struct tcpopt *,
|
||||
struct tcphdr *, struct inpcb *, struct socket **, struct mbuf *);
|
||||
void syncache_offload_add(struct in_conninfo *, struct tcpopt *,
|
||||
void tcp_offload_syncache_add(struct in_conninfo *, struct tcpopt *,
|
||||
struct tcphdr *, struct inpcb *, struct socket **,
|
||||
struct toe_usrreqs *tu, void *toepcb);
|
||||
|
||||
void syncache_chkrst(struct in_conninfo *, struct tcphdr *);
|
||||
void syncache_badack(struct in_conninfo *);
|
||||
int syncache_pcbcount(void);
|
||||
|
Loading…
x
Reference in New Issue
Block a user