diff options
Diffstat (limited to 'drivers/scsi/fcoe/fcoe.c')
-rw-r--r-- | drivers/scsi/fcoe/fcoe.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index 64bb53156af0..0b333681a645 100644 --- a/drivers/scsi/fcoe/fcoe.c +++ b/drivers/scsi/fcoe/fcoe.c | |||
@@ -130,8 +130,6 @@ static struct fc_seq *fcoe_elsct_send(struct fc_lport *, | |||
130 | void *, u32 timeout); | 130 | void *, u32 timeout); |
131 | static void fcoe_recv_frame(struct sk_buff *skb); | 131 | static void fcoe_recv_frame(struct sk_buff *skb); |
132 | 132 | ||
133 | static void fcoe_get_lesb(struct fc_lport *, struct fc_els_lesb *); | ||
134 | |||
135 | /* notification function for packets from net device */ | 133 | /* notification function for packets from net device */ |
136 | static struct notifier_block fcoe_notifier = { | 134 | static struct notifier_block fcoe_notifier = { |
137 | .notifier_call = fcoe_device_notification, | 135 | .notifier_call = fcoe_device_notification, |
@@ -155,7 +153,6 @@ static int fcoe_vport_create(struct fc_vport *, bool disabled); | |||
155 | static int fcoe_vport_disable(struct fc_vport *, bool disable); | 153 | static int fcoe_vport_disable(struct fc_vport *, bool disable); |
156 | static void fcoe_set_vport_symbolic_name(struct fc_vport *); | 154 | static void fcoe_set_vport_symbolic_name(struct fc_vport *); |
157 | static void fcoe_set_port_id(struct fc_lport *, u32, struct fc_frame *); | 155 | static void fcoe_set_port_id(struct fc_lport *, u32, struct fc_frame *); |
158 | static void fcoe_ctlr_get_lesb(struct fcoe_ctlr_device *); | ||
159 | static void fcoe_fcf_get_vlan_id(struct fcoe_fcf_device *); | 156 | static void fcoe_fcf_get_vlan_id(struct fcoe_fcf_device *); |
160 | 157 | ||
161 | static struct fcoe_sysfs_function_template fcoe_sysfs_templ = { | 158 | static struct fcoe_sysfs_function_template fcoe_sysfs_templ = { |
@@ -2858,43 +2855,6 @@ static void fcoe_set_vport_symbolic_name(struct fc_vport *vport) | |||
2858 | NULL, NULL, 3 * lport->r_a_tov); | 2855 | NULL, NULL, 3 * lport->r_a_tov); |
2859 | } | 2856 | } |
2860 | 2857 | ||
2861 | /** | ||
2862 | * fcoe_get_lesb() - Fill the FCoE Link Error Status Block | ||
2863 | * @lport: the local port | ||
2864 | * @fc_lesb: the link error status block | ||
2865 | */ | ||
2866 | static void fcoe_get_lesb(struct fc_lport *lport, | ||
2867 | struct fc_els_lesb *fc_lesb) | ||
2868 | { | ||
2869 | struct net_device *netdev = fcoe_netdev(lport); | ||
2870 | |||
2871 | __fcoe_get_lesb(lport, fc_lesb, netdev); | ||
2872 | } | ||
2873 | |||
2874 | static void fcoe_ctlr_get_lesb(struct fcoe_ctlr_device *ctlr_dev) | ||
2875 | { | ||
2876 | struct fcoe_ctlr *fip = fcoe_ctlr_device_priv(ctlr_dev); | ||
2877 | struct net_device *netdev = fcoe_netdev(fip->lp); | ||
2878 | struct fcoe_fc_els_lesb *fcoe_lesb; | ||
2879 | struct fc_els_lesb fc_lesb; | ||
2880 | |||
2881 | __fcoe_get_lesb(fip->lp, &fc_lesb, netdev); | ||
2882 | fcoe_lesb = (struct fcoe_fc_els_lesb *)(&fc_lesb); | ||
2883 | |||
2884 | ctlr_dev->lesb.lesb_link_fail = | ||
2885 | ntohl(fcoe_lesb->lesb_link_fail); | ||
2886 | ctlr_dev->lesb.lesb_vlink_fail = | ||
2887 | ntohl(fcoe_lesb->lesb_vlink_fail); | ||
2888 | ctlr_dev->lesb.lesb_miss_fka = | ||
2889 | ntohl(fcoe_lesb->lesb_miss_fka); | ||
2890 | ctlr_dev->lesb.lesb_symb_err = | ||
2891 | ntohl(fcoe_lesb->lesb_symb_err); | ||
2892 | ctlr_dev->lesb.lesb_err_block = | ||
2893 | ntohl(fcoe_lesb->lesb_err_block); | ||
2894 | ctlr_dev->lesb.lesb_fcs_error = | ||
2895 | ntohl(fcoe_lesb->lesb_fcs_error); | ||
2896 | } | ||
2897 | |||
2898 | static void fcoe_fcf_get_vlan_id(struct fcoe_fcf_device *fcf_dev) | 2858 | static void fcoe_fcf_get_vlan_id(struct fcoe_fcf_device *fcf_dev) |
2899 | { | 2859 | { |
2900 | struct fcoe_ctlr_device *ctlr_dev = | 2860 | struct fcoe_ctlr_device *ctlr_dev = |