diff options
author | Eric W Biederman <ebiederm@xmission.com> | 2014-03-18 03:26:50 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-18 13:25:41 -0400 |
commit | 37a622c1931d6fb41b30c308b4f077cb8696b16a (patch) | |
tree | 234bfe64cd2eaa4f3d5782520d204a8a83761c90 /drivers/net/ethernet/intel/i40evf/i40e_common.c | |
parent | 72f72dcc146fd7c4f9a8544626b961d52f1399b3 (diff) |
i40evf: Rename i40e_ptype_lookup i40evf_ptype_lookup
When compiling the i40e and the i40evf driver into the same kernel I get:
LD drivers/net/ethernet/intel/built-in.o
drivers/net/ethernet/intel/i40evf/built-in.o:(.data+0x300): multiple definition of `i40e_ptype_lookup'
drivers/net/ethernet/intel/i40e/built-in.o:(.data+0x780): first defined here
make[3]: *** [drivers/net/ethernet/intel/built-in.o] Error 1
make[2]: *** [drivers/net/ethernet/intel] Error 2
make[1]: *** [drivers/net/ethernet/] Error 2
make: *** [sub-make] Error 2
Fix this by renaming the i40evf version of this structure from
i40e_ptype_lookup to i40evf_ptype_lookup.
This build failure was introduced in:
commit 206812b5fccb808d1194344eaa942f68f59b2630
Author: Jesse Brandeburg <jesse.brandeburg@intel.com>
i40e/i40evf: i40e implementation for skb_set_hash
Cc: Jesse Brandeburg <jesse.brandeburg@intel.com>
Cc: Catherine Sullivan <catherine.sullivan@intel.com>
Signed-off-by: Eric W Biederman <ebiederm@xmission.com>
Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/intel/i40evf/i40e_common.c')
-rw-r--r-- | drivers/net/ethernet/intel/i40evf/i40e_common.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/intel/i40evf/i40e_common.c b/drivers/net/ethernet/intel/i40evf/i40e_common.c index 78618af271cf..c688a0fc5c29 100644 --- a/drivers/net/ethernet/intel/i40evf/i40e_common.c +++ b/drivers/net/ethernet/intel/i40evf/i40e_common.c | |||
@@ -160,7 +160,7 @@ i40e_status i40evf_aq_queue_shutdown(struct i40e_hw *hw, | |||
160 | } | 160 | } |
161 | 161 | ||
162 | 162 | ||
163 | /* The i40e_ptype_lookup table is used to convert from the 8-bit ptype in the | 163 | /* The i40evf_ptype_lookup table is used to convert from the 8-bit ptype in the |
164 | * hardware to a bit-field that can be used by SW to more easily determine the | 164 | * hardware to a bit-field that can be used by SW to more easily determine the |
165 | * packet type. | 165 | * packet type. |
166 | * | 166 | * |
@@ -173,10 +173,10 @@ i40e_status i40evf_aq_queue_shutdown(struct i40e_hw *hw, | |||
173 | * | 173 | * |
174 | * Typical work flow: | 174 | * Typical work flow: |
175 | * | 175 | * |
176 | * IF NOT i40e_ptype_lookup[ptype].known | 176 | * IF NOT i40evf_ptype_lookup[ptype].known |
177 | * THEN | 177 | * THEN |
178 | * Packet is unknown | 178 | * Packet is unknown |
179 | * ELSE IF i40e_ptype_lookup[ptype].outer_ip == I40E_RX_PTYPE_OUTER_IP | 179 | * ELSE IF i40evf_ptype_lookup[ptype].outer_ip == I40E_RX_PTYPE_OUTER_IP |
180 | * Use the rest of the fields to look at the tunnels, inner protocols, etc | 180 | * Use the rest of the fields to look at the tunnels, inner protocols, etc |
181 | * ELSE | 181 | * ELSE |
182 | * Use the enum i40e_rx_l2_ptype to decode the packet type | 182 | * Use the enum i40e_rx_l2_ptype to decode the packet type |
@@ -205,7 +205,7 @@ i40e_status i40evf_aq_queue_shutdown(struct i40e_hw *hw, | |||
205 | #define I40E_RX_PTYPE_INNER_PROT_TS I40E_RX_PTYPE_INNER_PROT_TIMESYNC | 205 | #define I40E_RX_PTYPE_INNER_PROT_TS I40E_RX_PTYPE_INNER_PROT_TIMESYNC |
206 | 206 | ||
207 | /* Lookup table mapping the HW PTYPE to the bit field for decoding */ | 207 | /* Lookup table mapping the HW PTYPE to the bit field for decoding */ |
208 | struct i40e_rx_ptype_decoded i40e_ptype_lookup[] = { | 208 | struct i40e_rx_ptype_decoded i40evf_ptype_lookup[] = { |
209 | /* L2 Packet types */ | 209 | /* L2 Packet types */ |
210 | I40E_PTT_UNUSED_ENTRY(0), | 210 | I40E_PTT_UNUSED_ENTRY(0), |
211 | I40E_PTT(1, L2, NONE, NOF, NONE, NONE, NOF, NONE, PAY2), | 211 | I40E_PTT(1, L2, NONE, NOF, NONE, NONE, NOF, NONE, PAY2), |