Hi Andrew,
Thanks for the review. The Cortina NI has one MAC_ADDR0 register for
octets 0–3 and one MAC_ADDR1 field for octet 4. Each GE port has its own
CONFIG2.mac_addr6 field at 0x18 + 12 * port. The vendor driver describes
the resulting address as the source for generated pause frames and
the address for WoL detection. It programs a separate, full-width
FE AN_BNG_MAC table for ingress destination addresses.
The v6 CPU path classifies ingress by logical source port. Our
five-octet restriction came from programming the shared NI prefix for
hardware pause. I have a candidate that allows independent addresses
using eth_mac_addr() and leaves hardware pause disabled. I'll test
arbitrary addresses on both ports, including RX and TX after changing
just one port, before rerolling.
I've split packet handling out of the NAPI loop and addressed the
declaration order and FE return. I'll keep the ndo_stop callback's
required int signature. It returns zero after teardown.
Thanks,
Fil
Re: [PATCH net-next v6 2/3] net: cortina: Add CS7542 CPU network datapath
- From
- fili…@gmail.com (Fil Dunsky)
- Organization
- Usenet Network
- Message-ID
- <1796…@gmail.com>
- Date
- Newsgroups
- linux.kernel.netdev