[ovs-dev] [PATCH] datapath: Set vport in skb when executed from userspace.

Ben Pfaff blp at nicira.com
Wed Sep 14 01:43:28 UTC 2011


On Tue, Sep 13, 2011 at 04:43:32PM -0700, Jesse Gross wrote:
> +	if (flow->key.eth.in_port != USHRT_MAX)
> +		OVS_CB(packet)->vport = get_vport_protected(dp,
> +							flow->key.eth.in_port);
> +

The nervous part of me would prefer "if (flow->key.eth.in_port <
DP_MAX_PORTS)", or similar, but I think that this is correct.



More information about the dev mailing list