Skip to content

Commit

Permalink
openvswitch: Retrieve tunnel metadata when receiving from vport-netdev
Browse files Browse the repository at this point in the history
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: 614732e ("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>
  • Loading branch information
Thomas Graf authored and David S. Miller committed Jul 27, 2015
1 parent 9ece39a commit 597798e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/openvswitch/vport-netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 597798e

Please sign in to comment.