Re: [ovs-dev] [PATCHv3 RFC] ofp-actions: Add a new action to truncate a packet.

2016-05-18 Thread Ben Pfaff
I think it's worthwhile to think about OpenFlow and datapath separately here. Multiple approaches might be appropriate for OpenFlow. The one that you implement in this patch, where "output" supports an additional "max_len" seems just fine to me. Has anyone mentioned a reason that it is not appro

Re: [ovs-dev] [PATCHv3 RFC] ofp-actions: Add a new action to truncate a packet.

2016-05-18 Thread William Tu
Hi, The RFC has been posted for a while and I started to rethink about the design decision of this packet truncation patch. Below listed a couple of different view points gathered from different people and any comments are welcomed. 1. Deferral Truncate (current patch) ---

[ovs-dev] [PATCHv3 RFC] ofp-actions: Add a new action to truncate a packet.

2016-05-04 Thread William Tu
The patch proposes adding a new action to support packet truncation. The new action is formatted as 'output(port=n,max_len=m)', as output to port n, with packet size being MIN(original_size, m). One use case is to enable port mirroring to send smaller packets to the destination port so that only