]>
Commit | Line | Data |
---|---|---|
4d1e5b62 AF |
1 | From: Yi Zou <yi.zou@intel.com> |
2 | Subject: [FcOE] user_mfs is never used | |
3 | References: bnc #459142 | |
4 | ||
5 | Signed-off-by: Yi Zou <yi.zou@intel.com> | |
6 | Acked-by: Bernhard Walle <bwalle@suse.de> | |
7 | --- | |
8 | ||
9 | drivers/scsi/fcoe/libfcoe.c | 2 -- | |
10 | include/scsi/libfcoe.h | 1 - | |
11 | 2 files changed, 3 deletions(-) | |
12 | ||
13 | ||
14 | --- a/drivers/scsi/fcoe/libfcoe.c | |
15 | +++ b/drivers/scsi/fcoe/libfcoe.c | |
16 | @@ -900,8 +900,6 @@ static int fcoe_device_notification(stru | |
17 | mfs = fc->real_dev->mtu - | |
18 | (sizeof(struct fcoe_hdr) + | |
19 | sizeof(struct fcoe_crc_eof)); | |
20 | - if (fc->user_mfs && fc->user_mfs < mfs) | |
21 | - mfs = fc->user_mfs; | |
22 | if (mfs >= FC_MIN_MAX_FRAME) | |
23 | fc_set_mfs(lp, mfs); | |
24 | new_status &= ~FC_LINK_UP; | |
25 | --- a/include/scsi/libfcoe.h | |
26 | +++ b/include/scsi/libfcoe.h | |
27 | @@ -46,7 +46,6 @@ struct fcoe_softc { | |
28 | struct net_device *phys_dev; /* device with ethtool_ops */ | |
29 | struct packet_type fcoe_packet_type; | |
30 | struct sk_buff_head fcoe_pending_queue; | |
31 | - u16 user_mfs; /* configured max frame size */ | |
32 | ||
33 | u8 dest_addr[ETH_ALEN]; | |
34 | u8 ctl_src_addr[ETH_ALEN]; |