aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
diff options
context:
space:
mode:
authorRaju Rangoju <rajur@chelsio.com>2019-05-23 19:21:21 +0530
committerDavid S. Miller <davem@davemloft.net>2019-05-23 09:36:14 -0700
commitdcf10ec772ade4e9ba76f31c07dc1927b58eb4b4 (patch)
treebda089b1c08bef8dd0f0223eec72b1eb24644c99 /drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
parentMerge branch 'net-ll_temac-Fix-and-enable-multicast-support' (diff)
downloadlinux-dev-dcf10ec772ade4e9ba76f31c07dc1927b58eb4b4.tar.xz
linux-dev-dcf10ec772ade4e9ba76f31c07dc1927b58eb4b4.zip
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.h1
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