Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions modules/infra/control/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,15 @@ static int iface_port_reconfig(
return ret;

// always enable allmulti
if ((ret = rte_eth_allmulticast_enable(p->port_id)) < 0)
return errno_log(-ret, "rte_eth_allmulticast_enable");
iface->state |= GR_IFACE_S_ALLMULTI;
if ((ret = rte_eth_allmulticast_enable(p->port_id)) < 0) {
LOG(ERR, "rte_eth_allmulticast_enable failed %s", rte_strerror(-ret));
if ((ret = rte_eth_promiscuous_enable(p->port_id)) < 0)
return errno_log(-ret, "rte_eth_promiscuous_enable failed");
else
iface->state |= GR_IFACE_S_PROMISC_FIXED;
} else {
iface->state |= GR_IFACE_S_ALLMULTI;
}

if ((ret = port_plug(p)) < 0)
return ret;
Expand Down
Loading