[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <48EDC429.5090502@snapgear.com>
Date: Thu, 09 Oct 2008 18:43:21 +1000
From: Philip Craig <philipc@...pgear.com>
To: Herbert Xu <herbert@...dor.apana.org.au>
CC: "David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org,
Patrick McHardy <kaber@...sh.net>
Subject: Re: [PATCH 4/4] gre: Add Transparent Ethernet Bridging
Thanks for doing this work, much appreciated.
I haven't tested your patches yet, but when I was attempting this,
I needed the attached patch to get it to work with bridging and
netfilter, otherwise gre tries to call
skb->dst->ops->update_pmtu(skb->dst, mtu);
Herbert Xu wrote:
> @@ -530,7 +572,13 @@ static int ipgre_rcv(struct sk_buff *skb)
> dst_release(skb->dst);
> skb->dst = NULL;
> nf_reset(skb);
> +
> + if (tunnel->dev->type == ARPHRD_ETHER)
> + skb->protocol = eth_type_trans(skb, skb->dev);
Do you need to check pskb_may_pull(skb, ETH_HLEN)?
> +
> + skb_reset_network_header(skb);
> ipgre_ecn_decapsulate(iph, skb);
> +
> netif_rx(skb);
> read_unlock(&ipgre_lock);
> return(0);
View attachment "x" of type "text/plain" (1029 bytes)
Powered by blists - more mailing lists