net: 8021q: move vlan offload registrations into vlan_core
authorJiri Pirko <jiri@mellanox.com>
Tue, 13 Nov 2018 22:22:48 +0000 (23:22 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Nov 2018 03:51:08 +0000 (19:51 -0800)
commit32764c66faba8fff950346776eb46801b67c610f
tree47026733b2c5c8b35ece9a4dfb195f4103ad2683
parent99310e732a75c40fc9843f52b306fc9943bcce9d
net: 8021q: move vlan offload registrations into vlan_core

Currently, the vlan packet offloads are registered only upon 8021q module
load. However, even without this module loaded, the offloads could be
utilized, for example by openvswitch datapath. As reported by Michael,
that causes 2x to 5x performance improvement, depending on a testcase.

So move the vlan offload registrations into vlan_core and make this
available even without 8021q module loaded.

Reported-by: Michael Shteinbok <michaelsh86@gmail.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Tested-by: Michael Shteinbok <michaelsh86@gmail.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan.c
net/8021q/vlan_core.c