]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-pf: Setup interrupts and NAPI handler
authorSunil Goutham <sgoutham@marvell.com>
Mon, 27 Jan 2020 13:05:19 +0000 (18:35 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jan 2020 13:33:39 +0000 (14:33 +0100)
commit52149ae2f610bbac9f25df4d5a34610c9d757b3b
treedbfad68032b37307a29dd0e6a24d36a141676512
parent001658b7a93a74fd2b66c12665062c1d901813a6
octeontx2-pf: Setup interrupts and NAPI handler

Completion queue (CQ) is the one with which HW notifies SW on a packet
reception or transmission. Each of the RQ and SQ are mapped to a unique
CQ and again both CQs are mapped to same interrupt ie the CINT. So that
each core has one interrupt source in whose handler both Rx and Tx
notifications are processed.

Also
- Registered a NAPI handler for the CINT.
- Setup coalescing parameters.
- IRQ affinity hints etc

Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/nic/Makefile
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c [new file with mode: 0644]
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.h