| To: | Jon Mason <jdmason@xxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] [BRIDGE] Set features based on slave's ones (was Ethernet Bridging: Enable Hardware Checksumming) |
| From: | "Catalin(ux aka Dino) BOIE" <util@xxxxxxxxxxxxxxx> |
| Date: | Fri, 20 May 2005 09:07:46 +0300 (EEST) |
| Cc: | netdev@xxxxxxxxxxx, davem@xxxxxxxxxxxxx |
| In-reply-to: | <20050519214015.GA19961@us.ibm.com> |
| References: | <Pine.LNX.4.62.0505191654400.24043@webhosting.rdsbv.ro> <20050519214015.GA19961@us.ibm.com> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
So, I invert BR_FEAT_MASK so I can, by default clear special features. Then I ored with dev->features, so I can enable special features if the slave device supports it. Then, I do & so I can clear stuff that is not supported by device, but the rest of br->dev features remains untouched. Let's test: if dev hash SG the code is like this: BR_FEAT_MASK = 1001 (only test SG and HW_CSUM) # br is inited br |= 1001 br &= 0001 | ~1001 br &= 0001 | 0110 br &= 0111 br = 1001 & 0111 = 0001 - so bit SG is set also in br. But not HW_CSUM because it's not in device. I can't see the code is wrong. Can you give me an example when it fails, please?
Nope. Not correct. Because we might enable LLTX on the bridge, but not in BR_FEAT_MASK. I will post a patch in few hours with all stuff updated. --- Catalin(ux aka Dino) BOIE catab at deuroconsult.ro http://kernel.umbrella.ro/ |
| Previous by Date: | Re: Network card driver problem (znb.o/tulip), Kosta Todorovic |
|---|---|
| Next by Date: | Re: 2.6.12-rc4-mm[12] - ULOG problem, Evgeniy Polyakov |
| Previous by Thread: | Re: [PATCH] [BRIDGE] Set features based on slave's ones (was Ethernet Bridging: Enable Hardware Checksumming), Jon Mason |
| Next by Thread: | Re: [PATCH] [BRIDGE] Set features based on slave's ones (was Ethernet Bridging: Enable Hardware Checksumming), Jon Mason |
| Indexes: | [Date] [Thread] [Top] [All Lists] |