diff options
author | Santiago Leon <santil@linux.vnet.ibm.com> | 2010-09-03 14:29:25 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-06 21:21:53 -0400 |
commit | 517e80e6786974651d460a11bb066eab2628ddf1 (patch) | |
tree | 26af62f72e53afa69ce4ae0ea9c964533fa31c94 /drivers/net/ibmveth.h | |
parent | 21c2decea0f52980a34c79167fe69df3a84d2788 (diff) |
ibmveth: Some formatting fixes
IbmVethNumBufferPools -> IBMVETH_NUM_BUFF_POOLS
Also change IBMVETH_MAX_MTU -> IBMVETH_MIN_MTU, it refers to the minimum
size not the maximum.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Santiago Leon <santil@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ibmveth.h')
-rw-r--r-- | drivers/net/ibmveth.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ibmveth.h b/drivers/net/ibmveth.h index 84e4ab224124..e6d779471770 100644 --- a/drivers/net/ibmveth.h +++ b/drivers/net/ibmveth.h | |||
@@ -92,10 +92,10 @@ static inline long h_illan_attributes(unsigned long unit_address, | |||
92 | #define h_change_logical_lan_mac(ua, mac) \ | 92 | #define h_change_logical_lan_mac(ua, mac) \ |
93 | plpar_hcall_norets(H_CHANGE_LOGICAL_LAN_MAC, ua, mac) | 93 | plpar_hcall_norets(H_CHANGE_LOGICAL_LAN_MAC, ua, mac) |
94 | 94 | ||
95 | #define IbmVethNumBufferPools 5 | 95 | #define IBMVETH_NUM_BUFF_POOLS 5 |
96 | #define IBMVETH_IO_ENTITLEMENT_DEFAULT 4243456 /* MTU of 1500 needs 4.2Mb */ | 96 | #define IBMVETH_IO_ENTITLEMENT_DEFAULT 4243456 /* MTU of 1500 needs 4.2Mb */ |
97 | #define IBMVETH_BUFF_OH 22 /* Overhead: 14 ethernet header + 8 opaque handle */ | 97 | #define IBMVETH_BUFF_OH 22 /* Overhead: 14 ethernet header + 8 opaque handle */ |
98 | #define IBMVETH_MAX_MTU 68 | 98 | #define IBMVETH_MIN_MTU 68 |
99 | #define IBMVETH_MAX_POOL_COUNT 4096 | 99 | #define IBMVETH_MAX_POOL_COUNT 4096 |
100 | #define IBMVETH_BUFF_LIST_SIZE 4096 | 100 | #define IBMVETH_BUFF_LIST_SIZE 4096 |
101 | #define IBMVETH_FILT_LIST_SIZE 4096 | 101 | #define IBMVETH_FILT_LIST_SIZE 4096 |
@@ -142,7 +142,7 @@ struct ibmveth_adapter { | |||
142 | void * filter_list_addr; | 142 | void * filter_list_addr; |
143 | dma_addr_t buffer_list_dma; | 143 | dma_addr_t buffer_list_dma; |
144 | dma_addr_t filter_list_dma; | 144 | dma_addr_t filter_list_dma; |
145 | struct ibmveth_buff_pool rx_buff_pool[IbmVethNumBufferPools]; | 145 | struct ibmveth_buff_pool rx_buff_pool[IBMVETH_NUM_BUFF_POOLS]; |
146 | struct ibmveth_rx_q rx_queue; | 146 | struct ibmveth_rx_q rx_queue; |
147 | int pool_config; | 147 | int pool_config; |
148 | int rx_csum; | 148 | int rx_csum; |