summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro/stmmac/common.h
diff options
context:
space:
mode:
authorJoao Pinto2017-03-17 17:11:06 +0100
committerDavid S. Miller2017-03-22 01:24:01 +0100
commita8f5102af2a7740a4b3200a27beddf27f23f921a (patch)
treed4ea2723adb6b53dfe467c65227853a2371e9b1a /drivers/net/ethernet/stmicro/stmmac/common.h
parentnet: stmmac: enable multiple buffers (diff)
downloadkernel-qcow2-linux-a8f5102af2a7740a4b3200a27beddf27f23f921a.tar.gz
kernel-qcow2-linux-a8f5102af2a7740a4b3200a27beddf27f23f921a.tar.xz
kernel-qcow2-linux-a8f5102af2a7740a4b3200a27beddf27f23f921a.zip
net: stmmac: TX and RX queue priority configuration
This patch adds the configuration of RX and TX queues' priority. 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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/common.h b/drivers/net/ethernet/stmicro/stmmac/common.h
index badc4414d67b..e0b31e759c0e 100644
--- a/drivers/net/ethernet/stmicro/stmmac/common.h
+++ b/drivers/net/ethernet/stmicro/stmmac/common.h
@@ -469,6 +469,10 @@ struct stmmac_ops {
int (*rx_ipc)(struct mac_device_info *hw);
/* Enable RX Queues */
void (*rx_queue_enable)(struct mac_device_info *hw, u8 mode, u32 queue);
+ /* RX Queues Priority */
+ void (*rx_queue_prio)(struct mac_device_info *hw, u32 prio, u32 queue);
+ /* TX Queues Priority */
+ void (*tx_queue_prio)(struct mac_device_info *hw, u32 prio, u32 queue);
/* Program RX Algorithms */
void (*prog_mtl_rx_algorithms)(struct mac_device_info *hw, u32 rx_alg);
/* Program TX Algorithms */