mirror of
https://github.com/torvalds/linux.git
synced 2024-12-02 09:01:34 +00:00
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>
This commit is contained in:
parent
19ec50839d
commit
6b254afd2e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user