[5/5] net/bnxt: ulp must set hw flow cache timer when allocating table scope
Checks
Commit Message
From: Mike Baucom <michael.baucom@broadcom.com>
The tf_alloc_tbl_scope API now accepts a timer interval for flushing the
hw flow cache. The flush timer is necessary in order to refresh the
flow table.
Signed-off-by: Mike Baucom <michael.baucom@broadcom.com>
Reviewed-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com>
---
drivers/net/bnxt/tf_ulp/bnxt_ulp.c | 6 ++++++
1 file changed, 6 insertions(+)
@@ -121,6 +121,12 @@ bnxt_init_tbl_scope_parms(struct bnxt *bp,
else
dparms = bnxt_ulp_device_params_get(dev_id);
+ /*
+ * Set the flush timer for EEM entries. The value is in 100ms intervals,
+ * so 100 is 10s.
+ */
+ params->hw_flow_cache_flush_timer = 100;
+
if (!dparms) {
params->rx_max_key_sz_in_bits = BNXT_ULP_DFLT_RX_MAX_KEY;
params->rx_max_action_entry_sz_in_bits =