summaryrefslogtreecommitdiff
path: root/examples/l2fwd-keepalive
diff options
context:
space:
mode:
authorJeff Guo <jia.guo@intel.com>2017-04-08 13:56:39 +0800
committerThomas Monjalon <thomas.monjalon@6wind.com>2017-04-10 22:36:37 +0200
commit60da774e6e59ea1d4eee324920c1fb56af00d17e (patch)
tree344547bb008bb6c26c0fabaec2cdbec237e4f6db /examples/l2fwd-keepalive
parentb219c8cc07ecedef968d33a68af54d2a7a7ccc51 (diff)
downloaddpdk-60da774e6e59ea1d4eee324920c1fb56af00d17e.zip
dpdk-60da774e6e59ea1d4eee324920c1fb56af00d17e.tar.gz
dpdk-60da774e6e59ea1d4eee324920c1fb56af00d17e.tar.xz
examples: enable HW CRC strip by default
Since VF can not disable/enable HW CRC strip for non-DPDK PF drivers, and kernel driver almost default enable that feature, if disable it in example app's rxmode, VF driver will report the VF launch failure. So this patch default to enable HW CRC strip to let VF launch successful. Cc: stable@dpdk.org Signed-off-by: Jeff Guo <jia.guo@intel.com> Acked-by: Jingjing Wu <jingjing.wu@intel.com>
Diffstat (limited to 'examples/l2fwd-keepalive')
-rw-r--r--examples/l2fwd-keepalive/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/l2fwd-keepalive/main.c b/examples/l2fwd-keepalive/main.c
index 068f4e5..4623d2a 100644
--- a/examples/l2fwd-keepalive/main.c
+++ b/examples/l2fwd-keepalive/main.c
@@ -116,7 +116,7 @@ static const struct rte_eth_conf port_conf = {
.hw_ip_checksum = 0, /**< IP checksum offload disabled */
.hw_vlan_filter = 0, /**< VLAN filtering disabled */
.jumbo_frame = 0, /**< Jumbo Frame Support disabled */
- .hw_strip_crc = 0, /**< CRC stripped by hardware */
+ .hw_strip_crc = 1, /**< CRC stripped by hardware */
},
.txmode = {
.mq_mode = ETH_MQ_TX_NONE,