Skip to content

Commit 61c814b

Browse files
Pavan Chebbikuba-moo
authored andcommitted
bnxt_en: Refactor bnxt_cfg_rfs_ring_tbl_idx()
Refactor bnxt_cfg_rfs_ring_tbl_idx() to pass in the filter structure pointer instead of the RX ring number. This will allow an ntuple filter to be set up for the non-default RSS contexts in the next patch. Reviewed-by: Kalesh AP <[email protected]> Signed-off-by: Pavan Chebbi <[email protected]> Signed-off-by: Michael Chan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent b3d0083 commit 61c814b

File tree

1 file changed

+4
-2
lines changed
  • drivers/net/ethernet/broadcom/bnxt

1 file changed

+4
-2
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5789,8 +5789,10 @@ void bnxt_fill_ipv6_mask(__be32 mask[4])
57895789
static void
57905790
bnxt_cfg_rfs_ring_tbl_idx(struct bnxt *bp,
57915791
struct hwrm_cfa_ntuple_filter_alloc_input *req,
5792-
u16 rxq)
5792+
struct bnxt_ntuple_filter *fltr)
57935793
{
5794+
u16 rxq = fltr->base.rxq;
5795+
57945796
if (BNXT_SUPPORTS_NTUPLE_VNIC(bp)) {
57955797
struct bnxt_vnic_info *vnic;
57965798
u32 enables;
@@ -5831,7 +5833,7 @@ int bnxt_hwrm_cfa_ntuple_filter_alloc(struct bnxt *bp,
58315833
req->flags =
58325834
cpu_to_le32(CFA_NTUPLE_FILTER_ALLOC_REQ_FLAGS_DROP);
58335835
} else if (bp->fw_cap & BNXT_FW_CAP_CFA_RFS_RING_TBL_IDX_V2) {
5834-
bnxt_cfg_rfs_ring_tbl_idx(bp, req, fltr->base.rxq);
5836+
bnxt_cfg_rfs_ring_tbl_idx(bp, req, fltr);
58355837
} else {
58365838
vnic = &bp->vnic_info[fltr->base.rxq + 1];
58375839
req->dst_id = cpu_to_le16(vnic->fw_vnic_id);

0 commit comments

Comments
 (0)