Commit f01a5236 authored by Committed by David S. MillerBrowse files
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 <email@example.com> Signed-off-by: Jesse Gross <firstname.lastname@example.org> Signed-off-by: David S. Miller <email@example.com>