[ovs-discuss] regarding trunc feature changes for OVS_ACTION_ATTR_USERSPACE

bindiya Kurle bindiyakurle at gmail.com
Tue Nov 12 08:06:09 UTC 2019


Hi ,
i am not getting reason,why highlighted code is added for
OVS_ACTION_ATTR_USERSPACE.
What purpose it serves.
This code got added as part of feature "    ofp-actions: Add truncate
action. The patch adds a new action to support packet truncation. "

Can somebody please help in understanding below part?

     file :"lib/dpif-netdev.c"
function : dp_execute_cb

case OVS_ACTION_ATTR_USERSPACE:
       .
.
.

            userdata = nl_attr_find_nested(a, OVS_USERSPACE_ATTR_USERDATA);
            ofpbuf_init(&actions, 0);









* if (packets_->trunc) {                if (!should_steal) {
    dp_packet_batch_clone(&usr_pkt, packets_);                    packets_
= &usr_pkt;                    clone = true;
dp_packet_batch_reset_cutlen(orig_packets_);                }
  dp_packet_batch_apply_cutlen(packets_);*
            }



            return;
        }
        break;

regards,
Bindiya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20191112/54c9c0e8/attachment.html>


More information about the discuss mailing list