]> 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)
commitdcddfe801bc3aa83879226ec108972537379213c
tree9cd3360d2f424a37e93adb77b9c442e2781961cb
parent43306754fdfdda8db484a79beeccbe7aff517faa
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
ed62e4cffe "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