tech-net archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: RFC: vlan(4) use pkthdr instead of mtag
On Wed, Sep 20, 2017 at 08:26:30PM +0900, Shoichi YAMAGUCHI wrote:
> > No, I mean it just shouldn't use __predict_false for the branch. That's
> > a stupid assumption to make. Does that make it clearer?
>
> I understand, thanks.
> Should I modify not to use __predict_false in my patch at once?
> I think it isn't related to my patch directly and better to do with
> the fix of the other issue that VLAN_SUPPORTED does not work.
Just drop the __predict_false, no other changes are required in that
part.
> > In VLAN_TAG_VALUE it doesn't matter as it stores the entry in the field
> > reusing the remaining bits. In this case, the other bits of the vlan
> > field where used for other purpses.
>
> I think it doesn't matter, too. But, I want to change it to 0x0FFF instead of
> 0xFFFF, because 4095 is used for the mask in VLAN_TAG_VALUE
> before my patch.
In that case it might be better to put an assert into the set routine.
I.e. make sure the value is valid at the point it is set and not fix it
up later.
Otherwise, just let one of your co-workers commit the patch :)
Joerg
Home |
Main Index |
Thread Index |
Old Index