summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorGanesh Goudar <ganeshgr@chelsio.com>2017-04-10 17:56:18 +0200
committerDavid S. Miller <davem@davemloft.net>2017-04-13 18:37:57 +0200
commit6b254afd2ef384b21aeaf166ddc957fe1083a7e2 (patch)
tree0f22864764142090c941eaa0a3c4617d1c26da11 /drivers/net/ethernet
parentMerge branch 'mvmdio-updates' (diff)
downloadlinux-6b254afd2ef384b21aeaf166ddc957fe1083a7e2.tar.xz
linux-6b254afd2ef384b21aeaf166ddc957fe1083a7e2.zip
cxgb4: save tid while creating server filter
Save the filter tid while creating the server filter, which is used later to retrieve the corresponding filter instance while handling the filter reply. Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
index afb0967d2ce6..aa7101953e64 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
@@ -2338,6 +2338,10 @@ int cxgb4_create_server_filter(const struct net_device *dev, unsigned int stid,
f->locked = 1;
f->fs.rpttid = 1;
+ /* Save the actual tid. We need this to get the corresponding
+ * filter entry structure in filter_rpl.
+ */
+ f->tid = stid + adap->tids.ftid_base;
ret = set_filter_wr(adap, stid);
if (ret) {
clear_filter(adap, f);