[ovs-dev] [PATCH] ovs-ofctl:To set importance of a rule for eviction(OF14)

Ben Pfaff blp at nicira.com
Fri Nov 7 00:07:16 UTC 2014


On Wed, Nov 05, 2014 at 03:05:51PM +0530, Rishi Bamba wrote:
> From: rishibamba <rishibamba at users.noreply.github.com>
> 
> This patch enables a user to set importance for a new rule via add-flow
> OF1.4+ in the OVS and display the same via dump-flows command OF1.4+ .
> The changes are made in accordance with OpenFlow 1.4 specs to implement
> Eviction on the basis of "importance".This patch also enhances the
> diff-flows & replace-flows CLI for addition of importance parameter in
> a rule.
> 
> Also changes are made to DESIGN.md and added test cases for add-flow &
> replace-flows.
> 
> Signed-off-by: Rishi Bamba <rishi.bamba at tcs.com>

Thanks for the updated patch.  I have some comments.

The patch author should be the same as the signoff.  Please don't use
alternate spellings ("rishibamba") or invalid email addresses
("rishibamba at users.noreply.github.com"), as above.

The importance is not a flow timeout, so please do not use
OFP_FLOW_PERMANENT.  Just write 0.

In ofputil_decode_flow_mod() and ofputil_encode_flow_mod(), it is not
necessary to check both 'protocol' and OpenFlow version.  The version is
enough.  Please check for version >= OFP14_VERSION, instead of for OF1.4
and OF1.5 specifically, because it is likely that later OpenFlow
versions will use the same format.

Please document the new feature in utilities/ovs-ofctl.8.in and mention
it in NEWS.

Thanks,

Ben.



More information about the dev mailing list