bnxt_en: Add bnxt_lookup_ntp_filter_from_idx() function
authorMichael Chan <michael.chan@broadcom.com>
Sat, 23 Dec 2023 04:22:03 +0000 (20:22 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jan 2024 13:52:27 +0000 (13:52 +0000)
commitcb5bdd292dc01f42dd4ecebda203e2161a901c6f
tree1eafdc4af505b8328de584257c22982815fed04a
parentd3c982851c15ff1c5187a6188710daa7d0db7fe4
bnxt_en: Add bnxt_lookup_ntp_filter_from_idx() function

Add the helper function to look up the ntuple filter from the
hash index and use it in bnxt_rx_flow_steer().  The helper function
will also be used by user defined ntuple filters in the next
patches.

Reviewed-by: Andy Gospodarek <andrew.gospodarek@broadcom.com>
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c