diff options
author | jpinto | 2016-12-28 13:57:48 +0100 |
---|---|---|
committer | David S. Miller | 2016-12-29 17:52:59 +0100 |
commit | 9eb12474787d32a968b5b01ecbf83acd2d230b25 (patch) | |
tree | 3637dfab667ad539b99bb6e12b9270ca023a445d /drivers/net/ethernet/stmicro/stmmac/common.h | |
parent | ipv4: Namespaceify tcp_max_syn_backlog knob (diff) | |
download | kernel-qcow2-linux-9eb12474787d32a968b5b01ecbf83acd2d230b25.tar.gz kernel-qcow2-linux-9eb12474787d32a968b5b01ecbf83acd2d230b25.tar.xz kernel-qcow2-linux-9eb12474787d32a968b5b01ecbf83acd2d230b25.zip |
stmmac: enable rx queues
When the hardware is synthesized with multiple queues, all queues are
disabled for default. This patch adds the rx queues configuration.
This patch was successfully tested in a Synopsys QoS Reference design.
Signed-off-by: Joao Pinto <jpinto@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/common.h')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/common.h b/drivers/net/ethernet/stmicro/stmmac/common.h index b13a144f72ad..6c9629138462 100644 --- a/drivers/net/ethernet/stmicro/stmmac/common.h +++ b/drivers/net/ethernet/stmicro/stmmac/common.h @@ -323,6 +323,9 @@ struct dma_features { /* TX and RX number of channels */ unsigned int number_rx_channel; unsigned int number_tx_channel; + /* TX and RX number of queues */ + unsigned int number_rx_queues; + unsigned int number_tx_queues; /* Alternate (enhanced) DESC mode */ unsigned int enh_desc; }; @@ -454,6 +457,8 @@ struct stmmac_ops { void (*core_init)(struct mac_device_info *hw, int mtu); /* Enable and verify that the IPC module is supported */ int (*rx_ipc)(struct mac_device_info *hw); + /* Enable RX Queues */ + void (*rx_queue_enable)(struct mac_device_info *hw, u32 queue); /* Dump MAC registers */ void (*dump_regs)(struct mac_device_info *hw); /* Handle extra events on specific interrupts hw dependent */ |