packet: move hw/sw timestamp extraction into a small helper
authorDaniel Borkmann <dborkman@redhat.com>
Tue, 16 Apr 2013 01:29:11 +0000 (01:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Apr 2013 20:39:13 +0000 (16:39 -0400)
This patch introduces a small, internal helper function, that is used by
PF_PACKET. Based on the flags that are passed, it extracts the packet
timestamp in the receive path. This is merely a refactoring to remove
some duplicate code in tpacket_rcv(), to make it more readable, and to
enable others to use this function in PF_PACKET as well, e.g. for TX.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c

Simple merge