Commit
38259bd7eb21 (dpif-netdev: Initialize new rxqs in
port_reconfigure().) 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 <ktraynor@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
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) {
return err;