[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120723.161446.36265037346365173.davem@davemloft.net>
Date: Mon, 23 Jul 2012 16:14:46 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: ja@....bg
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH 2/2] ipv4: Change rt->rt_iif encoding.
From: David Miller <davem@...emloft.net>
Date: Mon, 23 Jul 2012 16:05:41 -0700 (PDT)
> From: Julian Anastasov <ja@....bg>
> Date: Tue, 24 Jul 2012 02:11:38 +0300 (EEST)
>
>> skb_iif: ifindex of device we arrived on
>>
>> If it has hidden semantic may be we can make this
>> comment more specific, does it survive some loops?
>
> Strangely I hadn't noticed this, and after the email I just sent
> out I was going to look into adding such a value :-)
>
> Great!
>
> I'll respin my patches to use that thing, thanks Julian.
Hmmm, the problem is that when we decapsulate VLAN devices, we're left
with the parent device's index in skb->skb_iif.
That's what all of that "orig_dev" logic in __netif_receive_skb() is
all about. The skb->dev is rewritten by vlan_do_receive() for that
case.
I wonder if we should just get rid of all of that orig_dev logic and
simply update skb->skb_iif every time we hit the code starting at
label "another_round"
I'll keep looking into this.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists