aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/i40e/i40e_txrx.c
diff options
context:
space:
mode:
authorKevin Scott <kevin.c.scott@intel.com>2014-04-09 01:58:59 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2014-05-29 06:12:42 -0400
commitb2d36c03ef0ad2d373fa5db2dcc54f8ee5d65545 (patch)
tree9a8d1572d603cae538ffeadc8250e5540cd01b81 /drivers/net/ethernet/intel/i40e/i40e_txrx.c
parente7046ee1f820f7cbe870c1a62cd27b8fc420155d (diff)
i40e/i40evf: Remove reserved PCTYPE defines
Patch to remove PCTYPE definitions which are now reserved. Change-ID: I66c1c16a45a16f4894b2983101ab2a48ce03f1f4 Signed-off-by: Kevin Scott <kevin.c.scott@intel.com> Signed-off-by: Shannon Nelson <shannon.nelson@intel.com> Tested-by: Jim Young <jamesx.m.young@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e_txrx.c')
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_txrx.c29
1 files changed, 12 insertions, 17 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_txrx.c b/drivers/net/ethernet/intel/i40e/i40e_txrx.c
index 8d0ef445fa44..1ecd9aa9470a 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_txrx.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_txrx.c
@@ -184,7 +184,6 @@ static int i40e_add_del_fdir_udpv4(struct i40e_vsi *vsi,
184 struct iphdr *ip; 184 struct iphdr *ip;
185 bool err = false; 185 bool err = false;
186 int ret; 186 int ret;
187 int i;
188 static char packet[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x08, 0, 187 static char packet[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x08, 0,
189 0x45, 0, 0, 0x1c, 0, 0, 0x40, 0, 0x40, 0x11, 0, 0, 0, 0, 0, 0, 188 0x45, 0, 0, 0x1c, 0, 0, 0x40, 0, 0x40, 0x11, 0, 0, 0, 0, 0, 0,
190 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; 189 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
@@ -200,21 +199,17 @@ static int i40e_add_del_fdir_udpv4(struct i40e_vsi *vsi,
200 ip->saddr = fd_data->src_ip[0]; 199 ip->saddr = fd_data->src_ip[0];
201 udp->source = fd_data->src_port; 200 udp->source = fd_data->src_port;
202 201
203 for (i = I40E_FILTER_PCTYPE_NONF_UNICAST_IPV4_UDP; 202 fd_data->pctype = I40E_FILTER_PCTYPE_NONF_IPV4_UDP;
204 i <= I40E_FILTER_PCTYPE_NONF_IPV4_UDP; i++) { 203 ret = i40e_program_fdir_filter(fd_data, raw_packet, pf, add);
205 fd_data->pctype = i; 204 if (ret) {
206 ret = i40e_program_fdir_filter(fd_data, raw_packet, pf, add); 205 dev_info(&pf->pdev->dev,
207 206 "Filter command send failed for PCTYPE %d (ret = %d)\n",
208 if (ret) { 207 fd_data->pctype, ret);
209 dev_info(&pf->pdev->dev, 208 err = true;
210 "Filter command send failed for PCTYPE %d (ret = %d)\n", 209 } else {
211 fd_data->pctype, ret); 210 dev_info(&pf->pdev->dev,
212 err = true; 211 "Filter OK for PCTYPE %d (ret = %d)\n",
213 } else { 212 fd_data->pctype, ret);
214 dev_info(&pf->pdev->dev,
215 "Filter OK for PCTYPE %d (ret = %d)\n",
216 fd_data->pctype, ret);
217 }
218 } 213 }
219 214
220 return err ? -EOPNOTSUPP : 0; 215 return err ? -EOPNOTSUPP : 0;
@@ -263,7 +258,7 @@ static int i40e_add_del_fdir_tcpv4(struct i40e_vsi *vsi,
263 } 258 }
264 } 259 }
265 260
266 fd_data->pctype = I40E_FILTER_PCTYPE_NONF_IPV4_TCP_SYN; 261 fd_data->pctype = I40E_FILTER_PCTYPE_NONF_IPV4_TCP;
267 ret = i40e_program_fdir_filter(fd_data, raw_packet, pf, add); 262 ret = i40e_program_fdir_filter(fd_data, raw_packet, pf, add);
268 263
269 if (ret) { 264 if (ret) {