38259bd7eb21 added a memset for the dp_netdev_rxq of new rxq's to remove a valgrind warning for an index field in that struct. With the addition of that memset, it also means there are some existing resets on other fields in that struct that are no longer needed and gives the opportunity to simplify by removing them.
Signed-off-by: Kevin Traynor <[email protected]> --- lib/dpif-netdev.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index 599308d..db78318 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -3315,11 +3315,4 @@ port_reconfigure(struct dp_netdev_port *port) port->rxqs[i].port = port; - if (new_queue) { - dp_netdev_rxq_set_cycles(&port->rxqs[i], RXQ_CYCLES_PROC_CURR, 0); - dp_netdev_rxq_set_cycles(&port->rxqs[i], RXQ_CYCLES_PROC_HIST, 0); - for (unsigned j = 0; j < PMD_RXQ_INTERVAL_MAX; j++) { - dp_netdev_rxq_set_intrvl_cycles(&port->rxqs[i], 0); - } - } err = netdev_rxq_open(netdev, &port->rxqs[i].rx, i); if (err) { -- 1.8.3.1 _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
