app/testpmd: set and clear keep CRC offload flag
[dpdk.git] / doc / guides / sample_app_ug / flow_classify.rst
index a009596..003ed03 100644 (file)
@@ -279,9 +279,6 @@ Forwarding application is shown below:
         int retval;
         uint16_t q;
 
-        if (port >= rte_eth_dev_count())
-            return -1;
-
         /* Configure the Ethernet device. */
         retval = rte_eth_dev_configure(port, rx_rings, tx_rings, &port_conf);
         if (retval != 0)