compat-wireless: backport get_ts_info support
authorLuis R. Rodriguez <mcgrof@frijolero.org>
Fri, 6 Apr 2012 21:50:16 +0000 (14:50 -0700)
committerLuis R. Rodriguez <mcgrof@frijolero.org>
Sat, 7 Apr 2012 00:29:57 +0000 (17:29 -0700)
commitd4f2f52fa77fdf679c7b0c100f06b9bbe27fcca1
tree4b805b87cc17ee98a948622781dbb2bb702fb556
parentb2d99d79e363840158b76a951a862b13e056c8ae
compat-wireless: backport get_ts_info support

Linux 3.5 will have get_ts_info to support the Precision Time Protocol.

http://linuxptp.sourceforge.net/
http://en.wikipedia.org/wiki/Precision_Time_Protocol

We cannot backport this support given that this introduces
a data structure change on the ethtool_ops.

commit c8f3a8c31069137fe0100e6920558f1a7487ef3c
Author: Richard Cochran <richardcochran@gmail.com>
Date:   Tue Apr 3 22:59:17 2012 +0000

    ethtool: Introduce a method for getting time stamping capabilities.

    This commit adds a new ethtool ioctl that exposes the SO_TIMESTAMPING
    capabilities of a network interface. In addition, user space programs
    can use this ioctl to discover the PTP Hardware Clock (PHC) device
    associated with the interface.

    Since software receive time stamps are handled by the stack, the generic
    ethtool code can answer the query correctly in case the MAC or PHY
    drivers lack special time stamping features.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Reviewed-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
mcgrof@flash ~/devel/compat-wireless (git::master)$ time ckmake; time ckmake
Trying kernel                     3.2.2-030202-generic  [OK]
Trying kernel                    3.1.10-030110-generic  [OK]
Trying kernel                    3.0.18-030018-generic  [OK]
Trying kernel                  2.6.39-02063904-generic  [OK]
Trying kernel                  2.6.38-02063808-generic  [OK]
Trying kernel                  2.6.37-02063706-generic  [OK]
Trying kernel                  2.6.36-02063604-generic  [OK]
Trying kernel                  2.6.35-02063512-generic  [OK]
Trying kernel                  2.6.34-02063410-generic  [OK]
Trying kernel                  2.6.33-02063305-generic  [OK]
Trying kernel                  2.6.32-02063255-generic  [OK]
Trying kernel                  2.6.31-02063113-generic  [OK]
Trying kernel                  2.6.30-02063010-generic  [OK]
Trying kernel                  2.6.29-02062906-generic  [OK]
Trying kernel                  2.6.28-02062810-generic  [OK]
Trying kernel                    2.6.27-020627-generic  [OK]
Trying kernel                    2.6.26-020626-generic  [OK]
Trying kernel                    2.6.25-020625-generic  [OK]
Trying kernel                    2.6.24-020624-generic  [OK]

real    70m16.460s
user    204m37.315s
sys     19m56.447s

real    15m35.818s
user    33m10.020s
sys     7m19.779s

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
patches/01-netdev.patch
patches/04-netns.patch
patches/14-device-type.patch
patches/30-bridge-port.patch
patches/42-netlink_seq.patch
patches/54-get_ts_info.patch [new file with mode: 0644]