bnxt_en: Create and setup the additional VNIC for adding ntuple filters
authorPavan Chebbi <pavan.chebbi@broadcom.com>
Tue, 20 Feb 2024 23:03:16 +0000 (15:03 -0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 22 Feb 2024 14:31:23 +0000 (15:31 +0100)
commit93e90104bd1207a987241e2a696d53bb0b025a9e
treebcccc1490d636b6e11fd8a497bf49b0ca6b29f5b
parent532c034e4b2b460a2d8584ce8f9e11f646c7f4e9
bnxt_en: Create and setup the additional VNIC for adding ntuple filters

Allocate and setup the additional VNIC for ntuple filters if this
new method is supported by the firmware.  Even though this VNIC is
only used for ntuple filters with direct ring destinations, we still
setup the RSS hash to be identical to the default VNIC so that each
RX packet will have the correct hash in the RX completion.  This
VNIC is always at VNIC index BNXT_VNIC_NTUPLE.

Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h