DPDK patches and discussions
 help / color / mirror / Atom feed
From: Radu Nicolau <radu.nicolau@intel.com>
To: dev@dpdk.org
Cc: sergio.gonzalez.monroy@intel.com, pablo.de.lara.guarch@intel.com,
	aviadye@dev.mellanox.co.il, Radu Nicolau <radu.nicolau@intel.com>
Subject: [dpdk-dev] [PATCH v4 1/2] examples/ipsec_secgw: switched to new offload API
Date: Fri, 20 Oct 2017 10:30:20 +0100	[thread overview]
Message-ID: <1508491821-2204-1-git-send-email-radu.nicolau@intel.com> (raw)
In-Reply-To: <1508428699-24363-1-git-send-email-radu.nicolau@intel.com>

Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
---
v2: updated commit message
v3: addressed feedback
v4: split in 2 patches

 examples/ipsec-secgw/ipsec-secgw.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c
index d451b3d..37274e8 100644
--- a/examples/ipsec-secgw/ipsec-secgw.c
+++ b/examples/ipsec-secgw/ipsec-secgw.c
@@ -204,11 +204,9 @@ static struct rte_eth_conf port_conf = {
 		.mq_mode	= ETH_MQ_RX_RSS,
 		.max_rx_pkt_len = ETHER_MAX_LEN,
 		.split_hdr_size = 0,
-		.header_split   = 0, /**< Header Split disabled */
-		.hw_ip_checksum = 1, /**< IP checksum offload enabled */
-		.hw_vlan_filter = 0, /**< VLAN filtering disabled */
-		.jumbo_frame    = 0, /**< Jumbo Frame Support disabled */
-		.hw_strip_crc   = 1, /**< CRC stripped by hardware */
+		.offloads = DEV_RX_OFFLOAD_CHECKSUM |
+			    DEV_RX_OFFLOAD_CRC_STRIP,
+		.ignore_offload_bitfield = 1,
 	},
 	.rx_adv_conf = {
 		.rss_conf = {
-- 
2.7.5

  parent reply	other threads:[~2017-10-20  9:34 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-18 11:55 [dpdk-dev] [PATCH] ipsec_secgw: added cmdline option for jumbo frames and switched to the " Radu Nicolau
2017-10-19 12:33 ` De Lara Guarch, Pablo
2017-10-19 15:26 ` [dpdk-dev] [PATCH v2] examples/ipsec_secgw: support jumbo frames Radu Nicolau
2017-10-19 15:40   ` De Lara Guarch, Pablo
2017-10-19 15:42     ` Nicolau, Radu
2017-10-19 15:58   ` [dpdk-dev] [PATCH v3] " Radu Nicolau
2017-10-19 16:15     ` Aviad Yehezkel
2017-10-20  9:28     ` [dpdk-dev] [PATCH v4] examples/ipsec_secgw: added jumbo frames support Radu Nicolau
2017-10-20  9:30     ` Radu Nicolau [this message]
2017-10-20  9:30       ` [dpdk-dev] [PATCH v4 2/2] " Radu Nicolau
2017-10-20 10:28         ` De Lara Guarch, Pablo
2017-10-20 10:27       ` [dpdk-dev] [PATCH v4 1/2] examples/ipsec_secgw: switched to new offload API De Lara Guarch, Pablo
2017-10-20 15:52       ` De Lara Guarch, Pablo

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=1508491821-2204-1-git-send-email-radu.nicolau@intel.com \
    --to=radu.nicolau@intel.com \
    --cc=aviadye@dev.mellanox.co.il \
    --cc=dev@dpdk.org \
    --cc=pablo.de.lara.guarch@intel.com \
    --cc=sergio.gonzalez.monroy@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).