drivers/net, ipv6: Select IPv6 fragment idents for virtio UFO packets
authorBen Hutchings <ben@decadent.org.uk>
Thu, 30 Oct 2014 18:27:17 +0000 (18:27 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 1 Jan 2015 01:27:51 +0000 (01:27 +0000)
commit540aa5b743b3ba2c7651f3e311a0fc8d4865534e
treeaff2ade4c63653cb26417148c12c88ab3cecef14
parent543563d72f5b098ab719f296b6357d88701c1a1e
drivers/net, ipv6: Select IPv6 fragment idents for virtio UFO packets

commit 5188cd44c55db3e92cd9e77a40b5baa7ed4340f7 upstream.

UFO is now disabled on all drivers that work with virtio net headers,
but userland may try to send UFO/IPv6 packets anyway.  Instead of
sending with ID=0, we should select identifiers on their behalf (as we
used to).

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Fixes: 916e4cf46d02 ("ipv6: reuse ip6_frag_id from ip6_ufo_append_data")
Signed-off-by: David S. Miller <davem@davemloft.net>
[bwh: For 3.2, net/ipv6/output_core.c is a completely new file]
drivers/net/macvtap.c
drivers/net/tun.c
include/net/ipv6.h
net/ipv6/Makefile
net/ipv6/output_core.c [new file with mode: 0644]