From: Jay Ding <jay.d...@broadcom.com>

Implement action read and clear support. Change flow
query count to reset the count after read in ULP.
Update cli cmds accordingly.

Fixed bnxt_mpc_xmit() to pad the mpc message to be
multiple of 16 bytes.

Signed-off-by: Jay Ding <jay.d...@broadcom.com>
Reviewed-by: Michael Baucom <michael.bau...@broadcom.com>
Reviewed-by: Farah Smith <farah.sm...@broadcom.com>
Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapa...@broadcom.com>
---
 drivers/net/bnxt/tf_ulp/ulp_fc_mgr_tfc.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/bnxt/tf_ulp/ulp_fc_mgr_tfc.c 
b/drivers/net/bnxt/tf_ulp/ulp_fc_mgr_tfc.c
index f1bbce797d..2be37b59c2 100644
--- a/drivers/net/bnxt/tf_ulp/ulp_fc_mgr_tfc.c
+++ b/drivers/net/bnxt/tf_ulp/ulp_fc_mgr_tfc.c
@@ -83,6 +83,10 @@ ulp_fc_tfc_flow_stat_get(struct bnxt_ulp_context *ctxt,
        cmm_info.rsubtype = CFA_RSUBTYPE_CMM_ACT;
        cmm_info.act_handle = handle;
        cmm_info.dir = (enum cfa_dir)direction;
+       cmm_clr.clr = true;
+       cmm_clr.offset_in_byte = 0;
+       cmm_clr.sz_in_byte = sizeof(data64[ULP_FC_TFC_PKT_CNT_OFFS]) +
+                            sizeof(data64[ULP_FC_TFC_BYTE_CNT_OFFS]);
        rc = tfc_act_get(tfcp, NULL, &cmm_info, &cmm_clr, data, &word_size);
        if (rc) {
                BNXT_DRV_DBG(ERR,
-- 
2.39.3

Reply via email to