[ovs-dev] [PATCH 4/4] dpif-netdev: Initialize packet RSS hash in dpif_netdev_execute().

William Tu u9012063 at gmail.com
Thu May 19 21:04:47 UTC 2016


Reported-by: William Tu <u9012063 at gmail.com>
> Signed-off-by: Daniele Di Proietto <diproiettod at vmware.com>
> ---
>  lib/dpif-netdev.c | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c
> index 33fd228..76a8c6b 100644
> --- a/lib/dpif-netdev.c
> +++ b/lib/dpif-netdev.c
> @@ -2364,6 +2364,11 @@ dpif_netdev_execute(struct dpif *dpif, struct
> dpif_execute *execute)
>          ovs_mutex_lock(&dp->port_mutex);
>      }
>
> +    if (!dp_packet_rss_valid(execute->packet)) {
> +        dp_packet_set_rss_hash(execute->packet,
> +                               flow_hash_5tuple(execute->flow, 0));
> +    }
> +
>      pp = execute->packet;
>      dp_netdev_execute_actions(pmd, &pp, 1, false, execute->actions,
>                                execute->actions_len);
> --


Looks good, I have reviewed and tested it.
Acked-by: William Tu <u9012063 at gmail.com>



More information about the dev mailing list