]> git.baikalelectronics.ru Git - kernel.git/commit
net offloading: Generalize netif_get_vlan_features().
authorJesse Gross <jesse@nicira.com>
Sun, 9 Jan 2011 06:23:31 +0000 (06:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Jan 2011 07:35:33 +0000 (23:35 -0800)
commit491aa03f157c90b3f105b38368822acee101c22b
tree01d122dcd3aa7e8e1f84f11f74f5c30593a5f850
parent5edc46289096f5733b6fbbd4b38659f1e85977b0
net offloading: Generalize netif_get_vlan_features().

netif_get_vlan_features() is currently only used by netif_needs_gso(),
so it only concerns itself with GSO features.  However, several other
places also should take into account the contents of the packet when
deciding whether to offload to hardware.  This generalizes the function
to return features about all of the various forms of offloading.  Since
offloads tend to be linked together, this avoids duplicating the logic
in each location (i.e. the scatter/gather code also needs the checksum
logic).

Suggested-by: Michał Mirosław <mirqus@gmail.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev.c