tunneling: Convert tunnel push/pop functions to act on single packets.
authorJesse Gross <jesse@nicira.com>
Wed, 8 Apr 2015 00:45:40 +0000 (17:45 -0700)
committerJesse Gross <jesse@nicira.com>
Thu, 9 Apr 2015 21:29:08 +0000 (14:29 -0700)
commitd625fbd13ec3254981df5000bf2587d715401f36
tree6b6b59ed371bc1acba441630b32dbcd11e12d64d
parent0be55e389d2f12dbbf5dca5c16a7b2c8177e58ff
tunneling: Convert tunnel push/pop functions to act on single packets.

The userspace tunneling API for pushing and popping tunnel headers
is currently based on processing batches of packets. However, there
is no obvious way to take advantage of batching for these operations
and so each tunnel operation has a pair of loops to process the
batch. This changes the API to operate on single packets to enable
better code reuse.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
lib/netdev-provider.h
lib/netdev-vport.c
lib/netdev.c