]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: Add packet truncation support.
authorWilliam Tu <u9012063@gmail.com>
Fri, 10 Jun 2016 18:49:33 +0000 (11:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Jun 2016 00:58:03 +0000 (17:58 -0700)
commit4d2663f8f3d164357ba02169a2e4259d4dcaf6cd
tree7824d6446b4fd259cc7430641fd27475445361ba
parent2da21d845a8a9023b2c94a27b162247843a9b494
openvswitch: Add packet truncation support.

The patch adds a new OVS action, OVS_ACTION_ATTR_TRUNC, in order to
truncate packets. A 'max_len' is added for setting up the maximum
packet size, and a 'cutlen' field is to record the number of bytes
to trim the packet when the packet is outputting to a port, or when
the packet is sent to userspace.

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>
include/uapi/linux/openvswitch.h
net/openvswitch/actions.c
net/openvswitch/datapath.c
net/openvswitch/datapath.h
net/openvswitch/flow_netlink.c
net/openvswitch/vport.c