diff options
author | Hiral Patel <hiralpat@cisco.com> | 2012-12-10 04:21:30 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-01-28 22:00:04 -0500 |
commit | c0773b7cd5b1894d5a77dbe9b0c9a96d481fe485 (patch) | |
tree | 7650b6fe27503a782c44b0a5d8326ee65d2fac5a /drivers/scsi/fnic/fnic_fcs.c | |
parent | 8fc89a7997285f8d946e54b2984a6503d03e4daa (diff) |
[SCSI] fnic: fix for trusted cos
Modified fnic driver to let hardware insert the COS value. Set bit
in descriptor to 0 telling hardware to use its lif COS configurations
to insert the COS value in the frames.
Signed-off-by: Narsimhulu Musini <nmusini@cisco.com>
Signed-off-by: Hiral Patel <hiralpat@cisco.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/fnic/fnic_fcs.c')
-rw-r--r-- | drivers/scsi/fnic/fnic_fcs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/scsi/fnic/fnic_fcs.c b/drivers/scsi/fnic/fnic_fcs.c index 3c53c3478ee7..483eb9dbe663 100644 --- a/drivers/scsi/fnic/fnic_fcs.c +++ b/drivers/scsi/fnic/fnic_fcs.c | |||
@@ -495,7 +495,8 @@ void fnic_eth_send(struct fcoe_ctlr *fip, struct sk_buff *skb) | |||
495 | } | 495 | } |
496 | 496 | ||
497 | fnic_queue_wq_eth_desc(wq, skb, pa, skb->len, | 497 | fnic_queue_wq_eth_desc(wq, skb, pa, skb->len, |
498 | fnic->vlan_hw_insert, fnic->vlan_id, 1); | 498 | 0 /* hw inserts cos value */, |
499 | fnic->vlan_id, 1); | ||
499 | spin_unlock_irqrestore(&fnic->wq_lock[0], flags); | 500 | spin_unlock_irqrestore(&fnic->wq_lock[0], flags); |
500 | } | 501 | } |
501 | 502 | ||
@@ -563,7 +564,8 @@ static int fnic_send_frame(struct fnic *fnic, struct fc_frame *fp) | |||
563 | } | 564 | } |
564 | 565 | ||
565 | fnic_queue_wq_desc(wq, skb, pa, tot_len, fr_eof(fp), | 566 | fnic_queue_wq_desc(wq, skb, pa, tot_len, fr_eof(fp), |
566 | fnic->vlan_hw_insert, fnic->vlan_id, 1, 1, 1); | 567 | 0 /* hw inserts cos value */, |
568 | fnic->vlan_id, 1, 1, 1); | ||
567 | fnic_send_frame_end: | 569 | fnic_send_frame_end: |
568 | spin_unlock_irqrestore(&fnic->wq_lock[0], flags); | 570 | spin_unlock_irqrestore(&fnic->wq_lock[0], flags); |
569 | 571 | ||