From: Manish Chopra <manishc@marvell.com>
To: <davem@davemloft.net>
Cc: <netdev@vger.kernel.org>, <aelior@marvell.com>,
<mkalderon@marvell.com>,
Sudarsana Reddy Kalluru <skalluru@marvell.com>
Subject: [PATCH net 2/6] qed: Assign UFP TC value to vlan priority in UFP mode.
Date: Wed, 6 Feb 2019 14:43:43 -0800 [thread overview]
Message-ID: <20190206224347.17054-3-manishc@marvell.com> (raw)
In-Reply-To: <20190206224347.17054-1-manishc@marvell.com>
From: Sudarsana Reddy Kalluru <skalluru@marvell.com>
In the case of Unified Fabric Port (UFP) mode, switch provides
the traffic class (TC) value to be used for the traffic.
Configure hardware to use this TC value for vlan priority.
Signed-off-by: Sudarsana Reddy Kalluru <skalluru@marvell.com>
Signed-off-by: Ariel Elior <aelior@marvell.com>
---
drivers/net/ethernet/qlogic/qed/qed_sp_commands.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/ethernet/qlogic/qed/qed_sp_commands.c b/drivers/net/ethernet/qlogic/qed/qed_sp_commands.c
index 888274f..5a495fd 100644
--- a/drivers/net/ethernet/qlogic/qed/qed_sp_commands.c
+++ b/drivers/net/ethernet/qlogic/qed/qed_sp_commands.c
@@ -604,6 +604,9 @@ int qed_sp_pf_update_stag(struct qed_hwfn *p_hwfn)
p_ent->ramrod.pf_update.update_mf_vlan_flag = true;
p_ent->ramrod.pf_update.mf_vlan = cpu_to_le16(p_hwfn->hw_info.ovlan);
+ if (test_bit(QED_MF_UFP_SPECIFIC, &p_hwfn->cdev->mf_bits))
+ p_ent->ramrod.pf_update.mf_vlan |=
+ cpu_to_le16(((u16)p_hwfn->ufp_info.tc << 13));
return qed_spq_post(p_hwfn, p_ent, NULL);
}
--
1.8.3.1
next prev parent reply other threads:[~2019-02-06 22:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-06 22:43 [PATCH net 0/6] qed*: Bug fixes Manish Chopra
2019-02-06 22:43 ` [PATCH net 1/6] qed: Fix EQ full firmware assert Manish Chopra
2019-02-06 22:43 ` Manish Chopra [this message]
2019-02-06 22:43 ` [PATCH net 3/6] qed: Consider TX tcs while deriving the max num_queues for PF Manish Chopra
2019-02-06 22:43 ` [PATCH net 4/6] qede: Fix system crash on configuring channels Manish Chopra
2019-02-06 22:43 ` [PATCH net 5/6] qed: Change verbosity for coalescing message Manish Chopra
2019-02-06 22:43 ` [PATCH net 6/6] qed*: Advance drivers version to 8.37.0.20 Manish Chopra
2019-02-07 0:53 ` [PATCH net 0/6] qed*: Bug fixes David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190206224347.17054-3-manishc@marvell.com \
--to=manishc@marvell.com \
--cc=aelior@marvell.com \
--cc=davem@davemloft.net \
--cc=mkalderon@marvell.com \
--cc=netdev@vger.kernel.org \
--cc=skalluru@marvell.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox