diff options
author | Fugang Duan <B38611@freescale.com> | 2014-09-13 01:00:49 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-14 01:32:16 +0400 |
commit | 9fc095f136b5436fafb22f31c4871b5edcb362b9 (patch) | |
tree | 5306b6cd63c26d70707fc8a300d96c353e8eec41 /drivers/net/ethernet/freescale/fec.h | |
parent | 4d494cdc92b3b9a0f5fb9e1560810fa27d5a0489 (diff) | |
download | linux-9fc095f136b5436fafb22f31c4871b5edcb362b9.tar.xz |
net: fec: parser max queue number from dt file
By default, the tx/rx queue number is 1, user can config the queue number
at DTS file like this:
fsl,num-tx-queues=<3>;
fsl,num-rx-queues=<3>
Since i.MX6SX enet-AVB IP support multi queues, so use multi queues
interface to allocate and set up an Ethernet device.
Signed-off-by: Fugang Duan <B38611@freescale.com>
Signed-off-by: Frank Li <Frank.Li@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/fec.h')
-rw-r--r-- | drivers/net/ethernet/freescale/fec.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/fec.h b/drivers/net/ethernet/freescale/fec.h index b2b91f8826a2..72fb90f6ec18 100644 --- a/drivers/net/ethernet/freescale/fec.h +++ b/drivers/net/ethernet/freescale/fec.h @@ -356,6 +356,8 @@ struct fec_enet_private { bool ptp_clk_on; struct mutex ptp_clk_mutex; + unsigned int num_tx_queues; + unsigned int num_rx_queues; /* The saved address of a sent-in-place packet/buffer, for skfree(). */ struct fec_enet_priv_tx_q *tx_queue[FEC_ENET_MAX_TX_QS]; |