DPDK patches and discussions
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: Ivan Boule <ivan.boule@6wind.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH] app/testpmd: add engine that replies to ARP and ICMP echo requests
Date: Fri, 16 May 2014 16:26:15 +0200	[thread overview]
Message-ID: <3536892.UpqT5Qq6ao@xps13> (raw)
In-Reply-To: <1398864611-31491-1-git-send-email-david.marchand@6wind.com>

> From: Ivan Boule <ivan.boule@6wind.com>
> 
> Add a new specific packet processing engine in the "testpmd" application
> that only replies to ARP requests and to ICMP echo requests.
> For this purpose, a new "icmpecho" forwarding mode is provided that can be
> dynamically selected with the following testpmd command:
> 
>     set fwd icmpecho
> 
> before starting the receipt of packets on the selected ports.
> 
> Then, the "icmpecho" engine performs the following actions on all received
> packets:
> 
> - replies to a received ARP request by sending back on the RX port a ARP
>   reply with a "sender hardware address" field containing the MAC address
>   of the RX port,
> 
> - replies to a ICMP echo request by sending back on the RX port a ICMP echo
>   reply, swapping the IP source and the IP destination address in the IP
>   header,
> 
> - otherwise, simply drops the received packet.
> 
> When replying to a received packet that was encapsulated into a VLAN tunnel,
> the reply is sent back with the same VLAN identifier.
> By default, the testpmd configures VLAN header stripping RX option on each
> port.
> This option is not managed by the icmpecho engine which won't detect
> packets that were encapsulated into a VLAN.
> To address this issue, the VLAN header stripping option must be previously
> switched off with the following testpmd command:
> 
>     vlan set strip off
> 
> When the "verbose" mode has been set with the testpmd command
> "set verbose 1", the "icmpecho" engine displays informations about each
> received packet.
> 
> The "icmpecho" forwarding engine can also be used to simply check port
> connectivity at the hardware level (check that cables are well-plugged)
> and at the software level (receipt of VLAN packets, for instance).
> 
> Signed-off-by: Ivan Boule <ivan.boule@6wind.com>

Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>

Applied for version 1.7.0.
-- 
Thomas

      reply	other threads:[~2014-05-16 14:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-30 13:30 David Marchand
2014-05-16 14:26 ` Thomas Monjalon [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3536892.UpqT5Qq6ao@xps13 \
    --to=thomas.monjalon@6wind.com \
    --cc=dev@dpdk.org \
    --cc=ivan.boule@6wind.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).