]> git.openpandora.org Git - pandora-kernel.git/commitdiff
net: Add priority to packet_offload objects.
authorDavid S. Miller <davem@davemloft.net>
Mon, 1 Jun 2015 21:56:09 +0000 (14:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Jun 2015 21:56:09 +0000 (14:56 -0700)
When we scan a packet for GRO processing, we want to see the most
common packet types in the front of the offload_base list.

So add a priority field so we can handle this properly.

IPv4/IPv6 get the highest priority with the implicit zero priority
field.

Next comes ethernet with a priority of 10, and then we have the MPLS
types with a priority of 15.

Suggested-by: Eric Dumazet <eric.dumazet@gmail.com>
Suggested-by: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev.c
net/ethernet/eth.c
net/mpls/mpls_gso.c

Simple merge
diff --cc net/core/dev.c
Simple merge
Simple merge
Simple merge