diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-06-18 22:56:30 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-10-17 14:35:18 +0100 |
commit | 55993c83effcef1d4d3ebcee4ee01151547699b0 (patch) | |
tree | 02115901b24df1f458d5376785c57f0633084831 /drivers/net/ethernet/freescale/fec.h | |
parent | 12d03c5f1759e2298e3017d701a668fff7da7757 (diff) |
net: fec: adjust ring threshold according to SG setting
When SG is enabled, we must ensure that there are up to 1+MAX_SKB_FRAGS
free entries in the ring. When SG is disabled, this can be reduced to
one, and we can allow smaller rings. Adjust this setting according to
the state of SG.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
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 17ab4849802d..19210acabcaa 100644 --- a/drivers/net/ethernet/freescale/fec.h +++ b/drivers/net/ethernet/freescale/fec.h @@ -298,6 +298,7 @@ struct fec_enet_private { /* The next free ring entry */ unsigned short tx_next; unsigned short tx_dirty; + unsigned short tx_min; unsigned short rx_next; unsigned short tx_ring_size; |