]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
cxgb4: save tid while creating server filter
authorGanesh Goudar <ganeshgr@chelsio.com>
Mon, 10 Apr 2017 15:56:18 +0000 (21:26 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Apr 2017 16:37:57 +0000 (12:37 -0400)
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>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c

index afb0967d2ce60cafab81701e057017b96a700bbc..aa7101953e647d55f61dc07a4f285e890933276c 100644 (file)
@@ -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);