* [PATCH] net/bnxt: remove VMDq support
@ 2026-09-21 3:08 Mohammad Shuab Siddique
2026-09-21 16:19 ` Stephen Hemminger
2026-09-29 0:21 ` [PATCH v2] " Mohammad Shuab Siddique
0 siblings, 2 replies; 5+ messages in thread
From: Mohammad Shuab Siddique @ 2026-09-21 3:08 UTC (permalink / raw)
To: dev; +Cc: kishore.padmanabha, Keegan Freyhof, Mohammad Shuab Siddique
From: Keegan Freyhof <keegan.freyhof@broadcom.com>
Remove support for the VMDq feature from the driver: the multi-pool
Rx-queue configuration path in bnxt_mq_rx_configure(), the VMDQ VLAN
pool wiring in the L2 filter alloc path, and the max_vmdq_pools/
vmdq_queue_num reporting in dev_info (now always reported as 0).
Preserved two pieces of logic that live in the same
function/switch statement but are not VMDq-pool-specific: the
RTE_ETH_MQ_RX_RSS pools=rx_cosq_cnt case and the
per-non-default-VNIC skip_filter_allocation guard in
bnxt_mq_rx_configure(), both used by the plain multi-COS RSS path.
Also kept the RTE_ETH_VMDQ_ACCEPT_HASH_UC/BROADCAST/MULTICAST ->
l2_rx_mask flag mapping in rte_pmd_bnxt_set_vf_rxmode(): despite the
name, those bits are the standard DPDK VF-rxmode API used regardless
of hardware VMDq pool support, not a VMDq-pool-specific control.
Signed-off-by: Keegan Freyhof <keegan.freyhof@broadcom.com>
Signed-off-by: Mohammad Shuab Siddique <mohammad-shuab.siddique@broadcom.com>
---
doc/guides/nics/features/bnxt.ini | 1 -
doc/guides/rel_notes/release_26_11.rst | 3 ++
drivers/net/bnxt/bnxt_ethdev.c | 27 +------------
drivers/net/bnxt/bnxt_hwrm.c | 17 ---------
drivers/net/bnxt/bnxt_rxq.c | 53 +++-----------------------
drivers/net/bnxt/rte_pmd_bnxt.c | 1 -
6 files changed, 11 insertions(+), 91 deletions(-)
diff --git a/doc/guides/nics/features/bnxt.ini b/doc/guides/nics/features/bnxt.ini
index f632de135a..447cb178b5 100644
--- a/doc/guides/nics/features/bnxt.ini
+++ b/doc/guides/nics/features/bnxt.ini
@@ -26,7 +26,6 @@ RSS hash = Y
RSS key update = Y
RSS reta update = Y
Inner RSS = Y
-VMDq = Y
SR-IOV = Y
VLAN filter = Y
Flow control = Y
diff --git a/doc/guides/rel_notes/release_26_11.rst b/doc/guides/rel_notes/release_26_11.rst
index 4b3e5d995c..55e9461b86 100644
--- a/doc/guides/rel_notes/release_26_11.rst
+++ b/doc/guides/rel_notes/release_26_11.rst
@@ -68,6 +68,9 @@ Removed Items
Also, make sure to start the actual text at the margin.
=======================================================
+* net/bnxt: Removed VMDq support. ``max_vmdq_pools`` and
+ ``vmdq_queue_num`` are now always reported as 0 in ``dev_info``.
+
* Removed deprecated symbols:
* eal: ``__rte_packed``
diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c
index 8e8ead8f61..0be6241570 100644
--- a/drivers/net/bnxt/bnxt_ethdev.c
+++ b/drivers/net/bnxt/bnxt_ethdev.c
@@ -1169,7 +1169,6 @@ static int bnxt_dev_info_get_op(struct rte_eth_dev *eth_dev,
{
struct rte_pci_device *pdev = RTE_CLASS_TO_BUS_DEVICE(eth_dev, *pdev);
struct bnxt *bp = eth_dev->data->dev_private;
- uint16_t max_vnics, i, j, vpool, vrxq;
unsigned int max_rx_rings;
int rc;
@@ -1191,7 +1190,6 @@ static int bnxt_dev_info_get_op(struct rte_eth_dev *eth_dev,
dev_info->max_tx_queues = max_rx_rings;
dev_info->reta_size = bnxt_rss_hash_tbl_size(bp);
dev_info->hash_key_size = HW_HASH_KEY_SIZE;
- max_vnics = bp->max_vnics;
/* MTU specifics */
dev_info->min_mtu = RTE_ETHER_MIN_MTU;
@@ -1254,29 +1252,8 @@ static int bnxt_dev_info_get_op(struct rte_eth_dev *eth_dev,
* TODO: default_rxconf, default_txconf, rx_desc_lim, and tx_desc_lim
* need further investigation.
*/
-
- /* VMDq resources */
- vpool = 64; /* RTE_ETH_64_POOLS */
- vrxq = 128; /* RTE_ETH_VMDQ_DCB_NUM_QUEUES */
- for (i = 0; i < 4; vpool >>= 1, i++) {
- if (max_vnics > vpool) {
- for (j = 0; j < 5; vrxq >>= 1, j++) {
- if (dev_info->max_rx_queues > vrxq) {
- if (vpool > vrxq)
- vpool = vrxq;
- goto found;
- }
- }
- /* Not enough resources to support VMDq */
- break;
- }
- }
- /* Not enough resources to support VMDq */
- vpool = 0;
- vrxq = 0;
-found:
- dev_info->max_vmdq_pools = vpool;
- dev_info->vmdq_queue_num = vrxq;
+ dev_info->max_vmdq_pools = 0;
+ dev_info->vmdq_queue_num = 0;
dev_info->vmdq_pool_base = 0;
dev_info->vmdq_queue_base = 0;
diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c
index 1615b36aae..beb1fa1390 100644
--- a/drivers/net/bnxt/bnxt_hwrm.c
+++ b/drivers/net/bnxt/bnxt_hwrm.c
@@ -892,24 +892,7 @@ int bnxt_hwrm_set_l2_filter(struct bnxt *bp,
int rc = 0;
struct hwrm_cfa_l2_filter_alloc_input req = {.req_type = 0 };
struct hwrm_cfa_l2_filter_alloc_output *resp = bp->hwrm_cmd_resp_addr;
- struct rte_eth_conf *dev_conf = &bp->eth_dev->data->dev_conf;
- const struct rte_eth_vmdq_rx_conf *conf =
- &dev_conf->rx_adv_conf.vmdq_rx_conf;
uint32_t enables = 0;
- uint16_t j = dst_id - 1;
-
- //TODO: Is there a better way to add VLANs to each VNIC in case of VMDQ
- if ((dev_conf->rxmode.mq_mode & RTE_ETH_MQ_RX_VMDQ_FLAG) &&
- conf->pool_map[j].pools & (1UL << j)) {
- PMD_DRV_LOG_LINE(DEBUG,
- "Add vlan %u to vmdq pool %u",
- conf->pool_map[j].vlan_id, j);
-
- filter->l2_ivlan = conf->pool_map[j].vlan_id;
- filter->enables |=
- HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_L2_IVLAN |
- HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_L2_IVLAN_MASK;
- }
if (filter->fw_l2_filter_id != UINT64_MAX)
bnxt_hwrm_clear_l2_filter(bp, filter);
diff --git a/drivers/net/bnxt/bnxt_rxq.c b/drivers/net/bnxt/bnxt_rxq.c
index 023cb0e174..3f50923043 100644
--- a/drivers/net/bnxt/bnxt_rxq.c
+++ b/drivers/net/bnxt/bnxt_rxq.c
@@ -76,51 +76,19 @@ int bnxt_mq_rx_configure(struct bnxt *bp)
{
struct rte_eth_conf *dev_conf = &bp->eth_dev->data->dev_conf;
struct rte_eth_rss_conf *rss = &bp->rss_conf;
- const struct rte_eth_vmdq_rx_conf *conf =
- &dev_conf->rx_adv_conf.vmdq_rx_conf;
unsigned int i, j, nb_q_per_grp = 1, ring_idx = 0;
int start_grp_id, end_grp_id = 1, rc = 0;
struct bnxt_vnic_info *vnic;
struct bnxt_filter_info *filter;
- enum rte_eth_nb_pools pools = 1, max_pools = 0;
+ enum rte_eth_nb_pools pools = 1;
struct bnxt_rx_queue *rxq;
bp->nr_vnics = 0;
/* Multi-queue mode */
- if (dev_conf->rxmode.mq_mode & RTE_ETH_MQ_RX_VMDQ_DCB_RSS) {
- /* VMDq ONLY, VMDq+RSS, VMDq+DCB, VMDq+DCB+RSS */
-
- switch (dev_conf->rxmode.mq_mode) {
- case RTE_ETH_MQ_RX_VMDQ_RSS:
- case RTE_ETH_MQ_RX_VMDQ_ONLY:
- case RTE_ETH_MQ_RX_VMDQ_DCB_RSS:
- /* FALLTHROUGH */
- /* ETH_8/64_POOLs */
- pools = conf->nb_queue_pools;
- /* For each pool, allocate MACVLAN CFA rule & VNIC */
- max_pools = RTE_MIN(bp->max_vnics,
- RTE_MIN(bp->max_l2_ctx,
- RTE_MIN(bp->max_rsscos_ctx,
- RTE_ETH_64_POOLS)));
- PMD_DRV_LOG_LINE(DEBUG,
- "pools = %u max_pools = %u",
- pools, max_pools);
- if (pools > max_pools)
- pools = max_pools;
- break;
- case RTE_ETH_MQ_RX_RSS:
- pools = bp->rx_cosq_cnt ? bp->rx_cosq_cnt : 1;
- break;
- default:
- PMD_DRV_LOG_LINE(ERR, "Unsupported mq_mod %d",
- dev_conf->rxmode.mq_mode);
- rc = -EINVAL;
- goto err_out;
- }
- } else if (!dev_conf->rxmode.mq_mode) {
+ if (!dev_conf->rxmode.mq_mode ||
+ dev_conf->rxmode.mq_mode == RTE_ETH_MQ_RX_RSS)
pools = bp->rx_cosq_cnt ? bp->rx_cosq_cnt : pools;
- }
pools = RTE_MIN(pools, bp->rx_cp_nr_rings);
nb_q_per_grp = bp->rx_cp_nr_rings / pools;
@@ -146,19 +114,13 @@ int bnxt_mq_rx_configure(struct bnxt *bp)
"rxq[%d] = %p vnic[%d] = %p",
ring_idx, rxq, i, vnic);
}
- if (i == 0) {
- if (dev_conf->rxmode.mq_mode & RTE_ETH_MQ_RX_VMDQ_DCB) {
- bp->eth_dev->data->promiscuous = 1;
- vnic->flags |= BNXT_VNIC_INFO_PROMISC;
- }
+ if (i == 0)
vnic->func_default = true;
- }
vnic->start_grp_id = start_grp_id;
vnic->end_grp_id = end_grp_id;
if (i) {
- if (dev_conf->rxmode.mq_mode & RTE_ETH_MQ_RX_VMDQ_DCB ||
- !(dev_conf->rxmode.mq_mode & RTE_ETH_MQ_RX_RSS))
+ if (!(dev_conf->rxmode.mq_mode & RTE_ETH_MQ_RX_RSS))
vnic->rss_dflt_cr = true;
goto skip_filter_allocation;
}
@@ -170,10 +132,7 @@ int bnxt_mq_rx_configure(struct bnxt *bp)
}
filter->mac_index = 0;
filter->flags |= HWRM_CFA_L2_FILTER_ALLOC_INPUT_FLAGS_OUTERMOST;
- /*
- * TODO: Configure & associate CFA rule for
- * each VNIC for each VMDq with MACVLAN, MACVLAN+TC
- */
+
STAILQ_INSERT_TAIL(&vnic->filter, filter, next);
skip_filter_allocation:
diff --git a/drivers/net/bnxt/rte_pmd_bnxt.c b/drivers/net/bnxt/rte_pmd_bnxt.c
index 4974e390e7..a0ce89fca9 100644
--- a/drivers/net/bnxt/rte_pmd_bnxt.c
+++ b/drivers/net/bnxt/rte_pmd_bnxt.c
@@ -435,7 +435,6 @@ int rte_pmd_bnxt_set_vf_rxmode(uint16_t port, uint16_t vf,
return -ENOTSUP;
}
- /* Is this really the correct mapping? VFd seems to think it is. */
if (rx_mask & RTE_ETH_VMDQ_ACCEPT_HASH_UC)
flag |= BNXT_VNIC_INFO_PROMISC;
--
2.47.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] net/bnxt: remove VMDq support
2026-09-21 3:08 [PATCH] net/bnxt: remove VMDq support Mohammad Shuab Siddique
@ 2026-09-21 16:19 ` Stephen Hemminger
2026-09-22 7:50 ` David Marchand
2026-09-29 0:21 ` [PATCH v2] " Mohammad Shuab Siddique
1 sibling, 1 reply; 5+ messages in thread
From: Stephen Hemminger @ 2026-09-21 16:19 UTC (permalink / raw)
To: Mohammad Shuab Siddique; +Cc: dev, kishore.padmanabha, Keegan Freyhof
On Sun, 20 Sep 2026 21:08:11 -0600
Mohammad Shuab Siddique <mohammad-shuab.siddique@broadcom.com> wrote:
> From: Keegan Freyhof <keegan.freyhof@broadcom.com>
>
> Remove support for the VMDq feature from the driver: the multi-pool
> Rx-queue configuration path in bnxt_mq_rx_configure(), the VMDQ VLAN
> pool wiring in the L2 filter alloc path, and the max_vmdq_pools/
> vmdq_queue_num reporting in dev_info (now always reported as 0).
>
> Preserved two pieces of logic that live in the same
> function/switch statement but are not VMDq-pool-specific: the
> RTE_ETH_MQ_RX_RSS pools=rx_cosq_cnt case and the
> per-non-default-VNIC skip_filter_allocation guard in
> bnxt_mq_rx_configure(), both used by the plain multi-COS RSS path.
> Also kept the RTE_ETH_VMDQ_ACCEPT_HASH_UC/BROADCAST/MULTICAST ->
> l2_rx_mask flag mapping in rte_pmd_bnxt_set_vf_rxmode(): despite the
> name, those bits are the standard DPDK VF-rxmode API used regardless
> of hardware VMDq pool support, not a VMDq-pool-specific control.
>
> Signed-off-by: Keegan Freyhof <keegan.freyhof@broadcom.com>
> Signed-off-by: Mohammad Shuab Siddique <mohammad-shuab.siddique@broadcom.com>
> ---
[PATCH] net/bnxt: remove VMDq support
Warning: mq_mode validation is lost. Before, VMDq, DCB and DCB_RSS
modes hit the default case and returned -EINVAL. Now any mode other
than NONE or RSS silently configures a single pool and succeeds.
Reject every other mq_mode explicitly in bnxt_mq_rx_configure() or
dev_configure.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] net/bnxt: remove VMDq support
2026-09-21 16:19 ` Stephen Hemminger
@ 2026-09-22 7:50 ` David Marchand
2026-09-23 22:43 ` Mohammad Shuab Siddique
0 siblings, 1 reply; 5+ messages in thread
From: David Marchand @ 2026-09-22 7:50 UTC (permalink / raw)
To: Stephen Hemminger
Cc: Mohammad Shuab Siddique, dev, kishore.padmanabha, Keegan Freyhof
On Mon, 21 Sept 2026 at 18:21, Stephen Hemminger
<stephen@networkplumber.org> wrote:
>
> On Sun, 20 Sep 2026 21:08:11 -0600
> Mohammad Shuab Siddique <mohammad-shuab.siddique@broadcom.com> wrote:
>
> > From: Keegan Freyhof <keegan.freyhof@broadcom.com>
> >
> > Remove support for the VMDq feature from the driver: the multi-pool
> > Rx-queue configuration path in bnxt_mq_rx_configure(), the VMDQ VLAN
> > pool wiring in the L2 filter alloc path, and the max_vmdq_pools/
> > vmdq_queue_num reporting in dev_info (now always reported as 0).
> >
> > Preserved two pieces of logic that live in the same
> > function/switch statement but are not VMDq-pool-specific: the
> > RTE_ETH_MQ_RX_RSS pools=rx_cosq_cnt case and the
> > per-non-default-VNIC skip_filter_allocation guard in
> > bnxt_mq_rx_configure(), both used by the plain multi-COS RSS path.
> > Also kept the RTE_ETH_VMDQ_ACCEPT_HASH_UC/BROADCAST/MULTICAST ->
> > l2_rx_mask flag mapping in rte_pmd_bnxt_set_vf_rxmode(): despite the
> > name, those bits are the standard DPDK VF-rxmode API used regardless
> > of hardware VMDq pool support, not a VMDq-pool-specific control.
> >
> > Signed-off-by: Keegan Freyhof <keegan.freyhof@broadcom.com>
> > Signed-off-by: Mohammad Shuab Siddique <mohammad-shuab.siddique@broadcom.com>
> > ---
>
> [PATCH] net/bnxt: remove VMDq support
>
> Warning: mq_mode validation is lost. Before, VMDq, DCB and DCB_RSS
> modes hit the default case and returned -EINVAL. Now any mode other
> than NONE or RSS silently configures a single pool and succeeds.
> Reject every other mq_mode explicitly in bnxt_mq_rx_configure() or
> dev_configure.
mq_mode should be validated in ethdev now, in next-net.
93b017ff2ffa ("ethdev: check VMDq availability")
Is there something missing?
--
David Marchand
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] net/bnxt: remove VMDq support
2026-09-22 7:50 ` David Marchand
@ 2026-09-23 22:43 ` Mohammad Shuab Siddique
0 siblings, 0 replies; 5+ messages in thread
From: Mohammad Shuab Siddique @ 2026-09-23 22:43 UTC (permalink / raw)
To: David Marchand; +Cc: Stephen Hemminger, dev, kishore.padmanabha, Keegan Freyhof
[-- Attachment #1.1: Type: text/plain, Size: 2062 bytes --]
I will restore the explicit rejection in v2.
On Tue, Sep 22, 2026 at 1:50 AM David Marchand <david.marchand@redhat.com>
wrote:
> On Mon, 21 Sept 2026 at 18:21, Stephen Hemminger
> <stephen@networkplumber.org> wrote:
> >
> > On Sun, 20 Sep 2026 21:08:11 -0600
> > Mohammad Shuab Siddique <mohammad-shuab.siddique@broadcom.com> wrote:
> >
> > > From: Keegan Freyhof <keegan.freyhof@broadcom.com>
> > >
> > > Remove support for the VMDq feature from the driver: the multi-pool
> > > Rx-queue configuration path in bnxt_mq_rx_configure(), the VMDQ VLAN
> > > pool wiring in the L2 filter alloc path, and the max_vmdq_pools/
> > > vmdq_queue_num reporting in dev_info (now always reported as 0).
> > >
> > > Preserved two pieces of logic that live in the same
> > > function/switch statement but are not VMDq-pool-specific: the
> > > RTE_ETH_MQ_RX_RSS pools=rx_cosq_cnt case and the
> > > per-non-default-VNIC skip_filter_allocation guard in
> > > bnxt_mq_rx_configure(), both used by the plain multi-COS RSS path.
> > > Also kept the RTE_ETH_VMDQ_ACCEPT_HASH_UC/BROADCAST/MULTICAST ->
> > > l2_rx_mask flag mapping in rte_pmd_bnxt_set_vf_rxmode(): despite the
> > > name, those bits are the standard DPDK VF-rxmode API used regardless
> > > of hardware VMDq pool support, not a VMDq-pool-specific control.
> > >
> > > Signed-off-by: Keegan Freyhof <keegan.freyhof@broadcom.com>
> > > Signed-off-by: Mohammad Shuab Siddique <
> mohammad-shuab.siddique@broadcom.com>
> > > ---
> >
> > [PATCH] net/bnxt: remove VMDq support
> >
> > Warning: mq_mode validation is lost. Before, VMDq, DCB and DCB_RSS
> > modes hit the default case and returned -EINVAL. Now any mode other
> > than NONE or RSS silently configures a single pool and succeeds.
> > Reject every other mq_mode explicitly in bnxt_mq_rx_configure() or
> > dev_configure.
>
> mq_mode should be validated in ethdev now, in next-net.
> 93b017ff2ffa ("ethdev: check VMDq availability")
>
> Is there something missing?
>
> --
> David Marchand
>
>
--
Shuab
[-- Attachment #1.2: Type: text/html, Size: 3264 bytes --]
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5513 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2] net/bnxt: remove VMDq support
2026-09-21 3:08 [PATCH] net/bnxt: remove VMDq support Mohammad Shuab Siddique
2026-09-21 16:19 ` Stephen Hemminger
@ 2026-09-29 0:21 ` Mohammad Shuab Siddique
1 sibling, 0 replies; 5+ messages in thread
From: Mohammad Shuab Siddique @ 2026-09-29 0:21 UTC (permalink / raw)
To: dev; +Cc: kishore.padmanabha, Keegan Freyhof, Mohammad Shuab Siddique
From: Keegan Freyhof <keegan.freyhof@broadcom.com>
Remove support for the VMDq feature from the driver: the multi-pool
Rx-queue configuration path in bnxt_mq_rx_configure(), the VMDQ VLAN
pool wiring in the L2 filter alloc path, and the max_vmdq_pools/
vmdq_queue_num reporting in dev_info (now always reported as 0).
bnxt_mq_rx_configure() validates dev_conf->rxmode.mq_mode explicitly:
RTE_ETH_MQ_RX_NONE and RTE_ETH_MQ_RX_RSS are handled (the latter via
the existing rx_cosq_cnt-based pool count for multi-COS RSS), and any
other mode is rejected with -EINVAL rather than falling through.
The per-non-default-VNIC skip_filter_allocation guard in the same
function, and the RTE_ETH_VMDQ_ACCEPT_HASH_UC/BROADCAST/MULTICAST ->
l2_rx_mask flag mapping in rte_pmd_bnxt_set_vf_rxmode(), are both
unrelated to VMDq pools and kept as-is: the former is used by the
plain multi-COS RSS path, and the latter -- despite the name -- is
the standard DPDK VF-rxmode API used regardless of hardware VMDq
pool support.
Signed-off-by: Keegan Freyhof <keegan.freyhof@broadcom.com>
Signed-off-by: Mohammad Shuab Siddique <mohammad-shuab.siddique@broadcom.com>
---
v2:
* Explicitly reject any dev_conf->rxmode.mq_mode value
bnxt_mq_rx_configure() doesn't handle, instead of silently falling
through. Stephen Hemminger noted this validation was lost along
with VMDq support's own mq_mode switch cases.
doc/guides/nics/features/bnxt.ini | 1 -
drivers/net/bnxt/bnxt_ethdev.c | 27 ++------------
drivers/net/bnxt/bnxt_hwrm.c | 17 ---------
drivers/net/bnxt/bnxt_rxq.c | 58 +++++++------------------------
drivers/net/bnxt/rte_pmd_bnxt.c | 1 -
5 files changed, 14 insertions(+), 90 deletions(-)
diff --git a/doc/guides/nics/features/bnxt.ini b/doc/guides/nics/features/bnxt.ini
index f632de135a..447cb178b5 100644
--- a/doc/guides/nics/features/bnxt.ini
+++ b/doc/guides/nics/features/bnxt.ini
@@ -26,7 +26,6 @@ RSS hash = Y
RSS key update = Y
RSS reta update = Y
Inner RSS = Y
-VMDq = Y
SR-IOV = Y
VLAN filter = Y
Flow control = Y
diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c
index 4d4349457c..afb00cda43 100644
--- a/drivers/net/bnxt/bnxt_ethdev.c
+++ b/drivers/net/bnxt/bnxt_ethdev.c
@@ -1169,7 +1169,6 @@ static int bnxt_dev_info_get_op(struct rte_eth_dev *eth_dev,
{
struct rte_pci_device *pdev = RTE_CLASS_TO_BUS_DEVICE(eth_dev, *pdev);
struct bnxt *bp = eth_dev->data->dev_private;
- uint16_t max_vnics, i, j, vpool, vrxq;
unsigned int max_rx_rings;
int rc;
@@ -1191,7 +1190,6 @@ static int bnxt_dev_info_get_op(struct rte_eth_dev *eth_dev,
dev_info->max_tx_queues = max_rx_rings;
dev_info->reta_size = bnxt_rss_hash_tbl_size(bp);
dev_info->hash_key_size = HW_HASH_KEY_SIZE;
- max_vnics = bp->max_vnics;
/* MTU specifics */
dev_info->min_mtu = RTE_ETHER_MIN_MTU;
@@ -1254,29 +1252,8 @@ static int bnxt_dev_info_get_op(struct rte_eth_dev *eth_dev,
* TODO: default_rxconf, default_txconf, rx_desc_lim, and tx_desc_lim
* need further investigation.
*/
-
- /* VMDq resources */
- vpool = 64; /* RTE_ETH_64_POOLS */
- vrxq = 128; /* RTE_ETH_VMDQ_DCB_NUM_QUEUES */
- for (i = 0; i < 4; vpool >>= 1, i++) {
- if (max_vnics > vpool) {
- for (j = 0; j < 5; vrxq >>= 1, j++) {
- if (dev_info->max_rx_queues > vrxq) {
- if (vpool > vrxq)
- vpool = vrxq;
- goto found;
- }
- }
- /* Not enough resources to support VMDq */
- break;
- }
- }
- /* Not enough resources to support VMDq */
- vpool = 0;
- vrxq = 0;
-found:
- dev_info->max_vmdq_pools = vpool;
- dev_info->vmdq_queue_num = vrxq;
+ dev_info->max_vmdq_pools = 0;
+ dev_info->vmdq_queue_num = 0;
dev_info->vmdq_pool_base = 0;
dev_info->vmdq_queue_base = 0;
diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c
index 1615b36aae..beb1fa1390 100644
--- a/drivers/net/bnxt/bnxt_hwrm.c
+++ b/drivers/net/bnxt/bnxt_hwrm.c
@@ -892,24 +892,7 @@ int bnxt_hwrm_set_l2_filter(struct bnxt *bp,
int rc = 0;
struct hwrm_cfa_l2_filter_alloc_input req = {.req_type = 0 };
struct hwrm_cfa_l2_filter_alloc_output *resp = bp->hwrm_cmd_resp_addr;
- struct rte_eth_conf *dev_conf = &bp->eth_dev->data->dev_conf;
- const struct rte_eth_vmdq_rx_conf *conf =
- &dev_conf->rx_adv_conf.vmdq_rx_conf;
uint32_t enables = 0;
- uint16_t j = dst_id - 1;
-
- //TODO: Is there a better way to add VLANs to each VNIC in case of VMDQ
- if ((dev_conf->rxmode.mq_mode & RTE_ETH_MQ_RX_VMDQ_FLAG) &&
- conf->pool_map[j].pools & (1UL << j)) {
- PMD_DRV_LOG_LINE(DEBUG,
- "Add vlan %u to vmdq pool %u",
- conf->pool_map[j].vlan_id, j);
-
- filter->l2_ivlan = conf->pool_map[j].vlan_id;
- filter->enables |=
- HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_L2_IVLAN |
- HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_L2_IVLAN_MASK;
- }
if (filter->fw_l2_filter_id != UINT64_MAX)
bnxt_hwrm_clear_l2_filter(bp, filter);
diff --git a/drivers/net/bnxt/bnxt_rxq.c b/drivers/net/bnxt/bnxt_rxq.c
index ea3cdffbc0..b0a1e1a714 100644
--- a/drivers/net/bnxt/bnxt_rxq.c
+++ b/drivers/net/bnxt/bnxt_rxq.c
@@ -76,50 +76,25 @@ int bnxt_mq_rx_configure(struct bnxt *bp)
{
struct rte_eth_conf *dev_conf = &bp->eth_dev->data->dev_conf;
struct rte_eth_rss_conf *rss = &bp->rss_conf;
- const struct rte_eth_vmdq_rx_conf *conf =
- &dev_conf->rx_adv_conf.vmdq_rx_conf;
unsigned int i, j, nb_q_per_grp = 1, ring_idx = 0;
int start_grp_id, end_grp_id = 1, rc = 0;
struct bnxt_vnic_info *vnic;
struct bnxt_filter_info *filter;
- enum rte_eth_nb_pools pools = 1, max_pools = 0;
+ enum rte_eth_nb_pools pools = 1;
struct bnxt_rx_queue *rxq;
bp->nr_vnics = 0;
/* Multi-queue mode */
- if (dev_conf->rxmode.mq_mode & RTE_ETH_MQ_RX_VMDQ_DCB_RSS) {
- /* VMDq ONLY, VMDq+RSS, VMDq+DCB, VMDq+DCB+RSS */
-
- switch (dev_conf->rxmode.mq_mode) {
- case RTE_ETH_MQ_RX_VMDQ_RSS:
- case RTE_ETH_MQ_RX_VMDQ_ONLY:
- case RTE_ETH_MQ_RX_VMDQ_DCB_RSS:
- /* FALLTHROUGH */
- /* ETH_8/64_POOLs */
- pools = conf->nb_queue_pools;
- /* For each pool, allocate MACVLAN CFA rule & VNIC */
- max_pools = RTE_MIN(bp->max_vnics,
- RTE_MIN(bp->max_l2_ctx,
- RTE_MIN(bp->max_rsscos_ctx,
- RTE_ETH_64_POOLS)));
- PMD_DRV_LOG_LINE(DEBUG,
- "pools = %u max_pools = %u",
- pools, max_pools);
- if (pools > max_pools)
- pools = max_pools;
- break;
- case RTE_ETH_MQ_RX_RSS:
- pools = bp->rx_cosq_cnt ? bp->rx_cosq_cnt : 1;
- break;
- default:
- PMD_DRV_LOG_LINE(ERR, "Unsupported mq_mod %d",
- dev_conf->rxmode.mq_mode);
- rc = -EINVAL;
- goto err_out;
- }
- } else if (!dev_conf->rxmode.mq_mode) {
+ switch (dev_conf->rxmode.mq_mode) {
+ case RTE_ETH_MQ_RX_NONE:
+ case RTE_ETH_MQ_RX_RSS:
pools = bp->rx_cosq_cnt ? bp->rx_cosq_cnt : pools;
+ break;
+ default:
+ PMD_DRV_LOG_LINE(ERR, "Unsupported mq_mode %d",
+ dev_conf->rxmode.mq_mode);
+ return -EINVAL;
}
pools = RTE_MIN(pools, bp->rx_cp_nr_rings);
@@ -141,19 +116,13 @@ int bnxt_mq_rx_configure(struct bnxt *bp)
"rxq[%d] = %p vnic[%d] = %p",
ring_idx, rxq, i, vnic);
}
- if (i == 0) {
- if (dev_conf->rxmode.mq_mode & RTE_ETH_MQ_RX_VMDQ_DCB) {
- bp->eth_dev->data->promiscuous = 1;
- vnic->flags |= BNXT_VNIC_INFO_PROMISC;
- }
+ if (i == 0)
vnic->func_default = true;
- }
vnic->start_grp_id = start_grp_id;
vnic->end_grp_id = end_grp_id;
if (i) {
- if (dev_conf->rxmode.mq_mode & RTE_ETH_MQ_RX_VMDQ_DCB ||
- !(dev_conf->rxmode.mq_mode & RTE_ETH_MQ_RX_RSS))
+ if (!(dev_conf->rxmode.mq_mode & RTE_ETH_MQ_RX_RSS))
vnic->rss_dflt_cr = true;
goto skip_filter_allocation;
}
@@ -165,10 +134,7 @@ int bnxt_mq_rx_configure(struct bnxt *bp)
}
filter->mac_index = 0;
filter->flags |= HWRM_CFA_L2_FILTER_ALLOC_INPUT_FLAGS_OUTERMOST;
- /*
- * TODO: Configure & associate CFA rule for
- * each VNIC for each VMDq with MACVLAN, MACVLAN+TC
- */
+
STAILQ_INSERT_TAIL(&vnic->filter, filter, next);
skip_filter_allocation:
diff --git a/drivers/net/bnxt/rte_pmd_bnxt.c b/drivers/net/bnxt/rte_pmd_bnxt.c
index 4974e390e7..a0ce89fca9 100644
--- a/drivers/net/bnxt/rte_pmd_bnxt.c
+++ b/drivers/net/bnxt/rte_pmd_bnxt.c
@@ -435,7 +435,6 @@ int rte_pmd_bnxt_set_vf_rxmode(uint16_t port, uint16_t vf,
return -ENOTSUP;
}
- /* Is this really the correct mapping? VFd seems to think it is. */
if (rx_mask & RTE_ETH_VMDQ_ACCEPT_HASH_UC)
flag |= BNXT_VNIC_INFO_PROMISC;
--
2.47.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-09-29 0:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-21 3:08 [PATCH] net/bnxt: remove VMDq support Mohammad Shuab Siddique
2026-09-21 16:19 ` Stephen Hemminger
2026-09-22 7:50 ` David Marchand
2026-09-23 22:43 ` Mohammad Shuab Siddique
2026-09-29 0:21 ` [PATCH v2] " Mohammad Shuab Siddique
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox