net/sfc: update comment about representor support
authorViacheslav Galaktionov <viacheslav.galaktionov@oktetlabs.ru>
Mon, 11 Oct 2021 14:48:57 +0000 (17:48 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 12 Oct 2021 16:44:11 +0000 (18:44 +0200)
The representor support has been implemented to some extent, and the fact
that ethdev mport is equivalent to entity mport is by design.

Fixes: 1fb65e4dae8a ("net/sfc: support flow action port ID in transfer rules")
Cc: stable@dpdk.org
Signed-off-by: Viacheslav Galaktionov <viacheslav.galaktionov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Reviewed-by: Andy Moreton <amoreton@xilinx.com>
drivers/net/sfc/sfc_mae.c

index 7be7705..fa60c94 100644 (file)
@@ -228,10 +228,7 @@ sfc_mae_attach(struct sfc_adapter *sa)
        sfc_log_init(sa, "assign RTE switch port");
        switch_port_request.type = SFC_MAE_SWITCH_PORT_INDEPENDENT;
        switch_port_request.entity_mportp = &entity_mport;
-       /*
-        * As of now, the driver does not support representors, so
-        * RTE ethdev MPORT simply matches that of the entity.
-        */
+       /* RTE ethdev MPORT matches that of the entity for independent ports. */
        switch_port_request.ethdev_mportp = &entity_mport;
        switch_port_request.ethdev_port_id = sas->port_id;
        rc = sfc_mae_assign_switch_port(mae->switch_domain_id,