]> git.baikalelectronics.ru Git - kernel.git/commit
net/vlan: Provide read access to the vlan egress map
authorEyal Perry <eyalpe@mellanox.com>
Wed, 6 Nov 2013 13:37:23 +0000 (15:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Nov 2013 00:09:44 +0000 (19:09 -0500)
commit262191a80ce4ef7a32fef1dd3b0f1d960ea2be3a
tree9cd3360d2f424a37e93adb77b9c442e2781961cb
parentdf0b0d337937ddebd7c271d0ac79a5b05f01fb9b
net/vlan: Provide read access to the vlan egress map

Provide a method for read-only access to the vlan device egress mapping.

Do this by refactoring vlan_dev_get_egress_qos_mask() such that now it
receives as an argument the skb priority instead of pointer to the skb.

Such an access is needed for the IBoE stack where the control plane
goes through the network stack. This is an add-on step on top of commit
d16ed02afa "net/route: export symbol ip_tos2prio" which allowed the RDMA-CM
to use ip_tos2prio.

Signed-off-by: Eyal Perry <eyalpe@mellanox.com>
Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_vlan.h
net/8021q/vlan_dev.c