]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/openvswitch/vport.c
openvswitch: Add tunneling interface.
[karo-tx-linux.git] / net / openvswitch / vport.c
index 176d449351eb24c7d0dbca9edbde711d510de087..413287a1877f6e70898bfbdf358b3798c0ad38e6 100644 (file)
@@ -325,7 +325,8 @@ int ovs_vport_get_options(const struct vport *vport, struct sk_buff *skb)
  * Must be called with rcu_read_lock.  The packet cannot be shared and
  * skb->data should point to the Ethernet header.
  */
-void ovs_vport_receive(struct vport *vport, struct sk_buff *skb)
+void ovs_vport_receive(struct vport *vport, struct sk_buff *skb,
+                      struct ovs_key_ipv4_tunnel *tun_key)
 {
        struct pcpu_tstats *stats;
 
@@ -335,6 +336,7 @@ void ovs_vport_receive(struct vport *vport, struct sk_buff *skb)
        stats->rx_bytes += skb->len;
        u64_stats_update_end(&stats->syncp);
 
+       OVS_CB(skb)->tun_key = tun_key;
        ovs_dp_process_received_packet(vport, skb);
 }