]> git.droids-corp.org - dpdk.git/blobdiff - examples/l3fwd/main.c
cryptodev: remove unused PCI probe/remove
[dpdk.git] / examples / l3fwd / main.c
index a50d628fca47855b1933efa9bf35e80574dbd72a..fd6605bffac004db2193c58b937ac3e3f1556285 100644 (file)
@@ -156,7 +156,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_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 = {
        },
        .rx_adv_conf = {
                .rss_conf = {
@@ -688,7 +688,7 @@ parse_args(int argc, char **argv)
                argv[optind-1] = prgname;
 
        ret = optind-1;
                argv[optind-1] = prgname;
 
        ret = optind-1;
-       optind = 0; /* reset getopt lib */
+       optind = 1; /* reset getopt lib */
        return ret;
 }
 
        return ret;
 }