diff options
author | William Tu <u9012063@gmail.com> | 2018-03-08 02:38:48 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-08 20:50:29 +0300 |
commit | 46e371f0e78a82186a83cbcb4f4b8850417c7dd5 (patch) | |
tree | 150649038ef00e3eec9168efa7dd853500ef8ead /drivers | |
parent | 55a165a77c0767292caca7d7fb51a7ba68a76074 (diff) | |
download | linux-46e371f0e78a82186a83cbcb4f4b8850417c7dd5.tar.xz |
openvswitch: fix vport packet length check.
When sending a packet to a tunnel device, the dev's hard_header_len
could be larger than the skb->len in function packet_length().
In the case of ip6gretap/erspan, hard_header_len = LL_MAX_HEADER + t_hlen,
which is around 180, and an ARP packet sent to this tunnel has
skb->len = 42. This causes the 'unsign int length' to become super
large because it is negative value, causing the later ovs_vport_send
to drop it due to over-mtu size. The patch fixes it by setting it to 0.
Signed-off-by: William Tu <u9012063@gmail.com>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions