/* Returns: -EINVAL if the buffer does not contain the string "selective" length of buf if lpfc-selective_reset() if the call succeeds return value of lpfc_selective_reset() if the call fails  */
static ssize_t lpfc_issue_reset(struct device *dev, struct device_attribute *attr, const char *buf, size_t count)
/* Returns: -EINVAL if the buffer does not contain the string "selective" length of buf if lpfc-selective_reset() if the call succeeds return value of lpfc_selective_reset() if the call fails  */
static ssize_t lpfc_issue_reset(struct device *dev, struct device_attribute *attr, const char *buf, size_t count)
{
	struct Scsi_Host  *shost = class_to_shost(dev);
	struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
	struct lpfc_hba   *phba = vport->phba;
	int status = -EINVAL;
	if (strncmp(buf, "selective", sizeof("selective") - 1) == 0)
		status = lpfc_selective_reset(phba);
	if (status == 0)
		return strlen(buf);
	else
		return status;
}