On 21 August 2014 13:44, Maxim Uvarov <[email protected]> wrote:
> On 08/21/2014 10:57 AM, Santosh Shukla wrote: > >> Noticed that enabling promiscous mode helps l2fwd application work with >> pktgen >> or dpdk-pktgen >> > > Can you please describe problem more? Why interface has to be in > promiscuous mode? > We will set the destmac(to the interface's mac) on all the packets that egress out of ixia ports(and that is why it was working there), but incase of pktgen-dpdk destmac was set to the counterpart's destmac(different one and not the receiving interface's mac). Due to this, interface was dropping all the packets. Tried to figure out a way to set the destmac in pktgen-dpdk, for some reason that was not working. > Thanks, > Maxim. > > > >> Suggested-by: Venkatesh Vivekanandan <[email protected]> >> Signed-off-by: Santosh Shukla <[email protected]> >> --- >> platform/linux-dpdk/odp_packet_dpdk.c | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/platform/linux-dpdk/odp_packet_dpdk.c >> b/platform/linux-dpdk/odp_packet_dpdk.c >> index d5c8e80..92edac5 100644 >> --- a/platform/linux-dpdk/odp_packet_dpdk.c >> +++ b/platform/linux-dpdk/odp_packet_dpdk.c >> @@ -135,6 +135,9 @@ int setup_pkt_dpdk(pkt_dpdk_t * const pkt_dpdk, const >> char *netdev, >> ODP_DBG("dpdk tx queue setup done\n"); >> } >> + /* Enable promiscous mode */ >> + rte_eth_promiscuous_enable(portid); >> + >> /* Start device */ >> ret = rte_eth_dev_start(portid); >> if (ret < 0) >> > > > _______________________________________________ > lng-odp mailing list > [email protected] > http://lists.linaro.org/mailman/listinfo/lng-odp >
_______________________________________________ lng-odp mailing list [email protected] http://lists.linaro.org/mailman/listinfo/lng-odp
