* [net-2.6 PATCH] ixgbe: allow vlan egress priority mapping in DCB mode
@ 2009-08-05 1:27 Jeff Kirsher
2009-08-05 2:44 ` David Miller
2009-08-05 20:06 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Jeff Kirsher @ 2009-08-05 1:27 UTC (permalink / raw)
To: davem; +Cc: netdev, gospo, Lucy Liu, Jeff Kirsher
From: Lucy Liu <lucy.liu@intel.com>
The skb priority to vlan-qos egress mapping that can be configured using
set_egress_map with vconfig is overriden by the DCB code in the driver.
This patch allows this existing mechanism to work and will increase the
configuration flexibility of DCB mode on Linux.
A hierarchy of configuration is:
1. Modifies the ixgbe_select_queue() routine for DCB mode to return the
priority value from the VLAN tag. It will normally be zero, unless the egress
priority map has modified it. This will get packets into the correct queue and
result in the queue_mapping field being set correctly.
2. Any tc filter which modifies queue_mapping will be honored, as the filters
are handled after the vlan egress map is handled.
Signed-off-by: Lucy Liu <lucy.liu@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
---
drivers/net/ixgbe/ixgbe_main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c
index 110c65a..0586774 100644
--- a/drivers/net/ixgbe/ixgbe_main.c
+++ b/drivers/net/ixgbe/ixgbe_main.c
@@ -5124,7 +5124,7 @@ static u16 ixgbe_select_queue(struct net_device *dev, struct sk_buff *skb)
return smp_processor_id();
if (adapter->flags & IXGBE_FLAG_DCB_ENABLED)
- return 0; /* All traffic should default to class 0 */
+ return (skb->vlan_tci & IXGBE_TX_FLAGS_VLAN_PRIO_MASK) >> 13;
return skb_tx_hash(dev, skb);
}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [net-2.6 PATCH] ixgbe: allow vlan egress priority mapping in DCB mode
2009-08-05 1:27 [net-2.6 PATCH] ixgbe: allow vlan egress priority mapping in DCB mode Jeff Kirsher
@ 2009-08-05 2:44 ` David Miller
2009-08-05 20:06 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2009-08-05 2:44 UTC (permalink / raw)
To: jeffrey.t.kirsher; +Cc: netdev, gospo, lucy.liu
From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Date: Tue, 04 Aug 2009 18:27:28 -0700
> The skb priority to vlan-qos egress mapping that can be configured using
> set_egress_map with vconfig is overriden by the DCB code in the driver.
>
> This patch allows this existing mechanism to work and will increase the
> configuration flexibility of DCB mode on Linux.
This is not the kind of bug fix which is appropriate at this
stage of -rcX development, so I'm only willing to put this
into net-next-2.6
Keep this in mind for future submissions for net-2.6
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [net-2.6 PATCH] ixgbe: allow vlan egress priority mapping in DCB mode
2009-08-05 1:27 [net-2.6 PATCH] ixgbe: allow vlan egress priority mapping in DCB mode Jeff Kirsher
2009-08-05 2:44 ` David Miller
@ 2009-08-05 20:06 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2009-08-05 20:06 UTC (permalink / raw)
To: jeffrey.t.kirsher; +Cc: netdev, gospo, lucy.liu
From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Date: Tue, 04 Aug 2009 18:27:28 -0700
> The skb priority to vlan-qos egress mapping that can be configured using
> set_egress_map with vconfig is overriden by the DCB code in the driver.
>
> This patch allows this existing mechanism to work and will increase the
> configuration flexibility of DCB mode on Linux.
Applied to net-next-2.6, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-08-05 20:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-05 1:27 [net-2.6 PATCH] ixgbe: allow vlan egress priority mapping in DCB mode Jeff Kirsher
2009-08-05 2:44 ` David Miller
2009-08-05 20:06 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox