OSDN Git Service

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)
commit04a21ef303df74737259190d7d7cf77a129bb56a
treedbfad68032b37307a29dd0e6a24d36a141676512
parentcaa2da34fd25a37e9fd43343b6966fb9d730a6d5
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