On 11/13/18 2:22 PM, Jiri Pirko wrote: > From: Jiri Pirko <j...@mellanox.com> > > 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 <michaels...@gmail.com> > Signed-off-by: Jiri Pirko <j...@mellanox.com> > Tested-by: Michael Shteinbok <michaels...@gmail.com> > --- > net/8021q/vlan.c | 96 ----------------------------------------- > net/8021q/vlan_core.c | 99 +++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 99 insertions(+), 96 deletions(-) >
Reviewed-by: David Ahern <dsah...@gmail.com>