Re: [dpdk-dev] dev Digest, Vol 231, Issue 6

2019-01-21 Thread Anudeep Kumar
Hi,

I am unable to run l3fwd in dpdk. Please provide steps to run.

Regards,
Anudeep

On Mon, Jan 21, 2019, 18:49  Send dev mailing list submissions to
> dev@dpdk.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://mails.dpdk.org/listinfo/dev
> or, via email, send a message with subject or body 'help' to
> dev-requ...@dpdk.org
>
> You can reach the person managing the list at
> dev-ow...@dpdk.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of dev digest..."
>
>
> Today's Topics:
>
>1. [PATCH v6 2/4] examples/ip_pipeline: support QinQ PPPoE   encap
>   (Nemanja Marjanovic)
>2. [PATCH v6 1/4] pipeline: support QinQ PPPoE encap
>   (Nemanja Marjanovic)
>3. [PATCH v6 3/4] net/softnic: support QinQ PPPoE encap
>   (Nemanja Marjanovic)
>4. [PATCH v6 4/4] net: add PPPoE ethertypes (Nemanja Marjanovic)
>5. Re: [PATCH] doc: add deprecation notice to remove rte meter
>   color (Mohammad Abdul Awal)
>6. Re: [PATCH] service: fix parameter type (Van Haaren, Harry)
>7. Re: [PATCH] vhost: fix possible out of bound access for
>   indirect descs (Maxime Coquelin)
>8. Re: IXGBE, IOMMU DMAR DRHD handling fault issue (Hu, Xuekun)
>
>
> --
>
> Message: 1
> Date: Mon, 21 Jan 2019 11:11:22 +
> From: Nemanja Marjanovic 
> To: dev@dpdk.org
> Cc: jasvinder.si...@intel.com, cristian.dumitre...@intel.com, "Nemanja
> Marjanovic" 
> Subject: [dpdk-dev] [PATCH v6 2/4] examples/ip_pipeline: support QinQ
> PPPoE   encap
> Message-ID: <2019012124.16362-2-nemanja.marjano...@intel.com>
>
> From: "Nemanja Marjanovic" 
>
> Add implementation of QinQ PPPoE packet encapsulation action.
>
> Signed-off-by: Nemanja Marjanovic 
> Acked-by: Cristian Dumitrescu 
> ---
> v5:Removing footer from patch.
> v6:Added missing acks.
> ---
>  examples/ip_pipeline/cli.c | 46 --
>  1 file changed, 44 insertions(+), 2 deletions(-)
>
> diff --git a/examples/ip_pipeline/cli.c b/examples/ip_pipeline/cli.c
> index 910386282..dd05393ef 100644
> --- a/examples/ip_pipeline/cli.c
> +++ b/examples/ip_pipeline/cli.c
> @@ -1022,7 +1022,7 @@ static const char cmd_table_action_profile_help[] =
>  "   tc \n"
>  "   stats none | pkts | bytes | both]\n"
>  "   [tm spp  pps ]\n"
> -"   [encap ether | vlan | qinq | mpls | pppoe |\n"
> +"   [encap ether | vlan | qinq | mpls | pppoe | qinq_pppoe \n"
>  "   vxlan offset  ipv4 | ipv6 vlan on | off]\n"
>  "   [nat src | dst\n"
>  "   proto udp | tcp]\n"
> @@ -1290,7 +1290,10 @@ cmd_table_action_profile(char **tokens,
>
> p.encap.encap_mask = 1LLU <<
> RTE_TABLE_ACTION_ENCAP_VXLAN;
> n_extra_tokens = 5;
> -   } else {
> +   } else if (strcmp(tokens[t0 + 1], "qinq_pppoe") == 0)
> +   p.encap.encap_mask =
> +   1LLU << RTE_TABLE_ACTION_ENCAP_QINQ_PPPOE;
> +   else {
> snprintf(out, out_size, MSG_ARG_MISMATCH, "encap");
> return;
> }
> @@ -3090,6 +3093,7 @@ parse_match(char **tokens,
>   *   ether  
>   *   | vlan 
>   *   | qinq
> + *   | qinq_pppoe
> 
>   *   | mpls unicast | multicast
>   *   
>   *  label0   
> @@ -3391,6 +3395,44 @@ parse_table_action_encap(char **tokens,
> return 1 + 9;
> }
>
> +   /* qinq_pppoe */
> +   if (n_tokens && (strcmp(tokens[0], "qinq_pppoe") == 0)) {
> +   uint32_t svlan_pcp, svlan_dei, svlan_vid;
> +   uint32_t cvlan_pcp, cvlan_dei, cvlan_vid;
> +
> +   if ((n_tokens < 10) ||
> +   parse_mac_addr(tokens[1],
> +   &a->encap.qinq_pppoe.ether.da) ||
> +   parse_mac_addr(tokens[2],
> +   &a->encap.qinq_pppoe.ether.sa) ||
> +   parser_read_uint32(&svlan_pcp, tokens[3]) ||
> +   (svlan_pcp > 0x7) ||
> +   parser_read_uint32(&svlan_dei, tokens[4]) ||
> +   (svlan_dei > 0x1) ||
> +   parser_read_uint32(&svlan_vid, tokens[5]) ||
> +   (svlan_vid > 0xFFF) ||
> +   parser_read_uint32(&cvlan_pcp, tokens[6]) ||
> +   (cvlan_pcp > 0x7) ||
> +   parser_read_uint32(&cvlan_dei, tokens[7]) ||
> +   (cvlan_dei > 0x1) ||
> +   parser_read_uint32(&cvlan_vid, tokens[8]) ||
> +   (cvlan_vid > 0xFFF) ||
> +
>  parser_read_uint16(&a->encap.qinq_pppoe.pppoe.session_id,
> +   tokens[9]))
> +   return 0;
> +
> +   a->encap.qinq_pppoe.

Re: [dpdk-dev] dev Digest, Vol 231, Issue 6

2019-01-21 Thread Anudeep Kumar
Hi Keith,

Thanks for replying,

Now able to run l3fwd application,

But once we run l3fwd application,  able to send packets using pktgen,

but if we ping packets unable to reach destination. Why this issue ?
Is there any method to ping the Packets to destination?

Regards,
Anudeep


On Mon, Jan 21, 2019, 21:27 Wiles, Keith 
>
> > On Jan 21, 2019, at 7:23 AM, Anudeep Kumar 
> wrote:
> >
> > Hi,
> >
> > I am unable to run l3fwd in dpdk. Please provide steps to run.
> >
> > Regards,
> > Anudeep
> >
> > On Mon, Jan 21, 2019, 18:49  >
>
> Please provide much more information as to what the problem is here.
>
> DPDK version used?
> What do you mean by l3fwd does not work?
> Do you mean you can not compile DPDK or l3fwd?
> Does the l3fwd application crash or not execute?
> Does is it not find ports?
> Does is it not forward?
> What is the command line you used to build and run l3fwd plus DPDK?
>
> As you can tell you have left out a huge amount of data for us to help you?
>
> Please provide as much detail as you can, versions, machine, NICS, how you
> built DPDK, how you are testing l3fwd or the setup / configuration, too
> little information is bad.
>
> Regards,
> Keith
>
>
>