From: Kumar Sanghvi Date: Wed, 18 Dec 2013 11:08:24 +0000 (+0530) Subject: RDMA/cxgb4: Calculate the filter server TID properly X-Git-Tag: v3.13-rc7~13^2~18^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a4ea025fc24532bae8a038d038f8e0f15b8a7d98;p=profile%2Fcommon%2Fkernel-common.git RDMA/cxgb4: Calculate the filter server TID properly Based on original work by Santosh Rastapur Signed-off-by: Kumar Sanghvi Signed-off-by: Hariprasad Shenai Signed-off-by: David S. Miller --- diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index 12fef76..02c7515 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) {