]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: pass mac_proto to ovs_vport_send
authorJiri Benc <jbenc@redhat.com>
Thu, 10 Nov 2016 15:28:19 +0000 (16:28 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Nov 2016 05:51:02 +0000 (00:51 -0500)
commitb423fa140ccc5fe62d49a6df4d34b8165ded81da
treec2735d79cdbe2eb2919d41939d3f575648e50b30
parent2d84f691e09fa07e5a88d6f107ca95be813e5240
openvswitch: pass mac_proto to ovs_vport_send

We'll need it to alter packets sent to ARPHRD_NONE interfaces.

Change do_output() to use the actual L2 header size of the packet when
deciding on the minimum cutlen. The assumption here is that what matters is
not the output interface hard_header_len but rather the L2 header of the
particular packet. For example, ARPHRD_NONE tunnels that encapsulate
Ethernet should get at least the Ethernet header.

Signed-off-by: Jiri Benc <jbenc@redhat.com>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/actions.c
net/openvswitch/vport.c
net/openvswitch/vport.h