sja1110 mirroring configuration

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

sja1110 mirroring configuration

321 Views
chongpeng
Contributor II

Hello,

I have a question regarding the mirroring configuration in the sja1110 ethernet switch, What I want to do is to have a debug tool that can setup / remove mirroring on the fly. The tool runs in a host SOC (NXP LX2160) and access the sja1110 registers through SPI interface.

 

After I look at the NXP document UM11107, it seems that, for my purpose, I need to touch bits in the following config tables:

1. "MAC configuration table" to setup the mirroring source port.

2. "general parameters table" to setup the destination port.

3. "VL forwarding table" to enable the debug (mirroring).

 

My questions is that, taking "MAC configuration table" as an example,  for me to change only a couple of bits on the fly, do I have to read back all 256 bits of the entry, and change the bits, and write all 156 bits back? Is there a way I can read only the 32-bits word that contains the bits I want to change and write the 32-bits back?

 

Thx.

Chong Peng 

 

0 Kudos
1 Reply

292 Views
abdullahzafar
NXP Employee
NXP Employee

Hi chongpeng,

 

No, it's not possible to write only dedicated bits dynamically in the e.g. MAC config table. Moreover, in the software app notes, section 5.1.3.2 "Writing a L2 lookup table entry" shows how L2 Lookup table entry is writen. This is just an example.


I hope that answers your question. 

BR,

Abdullah

0 Kudos