diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2008-09-01 07:46:43 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-09-03 09:53:44 -0400 |
commit | cc12dac2e512c2b6185ed91899e09e9910630315 (patch) | |
tree | 4f44217788642343ad4dc0d17001ce8259bb39d8 /drivers/net/sfc/net_driver.h | |
parent | ecbd95c17c221913cc3c5776051b2fa8b3b97316 (diff) |
sfc: Reduce the size of struct efx_tx_buffer
Remove unmap_addr since it can be calculated from dma_addr, len and
unmap_len. This saves 4-16 bytes.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/sfc/net_driver.h')
-rw-r--r-- | drivers/net/sfc/net_driver.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/sfc/net_driver.h b/drivers/net/sfc/net_driver.h index f539e2e0da1b..6369f9253c7b 100644 --- a/drivers/net/sfc/net_driver.h +++ b/drivers/net/sfc/net_driver.h | |||
@@ -130,7 +130,6 @@ struct efx_special_buffer { | |||
130 | * This field is zero when the queue slot is empty. | 130 | * This field is zero when the queue slot is empty. |
131 | * @continuation: True if this fragment is not the end of a packet. | 131 | * @continuation: True if this fragment is not the end of a packet. |
132 | * @unmap_single: True if pci_unmap_single should be used. | 132 | * @unmap_single: True if pci_unmap_single should be used. |
133 | * @unmap_addr: DMA address to unmap | ||
134 | * @unmap_len: Length of this fragment to unmap | 133 | * @unmap_len: Length of this fragment to unmap |
135 | */ | 134 | */ |
136 | struct efx_tx_buffer { | 135 | struct efx_tx_buffer { |
@@ -140,7 +139,6 @@ struct efx_tx_buffer { | |||
140 | unsigned short len; | 139 | unsigned short len; |
141 | unsigned char continuation; | 140 | unsigned char continuation; |
142 | unsigned char unmap_single; | 141 | unsigned char unmap_single; |
143 | dma_addr_t unmap_addr; | ||
144 | unsigned short unmap_len; | 142 | unsigned short unmap_len; |
145 | }; | 143 | }; |
146 | 144 | ||