summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2014-08-16 13:50:15 +0000
committerbz <bz@FreeBSD.org>2014-08-16 13:50:15 +0000
commit6f5b0b94bcc341ada89cd4674a3b07804b7cf9be (patch)
tree894ce9a194b61542810094913795a726d2129cc0 /sys/dev
parenta771dfd28a60ce30bfffc98d3cf898c9b97ec08c (diff)
downloadFreeBSD-src-6f5b0b94bcc341ada89cd4674a3b07804b7cf9be.zip
FreeBSD-src-6f5b0b94bcc341ada89cd4674a3b07804b7cf9be.tar.gz
MFC r266596:
Move the tcp_fields_to_host() and tcp_fields_to_net() (inline) functions to the tcp_var.h header file in order to avoid further duplication with upcoming commits. Reviewed by: np
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/cxgbe/tom/t4_listen.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/dev/cxgbe/tom/t4_listen.c b/sys/dev/cxgbe/tom/t4_listen.c
index 0dc02e3..1c25baf 100644
--- a/sys/dev/cxgbe/tom/t4_listen.c
+++ b/sys/dev/cxgbe/tom/t4_listen.c
@@ -1052,17 +1052,6 @@ calc_opt2p(struct adapter *sc, struct port_info *pi, int rxqid,
return htobe32(opt2);
}
-/* XXX: duplication. */
-static inline void
-tcp_fields_to_host(struct tcphdr *th)
-{
-
- th->th_seq = ntohl(th->th_seq);
- th->th_ack = ntohl(th->th_ack);
- th->th_win = ntohs(th->th_win);
- th->th_urp = ntohs(th->th_urp);
-}
-
static void
pass_accept_req_to_protohdrs(const struct mbuf *m, struct in_conninfo *inc,
struct tcphdr *th)
OpenPOWER on IntegriCloud