diff options
author | William Tu <u9012063@gmail.com> | 2016-06-20 17:26:17 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-22 23:34:39 +0300 |
commit | b95e5928fcc76d156352570858abdea7b2628efd (patch) | |
tree | a1957ca55d8e3a9d49af276d1b347340de0256c7 /net/bridge | |
parent | 904632a224b2ea39920e526cdc93565aaf1fb43e (diff) | |
download | linux-b95e5928fcc76d156352570858abdea7b2628efd.tar.xz |
openvswitch: Add packet len info to upcall.
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@gmail.com>
Cc: Pravin Shelar <pshelar@nicira.com>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge')
0 files changed, 0 insertions, 0 deletions