]> git.baikalelectronics.ru Git - kernel.git/commit
vlan: uninline __vlan_hwaccel_rx
authorPatrick McHardy <kaber@trash.net>
Tue, 8 Jul 2008 10:23:36 +0000 (03:23 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jul 2008 10:23:36 +0000 (03:23 -0700)
commit77c601e4a4e03c596f6ff1bb56bd07dbf2d0d9a0
treebc8a65b0dd0d5cc3faac943f7e3df0c6dfedeaf6
parentf69fdd35714bbbd2c5cd50936c052b4180d606f6
vlan: uninline __vlan_hwaccel_rx

The function is huge and included at least once in every VLAN acceleration
capable driver. Uninline it; to avoid having drivers depend on the VLAN
module, the function is always built in statically when VLAN is enabled.

With all VLAN acceleration capable drivers that build on x86_64 enabled,
this results in:

   text    data     bss     dec     hex filename
6515227  854044  343968 7713239  75b1d7 vmlinux.inlined
6505637  854044  343968 7703649  758c61 vmlinux.uninlined
----------------------------------------------------------
  -9590

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_vlan.h
net/8021q/Makefile
net/8021q/vlan.h
net/8021q/vlan_core.c [new file with mode: 0644]
net/Makefile