diff options
author | Kumar Sanghvi <kumaras@chelsio.com> | 2013-12-18 12:08:24 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-23 00:09:08 +0100 |
commit | a4ea025fc24532bae8a038d038f8e0f15b8a7d98 (patch) | |
tree | a91b567e95f3d1e4d5c8ea38c000a4af4a91c562 /drivers/infiniband/hw/cxgb4/cm.c | |
parent | cxgb4: Add API to correctly calculate tuple fields (diff) | |
download | linux-a4ea025fc24532bae8a038d038f8e0f15b8a7d98.tar.xz linux-a4ea025fc24532bae8a038d038f8e0f15b8a7d98.zip |
RDMA/cxgb4: Calculate the filter server TID properly
Based on original work by Santosh Rastapur <santosh@chelsio.com>
Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4/cm.c')
-rw-r--r-- | drivers/infiniband/hw/cxgb4/cm.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index 12fef76c791c..02c751543b70 100644 --- a/drivers/infiniband/hw/cxgb4/cm.c +++ b/drivers/infiniband/hw/cxgb4/cm.c @@ -3323,9 +3323,7 @@ static int rx_pkt(struct c4iw_dev *dev, struct sk_buff *skb) /* * Calculate the server tid from filter hit index from cpl_rx_pkt. */ - stid = (__force int) cpu_to_be32((__force u32) rss->hash_val) - - dev->rdev.lldi.tids->sftid_base - + dev->rdev.lldi.tids->nstids; + stid = (__force int) cpu_to_be32((__force u32) rss->hash_val); lep = (struct c4iw_ep *)lookup_stid(dev->rdev.lldi.tids, stid); if (!lep) { |