Skip to content

Commit

Permalink
cxgb4: fix incorrect condition for using firmware LDST commands
Browse files Browse the repository at this point in the history
Only contact firmware if it's alive _AND_ if use_bd (use backdoor
access) is not set when issuing FW_LDST_CMD.

Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Rahul Lakkireddy authored and David S. Miller committed Jan 26, 2018
1 parent 825b2b6 commit ebb5568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -5090,7 +5090,7 @@ int t4_read_rss(struct adapter *adapter, u16 *map)

static unsigned int t4_use_ldst(struct adapter *adap)
{
return (adap->flags & FW_OK) || !adap->use_bd;
return (adap->flags & FW_OK) && !adap->use_bd;
}

/**
Expand Down

0 comments on commit ebb5568

Please sign in to comment.