]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
cxgb4: use firmware API for validating filter spec
authorRaju Rangoju <rajur@chelsio.com>
Thu, 23 May 2019 13:51:21 +0000 (19:21 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 May 2019 16:36:14 +0000 (09:36 -0700)
commitdcf10ec772ade4e9ba76f31c07dc1927b58eb4b4
treebda089b1c08bef8dd0f0223eec72b1eb24644c99
parent00e31a09613619a2f99adcd1ea9fceda9365fa30
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>
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h