[dpdk-dev] [PATCH v4 1/2] examples/ipsec_secgw: switched to new offload API
Radu Nicolau
radu.nicolau at intel.com
Fri Oct 20 11:30:20 CEST 2017
Signed-off-by: Radu Nicolau <radu.nicolau at 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
More information about the dev
mailing list