diff options
author | Maggie Zhang <xmzhang@brocade.com> | 2010-12-09 22:07:46 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-12-21 13:24:50 -0500 |
commit | df0f1933eb5454a5c481311837076056557467ad (patch) | |
tree | 6eb376420c7fd6db38b0b6b045a3b6eda28d9281 /drivers/scsi/bfa/bfa_fcs_rport.c | |
parent | 402c6eec1bd04581c04de758e4efddc020b78f91 (diff) |
[SCSI] bfa: remove unused and empty functions
Removed unused and empty functions.
Signed-off-by: Maggie Zhang <xmzhang@brocade.com>
Signed-off-by: Jing Huang <xmzhang@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bfa/bfa_fcs_rport.c')
-rw-r--r-- | drivers/scsi/bfa/bfa_fcs_rport.c | 116 |
1 files changed, 0 insertions, 116 deletions
diff --git a/drivers/scsi/bfa/bfa_fcs_rport.c b/drivers/scsi/bfa/bfa_fcs_rport.c index f5b5cbba3f43..7928bc8c1ed7 100644 --- a/drivers/scsi/bfa/bfa_fcs_rport.c +++ b/drivers/scsi/bfa/bfa_fcs_rport.c | |||
@@ -2613,106 +2613,6 @@ bfa_fcs_rport_prlo(struct bfa_fcs_rport_s *rport, __be16 ox_id) | |||
2613 | * fcs_rport_api FCS rport API. | 2613 | * fcs_rport_api FCS rport API. |
2614 | */ | 2614 | */ |
2615 | 2615 | ||
2616 | /* | ||
2617 | * Direct API to add a target by port wwn. This interface is used, for | ||
2618 | * example, by bios when target pwwn is known from boot lun configuration. | ||
2619 | */ | ||
2620 | bfa_status_t | ||
2621 | bfa_fcs_rport_add(struct bfa_fcs_lport_s *port, wwn_t *pwwn, | ||
2622 | struct bfa_fcs_rport_s *rport, struct bfad_rport_s *rport_drv) | ||
2623 | { | ||
2624 | bfa_trc(port->fcs, *pwwn); | ||
2625 | |||
2626 | return BFA_STATUS_OK; | ||
2627 | } | ||
2628 | |||
2629 | /* | ||
2630 | * Direct API to remove a target and its associated resources. This | ||
2631 | * interface is used, for example, by driver to remove target | ||
2632 | * ports from the target list for a VM. | ||
2633 | */ | ||
2634 | bfa_status_t | ||
2635 | bfa_fcs_rport_remove(struct bfa_fcs_rport_s *rport_in) | ||
2636 | { | ||
2637 | |||
2638 | struct bfa_fcs_rport_s *rport; | ||
2639 | |||
2640 | bfa_trc(rport_in->fcs, rport_in->pwwn); | ||
2641 | |||
2642 | rport = bfa_fcs_lport_get_rport_by_pwwn(rport_in->port, rport_in->pwwn); | ||
2643 | if (rport == NULL) { | ||
2644 | /* | ||
2645 | * TBD Error handling | ||
2646 | */ | ||
2647 | bfa_trc(rport_in->fcs, rport_in->pid); | ||
2648 | return BFA_STATUS_UNKNOWN_RWWN; | ||
2649 | } | ||
2650 | |||
2651 | /* | ||
2652 | * TBD if this remote port is online, send a logo | ||
2653 | */ | ||
2654 | return BFA_STATUS_OK; | ||
2655 | |||
2656 | } | ||
2657 | |||
2658 | /* | ||
2659 | * Remote device status for display/debug. | ||
2660 | */ | ||
2661 | void | ||
2662 | bfa_fcs_rport_get_attr(struct bfa_fcs_rport_s *rport, | ||
2663 | struct bfa_rport_attr_s *rport_attr) | ||
2664 | { | ||
2665 | struct bfa_rport_qos_attr_s qos_attr; | ||
2666 | bfa_fcs_lport_t *port = rport->port; | ||
2667 | bfa_port_speed_t rport_speed = rport->rpf.rpsc_speed; | ||
2668 | |||
2669 | memset(rport_attr, 0, sizeof(struct bfa_rport_attr_s)); | ||
2670 | |||
2671 | rport_attr->pid = rport->pid; | ||
2672 | rport_attr->pwwn = rport->pwwn; | ||
2673 | rport_attr->nwwn = rport->nwwn; | ||
2674 | rport_attr->cos_supported = rport->fc_cos; | ||
2675 | rport_attr->df_sz = rport->maxfrsize; | ||
2676 | rport_attr->state = bfa_fcs_rport_get_state(rport); | ||
2677 | rport_attr->fc_cos = rport->fc_cos; | ||
2678 | rport_attr->cisc = rport->cisc; | ||
2679 | rport_attr->scsi_function = rport->scsi_function; | ||
2680 | rport_attr->curr_speed = rport->rpf.rpsc_speed; | ||
2681 | rport_attr->assigned_speed = rport->rpf.assigned_speed; | ||
2682 | |||
2683 | bfa_rport_get_qos_attr(rport->bfa_rport, &qos_attr); | ||
2684 | rport_attr->qos_attr = qos_attr; | ||
2685 | |||
2686 | rport_attr->trl_enforced = BFA_FALSE; | ||
2687 | if (bfa_fcport_is_ratelim(port->fcs->bfa)) { | ||
2688 | if (rport_speed == BFA_PORT_SPEED_UNKNOWN) { | ||
2689 | /* Use default ratelim speed setting */ | ||
2690 | rport_speed = | ||
2691 | bfa_fcport_get_ratelim_speed(rport->fcs->bfa); | ||
2692 | } | ||
2693 | |||
2694 | if (rport_speed < bfa_fcs_lport_get_rport_max_speed(port)) | ||
2695 | rport_attr->trl_enforced = BFA_TRUE; | ||
2696 | } | ||
2697 | } | ||
2698 | |||
2699 | /* | ||
2700 | * Per remote device statistics. | ||
2701 | */ | ||
2702 | void | ||
2703 | bfa_fcs_rport_get_stats(struct bfa_fcs_rport_s *rport, | ||
2704 | struct bfa_rport_stats_s *stats) | ||
2705 | { | ||
2706 | *stats = rport->stats; | ||
2707 | } | ||
2708 | |||
2709 | void | ||
2710 | bfa_fcs_rport_clear_stats(struct bfa_fcs_rport_s *rport) | ||
2711 | { | ||
2712 | memset((char *)&rport->stats, 0, | ||
2713 | sizeof(struct bfa_rport_stats_s)); | ||
2714 | } | ||
2715 | |||
2716 | struct bfa_fcs_rport_s * | 2616 | struct bfa_fcs_rport_s * |
2717 | bfa_fcs_rport_lookup(struct bfa_fcs_lport_s *port, wwn_t rpwwn) | 2617 | bfa_fcs_rport_lookup(struct bfa_fcs_lport_s *port, wwn_t rpwwn) |
2718 | { | 2618 | { |
@@ -2744,22 +2644,6 @@ bfa_fcs_rport_lookup_by_nwwn(struct bfa_fcs_lport_s *port, wwn_t rnwwn) | |||
2744 | } | 2644 | } |
2745 | 2645 | ||
2746 | /* | 2646 | /* |
2747 | * This API is to set the Rport's speed. Should be used when RPSC is not | ||
2748 | * supported by the rport. | ||
2749 | */ | ||
2750 | void | ||
2751 | bfa_fcs_rport_set_speed(struct bfa_fcs_rport_s *rport, bfa_port_speed_t speed) | ||
2752 | { | ||
2753 | rport->rpf.assigned_speed = speed; | ||
2754 | |||
2755 | /* Set this speed in f/w only if the RPSC speed is not available */ | ||
2756 | if (rport->rpf.rpsc_speed == BFA_PORT_SPEED_UNKNOWN) | ||
2757 | bfa_rport_speed(rport->bfa_rport, speed); | ||
2758 | } | ||
2759 | |||
2760 | |||
2761 | |||
2762 | /* | ||
2763 | * Remote port features (RPF) implementation. | 2647 | * Remote port features (RPF) implementation. |
2764 | */ | 2648 | */ |
2765 | 2649 | ||