[ovs-dev] [PATCH] datapath:backport: openvswitch: Add packet len info to upcall.

pravin shelar pshelar at ovn.org
Fri Jun 24 23:15:39 UTC 2016


On Fri, Jun 24, 2016 at 3:50 PM, William Tu <u9012063 at gmail.com> wrote:
> Upstream commit:
>     commit b95e5928fcc76d156352570858abdea7b2628efd
>     Author: William Tu <u9012063 at gmail.com>
>     Date:   Mon Jun 20 07:26:17 2016 -0700
>
>     The commit f2a4d086ed4c ("openvswitch: Add packet truncation support.")
>     introduces packet truncation before sending to userspace upcall receiver.
>     This patch passes up the skb->len before truncation so that the upcall
>     receiver knows the original packet size. Potentially this will be used
>     by sFlow, where OVS translates sFlow config header=N to a sample action,
>     truncating packet to N byte in kernel datapath. Thus, only N bytes instead
>     of full-packet size is copied from kernel to userspace, saving the
>     kernel-to-userspace bandwidth.
>
>     Signed-off-by: William Tu <u9012063 at gmail.com>
>     Cc: Pravin Shelar <pshelar at nicira.com>
>     Acked-by: Pravin B Shelar <pshelar at ovn.org>
>     Signed-off-by: David S. Miller <davem at davemloft.net>
>
> Tested-at: https://travis-ci.org/williamtu/ovs-travis/builds/140135299
> Signed-off-by: William Tu <u9012063 at gmail.com>
> ---

looks good to me. Applied to master.



More information about the dev mailing list