bnxt_en: query cfa flow stats periodically to compute 'lastused' attribute
authorSathya Perla <sathya.perla@broadcom.com>
Thu, 26 Oct 2017 15:51:31 +0000 (11:51 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Oct 2017 15:02:45 +0000 (00:02 +0900)
commit5a84acbebb22f93dfc9ce1e5f0427c45c94acb33
treecefba34b1f898f8c5e224ad87044b16160c5bad5
parentf484f6782e013138946122ae09c100c9e4b547e3
bnxt_en: query cfa flow stats periodically to compute 'lastused' attribute

This patch implements periodic querying of cfa flow stats
in batches to compute the 'lastused' attribute of TC flow stats.

Signed-off-by: Sathya Perla <sathya.perla@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h
drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c
drivers/net/ethernet/broadcom/bnxt/bnxt_tc.h