Re: [PATCH 2/3] [VLAN]: Update iif when receiving via VLAN device
From: Ben Greear <hidden>
Date: 2006-06-30 00:45:23
David Miller wrote:
I'm saying that, we don't need the refcount, just setting the skb->input_index thing, unless someone actually cares about the input device. As long as the packet hits not paths that care about the SKB input device, no atomic refcounts are taken. It's just an integer sitting there in the SKB.
Also, if this lookup is to be done multiple times per skb, we could do the lookup once and grab the ref at that time and store the pointer in the skb. If you wanted to be truly horible about it..could use a 64-bit input_index and copy the pointer there (and set a flag somewhere noting it is no longer an index but a pointer) so save the extra 64-bits. Ben
- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
-- Ben Greear [off-list ref] Candela Technologies Inc http://www.candelatech.com