net/mlx5: add C++ include guard to public header
[dpdk.git] / drivers / net / enic / enic_main.c
index 5cc6d9f..97d97ea 100644 (file)
@@ -1137,7 +1137,7 @@ int enic_disable(struct enic *enic)
        }
 
        /* If we were using interrupts, set the interrupt vector to -1
-        * to disable interrupts.  We are not disabling link notifcations,
+        * to disable interrupts.  We are not disabling link notifications,
         * though, as we want the polling of link status to continue working.
         */
        if (enic->rte_dev->data->dev_conf.intr_conf.lsc)
@@ -1665,6 +1665,7 @@ int enic_set_mtu(struct enic *enic, uint16_t new_mtu)
 
        /* replace Rx function with a no-op to avoid getting stale pkts */
        eth_dev->rx_pkt_burst = enic_dummy_recv_pkts;
+       rte_eth_fp_ops[enic->port_id].rx_pkt_burst = eth_dev->rx_pkt_burst;
        rte_mb();
 
        /* Allow time for threads to exit the real Rx function. */
@@ -1699,6 +1700,7 @@ int enic_set_mtu(struct enic *enic, uint16_t new_mtu)
        /* put back the real receive function */
        rte_mb();
        enic_pick_rx_handler(eth_dev);
+       rte_eth_fp_ops[enic->port_id].rx_pkt_burst = eth_dev->rx_pkt_burst;
        rte_mb();
 
        /* restart Rx traffic */