diff options
author | Raju Rangoju <rajur@chelsio.com> | 2019-05-23 16:51:21 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-23 19:36:14 +0300 |
commit | dcf10ec772ade4e9ba76f31c07dc1927b58eb4b4 (patch) | |
tree | bda089b1c08bef8dd0f0223eec72b1eb24644c99 /drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | |
parent | 00e31a09613619a2f99adcd1ea9fceda9365fa30 (diff) | |
download | linux-dcf10ec772ade4e9ba76f31c07dc1927b58eb4b4.tar.xz |
cxgb4: use firmware API for validating filter spec
Adds support for validating hardware filter spec configured in firmware
before offloading exact match flows.
Use the new fw api FW_PARAM_DEV_FILTER_MODE_MASK to read the filter mode
and mask from firmware. If the api isn't supported, then fall-back to
older way of reading just the mode from indirect register.
Signed-off-by: Raju Rangoju <rajur@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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h index a707a65f491b..7c06e2aebc9e 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h @@ -280,6 +280,7 @@ struct tp_params { unsigned short tx_modq[NCHAN]; /* channel to modulation queue map */ u32 vlan_pri_map; /* cached TP_VLAN_PRI_MAP */ + u32 filter_mask; u32 ingress_config; /* cached TP_INGRESS_CONFIG */ /* cached TP_OUT_CONFIG compressed error vector |