datapath: Don't query time for every packet.
authorJesse Gross <jesse@nicira.com>
Fri, 16 Jul 2010 02:22:07 +0000 (19:22 -0700)
committerJesse Gross <jesse@nicira.com>
Mon, 26 Jul 2010 21:39:59 +0000 (14:39 -0700)
commit6bfafa55fbd78fba244bb9e62081781187a45932
tree6ceaace6f5876b6fad8ab62886f9291f5b5d73ab
parent56cee53bd62d92bf2639e22beba3a867891a7513
datapath: Don't query time for every packet.

Rather than actually query the time every time a packet comes through,
just store the current jiffies and convert it to actual time when
requested.  GRE is the primary beneficiary of this because the traffic
travels through the datapath twice.  This change reduces CPU utilization
3-4% with GRE.
datapath/datapath.c
datapath/flow.c
datapath/flow.h