<div dir="ltr">Hi ,<div>i am not getting reason,why highlighted code is added for 

OVS_ACTION_ATTR_USERSPACE.</div><div>What purpose it serves.</div><div>This code got added as part of feature &quot;    ofp-actions: Add truncate action.

The patch adds a new action to support packet truncation.

&quot;</div><div><br></div><div>Can somebody please help in understanding below part?<br><br>     file :&quot;lib/dpif-netdev.c&quot;</div><div>function : dp_execute_cb<br><div><br></div><div>case OVS_ACTION_ATTR_USERSPACE:<br>       .</div><div>.</div><div>.</div><div><br>            userdata = nl_attr_find_nested(a, OVS_USERSPACE_ATTR_USERDATA);<br>            ofpbuf_init(&amp;actions, 0);<br><br>           <b><i><font size="4"> if (packets_-&gt;trunc) {<br>                if (!should_steal) {<br>                    dp_packet_batch_clone(&amp;usr_pkt, packets_);<br>                    packets_ = &amp;usr_pkt;<br>                    clone = true;<br>                    dp_packet_batch_reset_cutlen(orig_packets_);<br>                }<br><br>                dp_packet_batch_apply_cutlen(packets_);</font></i></b><br>            }<br><br>        <br><br>            return;<br>        }<br>        break;<br></div></div><div><br></div><div>regards,</div><div>Bindiya</div></div>