]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
openvswitch: Retrieve tunnel metadata when receiving from vport-netdev
authorThomas Graf <tgraf@suug.ch>
Thu, 23 Jul 2015 11:04:44 +0000 (13:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jul 2015 04:19:11 +0000 (21:19 -0700)
Retrieve the tunnel metadata for packets received by a net_device and
provide it to ovs_vport_receive() for flow key extraction.

[This hunk was in the GRE patch in the initial series and missed the
 cut for the initial submission for merging.]

Fixes: 614732eaa12d ("openvswitch: Use regular VXLAN net_device device")
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/vport-netdev.c

index 68d0582fc00167103f58b4247937feab6facaf2b..2254b742168f9f394ccab1a8d5679e6574cb2905 100644 (file)
@@ -58,7 +58,7 @@ static void netdev_port_receive(struct vport *vport, struct sk_buff *skb)
        skb_push(skb, ETH_HLEN);
        ovs_skb_postpush_rcsum(skb, skb->data, ETH_HLEN);
 
-       ovs_vport_receive(vport, skb, NULL);
+       ovs_vport_receive(vport, skb, skb_tunnel_info(skb, AF_INET));
        return;
 
 error: