datapath:backport: openvswitch: Add packet truncation support.
authorWilliam Tu <u9012063@gmail.com>
Fri, 24 Jun 2016 14:42:29 +0000 (07:42 -0700)
committerPravin B Shelar <pshelar@ovn.org>
Fri, 24 Jun 2016 16:17:00 +0000 (09:17 -0700)
commit4c7804f14b9b5bbcd37cf9170781e2f820992532
treed140f11e92c4f744cc900e60b3032c9ea8c30fdd
parent337bebe91c94d9d201e28811c469869d32e978ff
datapath:backport: openvswitch: Add packet truncation support.

Upstream commit:
    commit f2a4d086ed4c588d32fe9b7aa67fead7280e7bf1
    Author: William Tu <u9012063@gmail.com>
    Date:   Fri Jun 10 11:49:33 2016 -0700

    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>
Signed-off-by: William Tu <u9012063@gmail.com>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
datapath/actions.c
datapath/datapath.c
datapath/datapath.h
datapath/flow_netlink.c
datapath/linux/compat/include/linux/openvswitch.h
datapath/vport.c