diff options
author | Navdeep Parhar <np@FreeBSD.org> | 2017-01-07 20:26:19 +0000 |
---|---|---|
committer | Navdeep Parhar <np@FreeBSD.org> | 2017-01-07 20:26:19 +0000 |
commit | d663d5ca23d3a0af921d424b6568b6a892bb4da0 (patch) | |
tree | 43b9216fb2dd323bbef0d61559e74ba1f770152a /sys/dev/cxgbe/tom/t4_connect.c | |
parent | 40d3e536c58398f9df5cde4a62000c0529ba528e (diff) | |
download | src-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.c | 2 |
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 */ |