aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYi Zou <yi.zou@intel.com>2009-07-29 20:05:26 -0400
committerJames Bottomley <James.Bottomley@suse.de>2009-08-22 18:52:10 -0400
commit15a521b4243f3d61971f8422f3e514ef009a42b8 (patch)
treecaa96b7f39015f500121a0e994a3c6dfc92d6507
parentd7179680d04f1e196b7a5f70e7f93bb1850407c6 (diff)
[SCSI] fcoe: Remove ifdef for NETIF_F_FCOE_CRC and NETIF_F_FSO
Remove the extra ifdef for NETIF_F_FSO and NETIF_F_FCOE_CRC since they are already defined in the current kernel as in include/linux/netdevice.h. Signed-off-by: Yi Zou <yi.zou@intel.com> Signed-off-by: Robert Love <robert.w.love@intel.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
-rw-r--r--drivers/scsi/fcoe/fcoe.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c
index 0306aa95eb34..ad21e87e4006 100644
--- a/drivers/scsi/fcoe/fcoe.c
+++ b/drivers/scsi/fcoe/fcoe.c
@@ -300,20 +300,16 @@ static int fcoe_netdev_config(struct fc_lport *lp, struct net_device *netdev)
300 if (fc->real_dev->features & NETIF_F_SG) 300 if (fc->real_dev->features & NETIF_F_SG)
301 lp->sg_supp = 1; 301 lp->sg_supp = 1;
302 302
303#ifdef NETIF_F_FCOE_CRC
304 if (netdev->features & NETIF_F_FCOE_CRC) { 303 if (netdev->features & NETIF_F_FCOE_CRC) {
305 lp->crc_offload = 1; 304 lp->crc_offload = 1;
306 FCOE_NETDEV_DBG(netdev, "Supports FCCRC offload\n"); 305 FCOE_NETDEV_DBG(netdev, "Supports FCCRC offload\n");
307 } 306 }
308#endif
309#ifdef NETIF_F_FSO
310 if (netdev->features & NETIF_F_FSO) { 307 if (netdev->features & NETIF_F_FSO) {
311 lp->seq_offload = 1; 308 lp->seq_offload = 1;
312 lp->lso_max = netdev->gso_max_size; 309 lp->lso_max = netdev->gso_max_size;
313 FCOE_NETDEV_DBG(netdev, "Supports LSO for max len 0x%x\n", 310 FCOE_NETDEV_DBG(netdev, "Supports LSO for max len 0x%x\n",
314 lp->lso_max); 311 lp->lso_max);
315 } 312 }
316#endif
317 if (netdev->fcoe_ddp_xid) { 313 if (netdev->fcoe_ddp_xid) {
318 lp->lro_enabled = 1; 314 lp->lro_enabled = 1;
319 lp->lro_xid = netdev->fcoe_ddp_xid; 315 lp->lro_xid = netdev->fcoe_ddp_xid;
@@ -1205,7 +1201,6 @@ int fcoe_xmit(struct fc_lport *lp, struct fc_frame *fp)
1205 FC_FCOE_ENCAPS_VER(hp, FC_FCOE_VER); 1201 FC_FCOE_ENCAPS_VER(hp, FC_FCOE_VER);
1206 hp->fcoe_sof = sof; 1202 hp->fcoe_sof = sof;
1207 1203
1208#ifdef NETIF_F_FSO
1209 /* fcoe lso, mss is in max_payload which is non-zero for FCP data */ 1204 /* fcoe lso, mss is in max_payload which is non-zero for FCP data */
1210 if (lp->seq_offload && fr_max_payload(fp)) { 1205 if (lp->seq_offload && fr_max_payload(fp)) {
1211 skb_shinfo(skb)->gso_type = SKB_GSO_FCOE; 1206 skb_shinfo(skb)->gso_type = SKB_GSO_FCOE;
@@ -1214,7 +1209,6 @@ int fcoe_xmit(struct fc_lport *lp, struct fc_frame *fp)
1214 skb_shinfo(skb)->gso_type = 0; 1209 skb_shinfo(skb)->gso_type = 0;
1215 skb_shinfo(skb)->gso_size = 0; 1210 skb_shinfo(skb)->gso_size = 0;
1216 } 1211 }
1217#endif
1218 /* update tx stats: regardless if LLD fails */ 1212 /* update tx stats: regardless if LLD fails */
1219 stats = fc_lport_get_stats(lp); 1213 stats = fc_lport_get_stats(lp);
1220 stats->TxFrames++; 1214 stats->TxFrames++;