]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: simplify metadata_dst usage in vxlan_rcv
authorJiri Benc <jbenc@redhat.com>
Tue, 23 Feb 2016 17:02:59 +0000 (18:02 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Feb 2016 20:17:12 +0000 (15:17 -0500)
commit93b318da55a570e0a6beeb3c46b3d3a6fd76be7b
tree6e4383a2dc4cec9568298126abc733bfdb672eaf
parent722fd10f3aba4e2d7cb1d9e912746d5666ab7f7b
vxlan: simplify metadata_dst usage in vxlan_rcv

Now when the packet is scrubbed early, the metadata_dst can be assigned to
the skb as soon as it is allocated. This simplifies the error cleanup path,
as the dst will be freed by kfree_skb. It is also not necessary to pass it
as a parameter to functions anymore.

Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c