From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id BDAA3A046B for ; Fri, 28 Jun 2019 11:20:39 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E177328EE; Fri, 28 Jun 2019 11:20:38 +0200 (CEST) Received: from mail-io1-f47.google.com (mail-io1-f47.google.com [209.85.166.47]) by dpdk.org (Postfix) with ESMTP id 1BE9B2BF4; Thu, 27 Jun 2019 19:32:01 +0200 (CEST) Received: by mail-io1-f47.google.com with SMTP id u13so6595517iop.0; Thu, 27 Jun 2019 10:32:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=9jImkN9D6KSRs5iXnB5PZFsZyIH2fTkkGJubEn0/oYc=; b=TA0Ps/WQUaIhkEERlzdX4768bPaP8A/nGu12tfVKIMP4NUSyrSkXbX8i6yuSl5sCwI My3q8jBpWT0bgN/llE6zcRSSYSnGjRIpi4+d+BNE/FLOuHa21NfqIlqiSVSHXDm6RA6Z ycWFm7nHlI85RrCrX23vEXD6/TfObPN5HmjSS8Tc23TTQ9s3oUjCWFNwXQGZyvIsupHC K5iIT6rQQyvO91r9KcgkI20diEBYqBwvKzlL8XswOh1qM08pw3e8k9MHYY3LrQ8xIYxQ 8IVbWaUp8TEcqOGrkLth9SYJ4ldcKz8ku7fM7tN1I3Xl8hny0BD4sGKq8hm66TxPYZRJ b0gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=9jImkN9D6KSRs5iXnB5PZFsZyIH2fTkkGJubEn0/oYc=; b=kkeVM4sVd/p5S5w205yCdGCRcq1C1aq+18QIpvBjNDziRPXhocsQXHqyfLCPejMJ9N Dy9j0KI73UQI0czA1wXm4vZkS1bs9GZOhBeX6YDX/C0jmG9B8zXS1dk2XAoqpisiDj9N IrJ0aC+2Wy/cmhg4+lZczoywAEv9zT78GkgtWtfGp23b/n3lIOeEgkDUG2aNz+jtuX7g KW92TK4FS1wt1DQpB0HEWwSNcjHcFBVbVUAwrExOiF/OIbaZPevn7CNI/Gw+CKBRYj6X H4THJaQwgofpnf2AX5v5QVu/P8HIMrk/+nzmnfoshgdACEyKJzSRS43ZUBxKH4VpWATj 2BzQ== X-Gm-Message-State: APjAAAX+NGLcsDIecOXk0jVFiAPg+drUfDD1yJCf71zNgTiB+hFOwPkR zEZ5ITYZP+oOqXRik91TZckio7t/zGGSidkWXE0w2qct X-Google-Smtp-Source: APXvYqz8xvh3vD2eMhgSs/YnN9Bq+BC1CWrQjBiVJoOVqy9TR99+JHcBVX2QJKtNEYskHFUWCQ+JB64cO14AzfbCWZo= X-Received: by 2002:a6b:e20a:: with SMTP id z10mr5931608ioc.76.1561656720253; Thu, 27 Jun 2019 10:32:00 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: satyavalli rama Date: Thu, 27 Jun 2019 23:00:35 +0530 Message-ID: To: dev@dpdk.org, users@dpdk.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailman-Approved-At: Fri, 28 Jun 2019 11:20:38 +0200 Subject: [dpdk-users] Unable to Forward the Packet after UDP Payload Modification X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Hi With Scapy we are sending UDP Packets to =E2=80=98P0=E2=80=99 of DPDK - VM = -1 as below >>>sendp(Ether(src=3D"52:00:00:00:00:4a",dst=3D"50:00:00:00:00:8F")/IP(dst= =3D"20.20.20.20",proto=3D17)/UDP(sport=3D4009,dport=3D4019)/Raw(load=3D('He= lllo Basha')), iface=3D"ens9", loop=3D1, count=3D10, inter=3D1.0002) I'm modifying MAC address in l2fwd_simple_forward (52:00:00:00:AB:CD) and calling the below API after mac updation, in the =E2=80=98l2fwd=E2=80= =99 DPDK Sample application. But I'm unable to receive the =E2=80=98Appended Data=E2=80=99 on the Destin= ation Port. P0 itself is dropping our packets... Without Appending the Payload/Data we are able to see our packets on the Destination Port. Please let me know whether this issue is with respect to appending or buffering or checksum related... static void pkt_modify(struct rte_mbuf *m, unsigned dest_portid) { struct ether_hdr *eth; struct ipv4_hdr *ipv4; struct udp_hdr *udp; char *udpData; int len =3D 0; const char *mess =3D "Eureka"; char *newData =3D NULL; eth =3D rte_pktmbuf_mtod(m, struct ether_hdr *); ipv4 =3D rte_pktmbuf_mtod_offset(m, struct ipv4_hdr *,sizeof(struct ether_h= dr)); udp =3D rte_pktmbuf_mtod_offset(m, struct udp_hdr *, sizeof(struct ether_hdr)+sizeof(struct ipv4_hdr)); len =3D m->data_len; udpData =3D rte_pktmbuf_mtod_offset(m, char *, len); newData =3D rte_pktmbuf_append(m, 6); if (newData !=3D NULL) rte_memcpy(newData, mess, 6); len =3D m->data_len; udpData =3D rte_pktmbuf_mtod_offset(m, char *, sizeof(struct ether_hdr)+sizeof(struct ipv4_hdr)+ sizeof(struct udp_hdr)); return ; } Please help me on figuring out this.... Thanks, Satya Valli.