]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
ixgbe: allow vlan egress priority mapping in DCB mode
authorLucy Liu <lucy.liu@intel.com>
Wed, 5 Aug 2009 20:06:34 +0000 (13:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Aug 2009 20:06:34 +0000 (13:06 -0700)
commit36e89d73e54c8db79d0fd1636cab9236eea7aae9
tree46b72e16547463fcee1e74233ddc2f6776e61307
parent14074eab8dcaa7f66d8f52612b2dcec51222bb5f
ixgbe: allow vlan egress priority mapping in DCB mode

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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe_main.c