diff options
author | Kumar Sanghvi | 2017-11-01 04:23:00 +0100 |
---|---|---|
committer | David S. Miller | 2017-11-01 14:06:03 +0100 |
commit | 5c31254e35a8a5767c3b23377c34018d8bdd0567 (patch) | |
tree | 2eb36b7b3b5a0c811812775c56328509b9a158f7 /drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | |
parent | cxgb4: save additional filter tuple field shifts in tp_params (diff) | |
download | kernel-qcow2-linux-5c31254e35a8a5767c3b23377c34018d8bdd0567.tar.gz kernel-qcow2-linux-5c31254e35a8a5767c3b23377c34018d8bdd0567.tar.xz kernel-qcow2-linux-5c31254e35a8a5767c3b23377c34018d8bdd0567.zip |
cxgb4: initialize hash-filter configuration
Add support for hash-filter configuration on T6. Also, do basic
checks for the related initialization.
Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
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>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/cxgb4.h')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h index e2c75b73595f..5f021e6062b0 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h @@ -366,6 +366,7 @@ struct adapter_params { unsigned char crypto; /* HW capability for crypto */ unsigned char bypass; + unsigned char hash_filter; unsigned int ofldq_wr_cred; bool ulptx_memwrite_dsgl; /* use of T5 DSGL allowed */ @@ -1140,6 +1141,11 @@ static inline int is_offload(const struct adapter *adap) return adap->params.offload; } +static inline int is_hashfilter(const struct adapter *adap) +{ + return adap->params.hash_filter; +} + static inline int is_pci_uld(const struct adapter *adap) { return adap->params.crypto; |