[ovs-dev] [RFC] ofp-actions: Extend the use of max_len in OUTPUT action.

pravin shelar pshelar at ovn.org
Wed Mar 30 19:31:27 UTC 2016


On Wed, Mar 30, 2016 at 10:24 AM, William Tu <u9012063 at gmail.com> wrote:
> Hi Pravin,
>
> Thanks for the feedback.
> So another option is to add an new truncate action, and modify the size for
> all the following output packets.  For example, the output:1 remains the
> original size and the output:2 and output:3 will have size 100.
>   # ovs-ofctl add-flow br0 'actions=output:1, truncate:100, output:2,
> output:3'
>
> Or we can implement truncate_output action so that the truncate only scope
> at a specific output. For example:
>   # ovs-ofctl add-flow br0 'actions=output:1, truncate_output:
> (2,max_len=100), output:3'
> So that only output:2 is re-sized to 100.
>
> Which one do you think is more useful?
>
The comment was about datapath action. I am fine with ofctl interface
that you have.
As far as datapath truncate action is concerned I think we could limit
scope of the truncate action to next output or user-space action.



More information about the dev mailing list