From: Bruce Richardson <bruce.richardson@intel.com>
To: Jijiang Liu <jijiang.liu@intel.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH v4 2/8]i40e:support VxLAN packet identification in librte_pmd_i40e
Date: Mon, 29 Sep 2014 11:48:24 +0100 [thread overview]
Message-ID: <20140929104824.GD12072@BRICHA3-MOBL> (raw)
In-Reply-To: <1411696929-13856-3-git-send-email-jijiang.liu@intel.com>
On Fri, Sep 26, 2014 at 10:02:03AM +0800, Jijiang Liu wrote:
> Support tunneling UDP port configuration on i40e in librte_pmd_i40e.
> Currently, only VxLAN is implemented, which include
> - VxLAN UDP port initialization
> - Implement the APIs to configure VxLAN UDP port in librte_pmd_i40e.
>
> Signed-off-by: Jijiang Liu <jijiang.liu@intel.com>
> Acked-by: Helin Zhang <helin.zhang@intel.com>
> Acked-by: Jingjing Wu <jingjing.wu@intel.com>
> Acked-by: Jing Chen <jing.d.chen@intel.com>
>
> ---
> config/common_linuxapp | 5 +
> lib/librte_mbuf/rte_mbuf.h | 2 +
> lib/librte_pmd_i40e/i40e_ethdev.c | 200 ++++++++++++++++++++++++++++++++++++-
> lib/librte_pmd_i40e/i40e_ethdev.h | 5 +
> lib/librte_pmd_i40e/i40e_rxtx.c | 10 ++
> 5 files changed, 221 insertions(+), 1 deletions(-)
>
> diff --git a/config/common_linuxapp b/config/common_linuxapp
> index 5bee910..75a4cd7 100644
> --- a/config/common_linuxapp
> +++ b/config/common_linuxapp
> @@ -212,6 +212,11 @@ CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_VF=4
> CONFIG_RTE_LIBRTE_I40E_ITR_INTERVAL=-1
>
> #
> +# Compile tunneling UDP port support
> +#
> +CONFIG_RTE_LIBRTE_TUNNEL_UDP_PORT=4789
> +
> +#
> # Compile burst-oriented VIRTIO PMD driver
> #
> CONFIG_RTE_LIBRTE_VIRTIO_PMD=y
> diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h
> index 1c6e115..4955684 100644
> --- a/lib/librte_mbuf/rte_mbuf.h
> +++ b/lib/librte_mbuf/rte_mbuf.h
> @@ -538,6 +538,7 @@ static inline void rte_pktmbuf_reset(struct rte_mbuf *m)
> m->port = 0xff;
>
> m->ol_flags = 0;
> + m->reserved = 0;
> m->data_off = (RTE_PKTMBUF_HEADROOM <= m->buf_len) ?
> RTE_PKTMBUF_HEADROOM : m->buf_len;
>
> @@ -607,6 +608,7 @@ static inline void rte_pktmbuf_attach(struct rte_mbuf *mi, struct rte_mbuf *md)
> mi->pkt_len = mi->data_len;
> mi->nb_segs = 1;
> mi->ol_flags = md->ol_flags;
> + mi->reserved = md->reserved;
>
> __rte_mbuf_sanity_check(mi, 1);
> __rte_mbuf_sanity_check(md, 0);
If the "reserved" field in the mbuf is now being used, it should be renamed
to what its actually being used for. If it is still not being used, why this
change?
/Bruce
next prev parent reply other threads:[~2014-09-29 10:41 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-26 2:02 [dpdk-dev] [PATCH v4 0/8]Support VxLAN on Fortville Jijiang Liu
2014-09-26 2:02 ` [dpdk-dev] [PATCH v4 1/8]i40e:support VxLAN packet identification in librte_ether Jijiang Liu
2014-09-26 2:02 ` [dpdk-dev] [PATCH v4 2/8]i40e:support VxLAN packet identification in librte_pmd_i40e Jijiang Liu
2014-09-29 10:48 ` Bruce Richardson [this message]
2014-10-08 3:44 ` Liu, Jijiang
2014-09-26 2:02 ` [dpdk-dev] [PATCH v4 3/8]app/test-pmd:test VxLAN packet identification Jijiang Liu
2014-09-26 2:02 ` [dpdk-dev] [PATCH v4 4/8]librte_ether:add a common filter API Jijiang Liu
2014-09-26 2:02 ` [dpdk-dev] [PATCH v4 5/8]i40e:implement API of VxLAN packet filter in librte_pmd_i40e Jijiang Liu
2014-09-26 2:02 ` [dpdk-dev] [PATCH v4 6/8]app/testpmd:test VxLAN packet filter API Jijiang Liu
2014-09-26 2:02 ` [dpdk-dev] [PATCH v4 7/8]i40e:support VxLAN Tx checksum offload Jijiang Liu
2014-09-29 10:50 ` Bruce Richardson
2014-09-26 2:02 ` [dpdk-dev] [PATCH v4 8/8]app/testpmd:test " Jijiang Liu
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=20140929104824.GD12072@BRICHA3-MOBL \
--to=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--cc=jijiang.liu@intel.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).