mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
nvethernet: remove explicit addition of vlan prio
Issue: skb_vlan_tag_get gives only the VLAN_ID for the earlier kernel versions (K4.9) and hence added a logic to take care of adding the VLAN priority explicitly and hence the VLAN priority getting modified in a newer kernel version where VLAN PRIO is already included Fix: remove the logic of explicit adding of VLAN priority. Bug 3788862 Bug 4088361 Change-Id: I0ac9ebfe21d3e696ac1b0f6ba540c010928f775f Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2806468 (cherry picked from commit 799b17fc35f3bc3ec75ea93452c03bd52ed28527) Signed-off-by: Narayan Reddy <narayanr@nvidia.com> Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2895043 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
4d63a3e291
commit
d1f735fe0d
@@ -3156,7 +3156,6 @@ static int ether_tx_swcx_alloc(struct ether_priv_data *pdata,
|
||||
|
||||
if (unlikely(skb_vlan_tag_present(skb))) {
|
||||
tx_pkt_cx->vtag_id = skb_vlan_tag_get(skb);
|
||||
tx_pkt_cx->vtag_id |= (skb->priority << VLAN_PRIO_SHIFT);
|
||||
tx_pkt_cx->flags |= OSI_PKT_CX_VLAN;
|
||||
}
|
||||
|
||||
@@ -3324,11 +3323,10 @@ static unsigned short ether_select_queue(struct net_device *dev,
|
||||
struct osi_core_priv_data *osi_core = pdata->osi_core;
|
||||
unsigned short txqueue_select = 0;
|
||||
unsigned int i, mtlq;
|
||||
u16 vlan_tci;
|
||||
unsigned int priority = skb->priority;
|
||||
|
||||
if (vlan_get_tag(skb, &vlan_tci) == 0) {
|
||||
priority = (vlan_tci & VLAN_PRIO_MASK) >> VLAN_PRIO_SHIFT;
|
||||
if (skb_vlan_tag_present(skb)) {
|
||||
priority = skb_vlan_tag_get_prio(skb);
|
||||
}
|
||||
|
||||
for (i = 0; i < osi_core->num_mtl_queues; i++) {
|
||||
|
||||
Reference in New Issue
Block a user