amd-xgbe: Add support for per DMA channel interrupts
This patch provides support for interrupts that are generated by the Tx/Rx DMA channel pairs of the device. This allows for Tx and Rx processing to run across multiple processsors. Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
174fd2597b
commit
9227dc5e57
@@ -173,6 +173,7 @@
|
||||
/* Device-tree clock names */
|
||||
#define XGBE_DMA_CLOCK "dma_clk"
|
||||
#define XGBE_PTP_CLOCK "ptp_clk"
|
||||
#define XGBE_DMA_IRQS "amd,per-channel-interrupt"
|
||||
|
||||
/* Timestamp support - values based on 50MHz PTP clock
|
||||
* 50MHz => 20 nsec
|
||||
@@ -359,6 +360,12 @@ struct xgbe_channel {
|
||||
unsigned int queue_index;
|
||||
void __iomem *dma_regs;
|
||||
|
||||
/* Per channel interrupt irq number */
|
||||
int dma_irq;
|
||||
|
||||
/* Netdev related settings */
|
||||
struct napi_struct napi;
|
||||
|
||||
unsigned int saved_ier;
|
||||
|
||||
unsigned int tx_timer_active;
|
||||
@@ -609,7 +616,8 @@ struct xgbe_prv_data {
|
||||
/* XPCS indirect addressing mutex */
|
||||
struct mutex xpcs_mutex;
|
||||
|
||||
int irq_number;
|
||||
int dev_irq;
|
||||
unsigned int per_channel_irq;
|
||||
|
||||
struct xgbe_hw_if hw_if;
|
||||
struct xgbe_desc_if desc_if;
|
||||
|
Reference in New Issue
Block a user