diff options
author | bz <bz@FreeBSD.org> | 2008-12-17 12:52:34 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2008-12-17 12:52:34 +0000 |
commit | ea0d9d2e9af995a203d1871d5aded293a98f5d68 (patch) | |
tree | 062997817526e8ebb92f0a727bd3ebf774556ea8 /sys/dev/cxgb | |
parent | baed8aaae54e47b5ef994a307febc994595b0e50 (diff) | |
download | FreeBSD-src-ea0d9d2e9af995a203d1871d5aded293a98f5d68.zip FreeBSD-src-ea0d9d2e9af995a203d1871d5aded293a98f5d68.tar.gz |
Use inc_flags instead of the inc_isipv6 alias which so far
had been the only flag with random usage patterns.
Switch inc_flags to be used as a real bit field by using
INC_ISIPV6 with bitops to check for the 'isipv6' condition.
While here fix a place or two where in case of v4 inc_flags
were not properly initialized before.[1]
Found by: rwatson during review [1]
Discussed with: rwatson
Reviewed by: rwatson
MFC after: 4 weeks
Diffstat (limited to 'sys/dev/cxgb')
-rw-r--r-- | sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c b/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c index 334f315..f11aaf0 100644 --- a/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c +++ b/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c @@ -3269,8 +3269,6 @@ syncache_add_accept_req(struct cpl_pass_accept_req *req, struct socket *lso, str toep->tp_iss = toep->tp_delack_seq = toep->tp_rcv_wup = toep->tp_copied_seq = rcv_isn + 1; - - inc.inc_isipv6 = 0; inc.inc_len = 0; inc.inc_faddr.s_addr = req->peer_ip; inc.inc_laddr.s_addr = req->local_ip; @@ -3610,7 +3608,6 @@ syncache_expand_establish_req(struct cpl_pass_establish *req, struct socket **so th.th_seq = req->rcv_isn; th.th_flags = TH_ACK; - inc.inc_isipv6 = 0; inc.inc_len = 0; inc.inc_faddr.s_addr = req->peer_ip; inc.inc_laddr.s_addr = req->local_ip; |