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)
commitd32435391974e39c35ade4d115f17c538a96a708
tree9cd3360d2f424a37e93adb77b9c442e2781961cb
parent85aec73d595b8847f9c4ea571deb127913f0d508
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
d4a968658c "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