diff options
| author | David S. Miller <davem@davemloft.net> | 2015-06-01 17:56:09 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2015-06-01 17:56:09 -0400 |
| commit | bdef7de4b8d9be4cf7bf5aea977f827310ab3ff0 (patch) | |
| tree | 8fbf2ce8fd40dce5e41cfd243126221a360be352 /include/linux/netdevice.h | |
| parent | 493be55ac3d81f9c32832237288eb397a9993d5d (diff) | |
net: Add priority to packet_offload objects.
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>
Diffstat (limited to 'include/linux/netdevice.h')
| -rw-r--r-- | include/linux/netdevice.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 51f8d2f5dc3f..6f5f71ff5169 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
| @@ -1997,6 +1997,7 @@ struct offload_callbacks { | |||
| 1997 | 1997 | ||
| 1998 | struct packet_offload { | 1998 | struct packet_offload { |
| 1999 | __be16 type; /* This is really htons(ether_type). */ | 1999 | __be16 type; /* This is really htons(ether_type). */ |
| 2000 | u16 priority; | ||
| 2000 | struct offload_callbacks callbacks; | 2001 | struct offload_callbacks callbacks; |
| 2001 | struct list_head list; | 2002 | struct list_head list; |
| 2002 | }; | 2003 | }; |
