[PATCH grout] infra: fix xconnect to send packets to peer
Andrei Rybchenko
rybchenko.andrei at gmail.com
Thu Mar 5 12:23:17 CET 2026
xconnect was broken some time ago and just loopback received
packets to input interface, but count Tx on peer.
There is no point to set port in mbuf since it is not actually
used right now.
Fixes: ba36a6b744ab ("eth_output: make output dependent on interface type")
Signed-off-by: Andrei Rybchenko <rybchenko.andrei at gmail.com>
---
modules/infra/datapath/xconnect.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/modules/infra/datapath/xconnect.c b/modules/infra/datapath/xconnect.c
index 4f2a97b3..e1c05fd2 100644
--- a/modules/infra/datapath/xconnect.c
+++ b/modules/infra/datapath/xconnect.c
@@ -19,7 +19,6 @@ enum edges {
static uint16_t
xconnect_process(struct rte_graph *graph, struct rte_node *node, void **objs, uint16_t nb_objs) {
- const struct iface_info_port *port;
const struct iface *iface, *peer;
struct rte_mbuf *mbuf;
rte_edge_t edge;
@@ -35,8 +34,7 @@ xconnect_process(struct rte_graph *graph, struct rte_node *node, void **objs, ui
IFACE_STATS_INC(rx, mbuf, iface);
if (peer != NULL && peer->type == GR_IFACE_TYPE_PORT) {
- port = iface_info_port(peer);
- mbuf->port = port->port_id;
+ mbuf_data(mbuf)->iface = peer;
edge = OUTPUT;
IFACE_STATS_INC(tx, mbuf, peer);
--
2.47.3
More information about the grout
mailing list