]> git.droids-corp.org - dpdk.git/commitdiff
test: enable HW CRC strip by default
authorJeff Guo <jia.guo@intel.com>
Sat, 8 Apr 2017 05:56:41 +0000 (13:56 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 10 Apr 2017 20:36:31 +0000 (22:36 +0200)
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
test 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>
test/test-pipeline/init.c
test/test/test_kni.c
test/test/test_link_bonding.c
test/test/test_link_bonding_mode4.c
test/test/test_link_bonding_rssconf.c
test/test/test_pmd_perf.c

index aef082fc3a66b916bb8005e8dddc6ba762eac541..00dbc2795656f1a186b3e9ad27c0dea0cec8a2be 100644 (file)
@@ -105,7 +105,7 @@ static struct rte_eth_conf port_conf = {
                .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   = 0, /* CRC stripped by hardware */
+               .hw_strip_crc   = 1, /* CRC stripped by hardware */
        },
        .rx_adv_conf = {
                .rss_conf = {
index 309741cb353e741e4b55864075fce718427c3518..db17fdf3083f26efc80ed0f26575053f7d0ea4bd 100644 (file)
@@ -92,7 +92,7 @@ static const struct rte_eth_conf port_conf = {
                .hw_ip_checksum = 0,
                .hw_vlan_filter = 0,
                .jumbo_frame = 0,
-               .hw_strip_crc = 0,
+               .hw_strip_crc = 1,
        },
        .txmode = {
                .mq_mode = ETH_DCB_NONE,
index 32296604d23d363f71e9010b30a37a32ffb76e8f..52d2d052f5e6d96c3d916d30e43f59c286ae90c4 100644 (file)
@@ -172,7 +172,7 @@ struct rte_eth_rxmode rx_mode = {
        .hw_vlan_strip  = 1, /**< VLAN strip enabled. */
        .hw_vlan_extend = 0, /**< Extended VLAN disabled. */
        .jumbo_frame    = 0, /**< Jumbo Frame Support disabled. */
-       .hw_strip_crc   = 0, /**< CRC stripping by hardware disabled. */
+       .hw_strip_crc   = 1, /**< CRC stripping by hardware enabled. */
 };
 
 struct rte_fdir_conf fdir_conf = {
@@ -191,7 +191,7 @@ static struct rte_eth_conf default_pmd_conf = {
                .hw_ip_checksum = 0, /**< IP checksum offload enabled */
                .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,
index 15091b13db85b27a4840f4a2c0f4ea84babc4784..106ec624fb158cd98c146ee130223176231ef53b 100644 (file)
@@ -143,7 +143,7 @@ static struct rte_eth_conf default_pmd_conf = {
                .hw_ip_checksum = 0, /**< IP checksum offload enabled */
                .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,
index 9034f620a16d92c42baa874c4dbd09001c1e6fe8..ba7163ed63721ffdf4f4a06e4383ead712c6bd69 100644 (file)
@@ -116,7 +116,7 @@ static struct rte_eth_conf default_pmd_conf = {
                .hw_ip_checksum = 0, /**< IP checksum offload enabled */
                .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,
@@ -133,7 +133,7 @@ static struct rte_eth_conf rss_pmd_conf = {
                .hw_ip_checksum = 0, /**< IP checksum offload enabled */
                .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,
index e055aa07260d7340d883a69a78aa4fa19b55f82d..1ffd65a52a2f6fc6cf1ae93af396ab362b3d001b 100644 (file)
@@ -100,7 +100,7 @@ static struct rte_eth_conf port_conf = {
                .hw_vlan_strip  = 0, /**< VLAN strip enabled. */
                .hw_vlan_extend = 0, /**< Extended VLAN disabled. */
                .jumbo_frame    = 0, /**< Jumbo Frame Support disabled */
-               .hw_strip_crc   = 0, /**< CRC stripped by hardware */
+               .hw_strip_crc   = 1, /**< CRC stripped by hardware */
                .enable_scatter = 0, /**< scatter rx disabled */
        },
        .txmode = {