cxgb4: Add HW timesptamp support for RX
authorHariprasad Shenai <hariprasad@chelsio.com>
Mon, 28 Sep 2015 04:56:53 +0000 (10:26 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Sep 2015 05:35:29 +0000 (22:35 -0700)
commit5e2a5ebc3f94027d0f2ffd33d3f3adbc856775d3
tree443ef8667e7121d13c84afbef7ac10284167b241
parente4600d69ffc7c0ce9759532e2c10056bf1c0a1a7
cxgb4: Add HW timesptamp support for RX

Adds support for ethtool get time stamp ioctl, which is used by
tcpdump to get the supported time stamp types

eg: tcpdump -i eth5 -J
Time stamp types for eth5 (use option -j to set):
  host (Host)
  adapter_unsynced (Adapter, not synced with system time)

Adds support for adapter unsynced mode, by adding SIOCSHWTSTAMP support
in driver.

Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
drivers/net/ethernet/chelsio/cxgb4/sge.c
drivers/net/ethernet/chelsio/cxgb4/t4_hw.h