Thanks for the review. v9 disables netpoll for the shared TX ring,
takes a reference on each port's DT node until after phylink teardown,
uses GFP_KERNEL for the probe-time RX pool, and uses DEV_STATS_INC()
for the error and drop counters.
The linear and scatter-gather TX paths share the descriptor helper and
write the DMA words in little-endian order. The head is published once,
after the complete frame has been mapped. Updates to head, tail and
fault use WRITE_ONCE() to pair with the lockless reads. The shared lock
still protects mapping and completion against per-port TX and teardown.
RX now uses the refreshed XRAM write pointer. The IRQ handler still
acknowledges the latch, so a stale latch can cause an extra empty poll.
The current RX lock and jumbo skb allocation are retained. The receive
path copies from a persistent DMA pool, and transferring those pages
to the stack would also require changing how the pool is replenished.
The DRR bypass command addresses the port shaper, so v9 issues it once
per port, outside the queue loop. The per-queue DRR enable commands and
the existing LT/ST programming are retained.
I'll post the full v9 series separately.
Thanks,
Fil
Re: [PATCH net-next v8 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