aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/cxgbe/tom/t4_connect.c
diff options
context:
space:
mode:
authorNavdeep Parhar <np@FreeBSD.org>2017-01-07 20:26:19 +0000
committerNavdeep Parhar <np@FreeBSD.org>2017-01-07 20:26:19 +0000
commitd663d5ca23d3a0af921d424b6568b6a892bb4da0 (patch)
tree43b9216fb2dd323bbef0d61559e74ba1f770152a /sys/dev/cxgbe/tom/t4_connect.c
parent40d3e536c58398f9df5cde4a62000c0529ba528e (diff)
downloadsrc-d663d5ca23d3a0af921d424b6568b6a892bb4da0.tar.gz
src-d663d5ca23d3a0af921d424b6568b6a892bb4da0.zip
cxgbe/t4_tom: Fix tid accounting. An offloaded IPv6 connection uses 2
tids, not 1, in the hardware. MFC after: 3 days Sponsored by: Chelsio Communications
Notes
Notes: svn path=/head/; revision=311657
Diffstat (limited to 'sys/dev/cxgbe/tom/t4_connect.c')
-rw-r--r--sys/dev/cxgbe/tom/t4_connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/cxgbe/tom/t4_connect.c b/sys/dev/cxgbe/tom/t4_connect.c
index 4db64102c314..f2e4ad456ef4 100644
--- a/sys/dev/cxgbe/tom/t4_connect.c
+++ b/sys/dev/cxgbe/tom/t4_connect.c
@@ -128,7 +128,7 @@ do_act_establish(struct sge_iq *iq, const struct rss_header *rss,
INP_WLOCK(inp);
toep->tid = tid;
- insert_tid(sc, tid, toep);
+ insert_tid(sc, tid, toep, inp->inp_vflag & INP_IPV6 ? 2 : 1);
if (inp->inp_flags & INP_DROPPED) {
/* socket closed by the kernel before hw told us it connected */