[ovs-dev] [PATCH] datapath: set skb->pkt_type to PACKET_OUTGOING when sending encapsulated skb

Jesse Gross jesse at nicira.com
Thu Jul 18 17:02:52 UTC 2013


On Tue, Jul 16, 2013 at 8:20 PM, Isaku Yamahata <yamahata at valinux.co.jp> wrote:
> diff --git a/datapath/vport-gre.c b/datapath/vport-gre.c
> index c74f5fc..604fe94 100644
> --- a/datapath/vport-gre.c
> +++ b/datapath/vport-gre.c
> @@ -175,6 +175,7 @@ static int __send(struct vport *vport, struct sk_buff *skb,
>
>         skb->local_df = 1;
>
> +       skb->pkt_type = PACKET_OUTGOING;
>         return iptunnel_xmit(net, rt, skb, saddr,
>                              OVS_CB(skb)->tun_key->ipv4_dst, IPPROTO_GRE,
>                              OVS_CB(skb)->tun_key->ipv4_tos,

This is supposed to be OVS-specific code for GRE encapsulation but I
don't see a reason that it wouldn't also apply to GRE tunnels that are
Linux devices. Is there a reason that this doesn't belong in the
upstream kernel instead?
X-CudaMail-Whitelist-To: dev at openvswitch.org



More information about the dev mailing list