crypto/aesni_mb: support CPU crypto
[dpdk.git] / drivers / event / dsw / dsw_event.c
index c31a4c4..8323903 100644 (file)
@@ -442,10 +442,10 @@ dsw_select_emigration_target(struct dsw_evdev *dsw,
                            uint8_t *targets_len)
 {
        int16_t source_port_load = port_loads[source_port_id];
-       struct dsw_queue_flow *candidate_qf;
-       uint8_t candidate_port_id;
+       struct dsw_queue_flow *candidate_qf = NULL;
+       uint8_t candidate_port_id = 0;
        int16_t candidate_weight = -1;
-       int16_t candidate_flow_load;
+       int16_t candidate_flow_load = -1;
        uint16_t i;
 
        if (source_port_load < DSW_MIN_SOURCE_LOAD_FOR_MIGRATION)
@@ -1065,11 +1065,6 @@ dsw_port_ctl_process(struct dsw_evdev *dsw, struct dsw_port *port)
 {
        struct dsw_ctl_msg msg;
 
-       /* So any table loads happens before the ring dequeue, in the
-        * case of a 'paus' message.
-        */
-       rte_smp_rmb();
-
        if (dsw_port_ctl_dequeue(port, &msg) == 0) {
                switch (msg.type) {
                case DSW_CTL_PAUS_REQ: