diff options
author | Nimrod Andy <B38611@freescale.com> | 2014-09-23 11:40:55 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-27 00:05:21 +0400 |
commit | befe82133588c3b3c44c5e803b4b434e8665a673 (patch) | |
tree | 40592db0d9bada9f2f21b847def23799d94d9c70 /drivers/net/ethernet/freescale/fec.h | |
parent | f4a775d14489a801a5b8b0540e23ab82e2703091 (diff) | |
download | linux-befe82133588c3b3c44c5e803b4b434e8665a673.tar.xz |
net: fec: Add Ftype to BD to distiguish three tx queues for AVB
The current driver loss Ftype field init for BD, which cause tx
queue #1 and #2 cannot work well.
Add Ftype field to BD to distiguish three queues for AVB:
0 -> Best Effort
1 -> ClassA
2 -> ClassB
Signed-off-by: Fugang Duan <B38611@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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/fec.h b/drivers/net/ethernet/freescale/fec.h index 26fb1de98826..354a30954fb1 100644 --- a/drivers/net/ethernet/freescale/fec.h +++ b/drivers/net/ethernet/freescale/fec.h @@ -308,6 +308,7 @@ struct bufdesc_ex { #define RCMR_CMP_2 (RCMR_CMP_CFG(4, 0) | RCMR_CMP_CFG(5, 1) | \ RCMR_CMP_CFG(6, 2) | RCMR_CMP_CFG(7, 3)) #define RCMR_CMP(X) ((X == 1) ? RCMR_CMP_1 : RCMR_CMP_2) +#define FEC_TX_BD_FTYPE(X) ((X & 0xF) << 20) /* The number of Tx and Rx buffers. These are allocated from the page * pool. The code may assume these are power of two, so it it best |