2014-01-29 Rafał Miłecki <[email protected]>:
> 2014-01-28 Jonas Gorski <[email protected]>:
>> On Tue, Jan 28, 2014 at 8:41 PM, Rafał Miłecki <[email protected]> wrote:
>>> 2014-01-21 Rafał Miłecki <[email protected]>:
>>>> I believe I'm observing packets leaking between WAN and LAN ports
>>>> during OpenWrt booting process. That happens on devices with bgmac,
>>>> but it seems to be related to the b53.
>>>
>>> Ping?
>>
>> Sorry, somehow forgot about this one.
>>
>> Probably moving the part enabling the software forwarding (and bailing
>> out if the bit doesn't stick) in b53_switch_reset() after the call to
>> b53_enable_ports() should fix it.
>
> On my:
>> Found chip with id 0x5357, rev 0x02 and package 0x0A
> code
> if (!(mgmt & SM_SW_FWD_EN)) {
> ...
> }
> is never called, because that bit is already set:
>> b53_common: B53_SWITCH_MODE: 0x06 (SM_SW_FWD_EN:0x02)
>
> So this won't help, because SM_SW_FWD_EN is already set after reset.

SM_SW_FWD_EN can be overriden using hardware straps, which is probably
the reason why it is already set after reset for your case and why you
are seeing leakage. Ideally the bootloader would have cleared that bit
to make sure it puts the switch back into unconfigured managed mode
and avoid the leakage.

If you have some way to access the MII registers in CFE, try to clear
that bit and see if the leakage still happens?
-- 
Florian
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to