diff options
author | Govindarajulu Varadarajan <_govind@gmx.com> | 2014-09-03 01:47:19 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-05 23:12:20 +0400 |
commit | a03bb56e67c357980dae886683733dab5583dc14 (patch) | |
tree | 787611409812bc85e37ebdbd09a86aa309b61f7b /drivers/net/ethernet/cisco/enic/enic.h | |
parent | e020836d953eb1ce5b9221b32f4613646a4d5772 (diff) | |
download | linux-a03bb56e67c357980dae886683733dab5583dc14.tar.xz |
enic: implement rx_copybreak
Calling dma_map_single()/dma_unmap_single() is quite expensive compared
to copying a small packet. So let's copy short frames and keep the buffers
mapped.
Signed-off-by: Govindarajulu Varadarajan <_govind@gmx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cisco/enic/enic.h')
-rw-r--r-- | drivers/net/ethernet/cisco/enic/enic.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/cisco/enic/enic.h b/drivers/net/ethernet/cisco/enic/enic.h index 962510f391df..5ba5ad071bb6 100644 --- a/drivers/net/ethernet/cisco/enic/enic.h +++ b/drivers/net/ethernet/cisco/enic/enic.h @@ -186,6 +186,7 @@ struct enic { ____cacheline_aligned struct vnic_cq cq[ENIC_CQ_MAX]; unsigned int cq_count; struct enic_rfs_flw_tbl rfs_h; + u32 rx_copybreak; }; static inline struct device *enic_get_dev(struct enic *enic) |