X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=lib%2Fdpif-netdev.c;h=f184a35a1667e4ccbed6a36c0cd500fb61781b3a;hb=53e1d6f1ef360cb1b2daa70f4e65f9f5c02db2f9;hp=5e76dcd25db122bff24e0f872a5ce77040110b43;hpb=1bc50ef389d40be9ee215e66b49cf66fcbdb9eeb;p=cascardo%2Fovs.git diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index 5e76dcd25..f184a35a1 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -3128,34 +3128,6 @@ dp_execute_cb(void *aux_, struct dpif_packet **packets, int cnt, } break; - case OVS_ACTION_ATTR_HASH: { - const struct ovs_action_hash *hash_act; - uint32_t hash; - - hash_act = nl_attr_get(a); - - for (i = 0; i < cnt; i++) { - - if (hash_act->hash_alg == OVS_HASH_ALG_L4) { - /* Hash need not be symmetric, nor does it need to include - * L2 fields. */ - hash = hash_2words(dpif_packet_get_dp_hash(packets[i]), - hash_act->hash_basis); - } else { - VLOG_WARN("Unknown hash algorithm specified " - "for the hash action."); - hash = 2; - } - - if (!hash) { - hash = 1; /* 0 is not valid */ - } - - dpif_packet_set_dp_hash(packets[i], hash); - } - return; - } - case OVS_ACTION_ATTR_RECIRC: if (*depth < MAX_RECIRC_DEPTH) { @@ -3188,6 +3160,7 @@ dp_execute_cb(void *aux_, struct dpif_packet **packets, int cnt, case OVS_ACTION_ATTR_SET: case OVS_ACTION_ATTR_SET_MASKED: case OVS_ACTION_ATTR_SAMPLE: + case OVS_ACTION_ATTR_HASH: case OVS_ACTION_ATTR_UNSPEC: case __OVS_ACTION_ATTR_MAX: OVS_NOT_REACHED();