Re: [PATCH 04/11] bridge: Cache vlan in the cb for faster egress lookup.
From: Stephen Hemminger <hidden>
Date: 2012-12-18 17:06:49
From: Stephen Hemminger <hidden>
Date: 2012-12-18 17:06:49
On Wed, 12 Dec 2012 15:01:10 -0500 Vlad Yasevich [off-list ref] wrote:
On input, cache the pointer to the bridge vlan info, so that on egress, we have can simply look at the port bitmap instead of traversing a vlan list. Signed-off-by: Vlad Yasevich <redacted>
This isn't going to be safe. Once packet is passed up, the cb[] can get overwritten by other things.