linux/drivers/net/ethernet/intel/igb
Jacob Keller 6ab5f7b298 igb: implement SIOCGHWTSTAMP ioctl
This patch adds support for the SIOCGHWTSTAMP ioctl which enables user
processes to read the current hwtstamp_config settings
non-destructively. Previously a process had to be privileged and could
only set values, it couldn't return what is currently set without
possibly overwriting the value.

This patch adds support for this new operation into igb by keeping a
shadow copy of the config in the adapter structure, which is returned
upon request.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Acked-by: Matthew Vick <matthew.vick@intel.com>
Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2014-03-21 02:51:24 -07:00
..
e1000_82575.c igb: fix warning if !CONFIG_IGB_HWMON 2014-03-08 00:36:55 -08:00
e1000_82575.h igb: enable VLAN stripping for VMs with i350 2014-03-19 21:38:54 -07:00
e1000_defines.h igb: Add register defines needed for time sync functions 2014-03-19 17:17:23 -07:00
e1000_hw.h igb: Update license text to remove FSF address and update copyright. 2014-02-26 15:54:52 -05:00
e1000_i210.c igb: Update license text to remove FSF address and update copyright. 2014-02-26 15:54:52 -05:00
e1000_i210.h igb: Update license text to remove FSF address and update copyright. 2014-02-26 15:54:52 -05:00
e1000_mac.c igb: Update license text to remove FSF address and update copyright. 2014-02-26 15:54:52 -05:00
e1000_mac.h igb: Update license text to remove FSF address and update copyright. 2014-02-26 15:54:52 -05:00
e1000_mbx.c igb: Update license text to remove FSF address and update copyright. 2014-02-26 15:54:52 -05:00
e1000_mbx.h igb: Update license text to remove FSF address and update copyright. 2014-02-26 15:54:52 -05:00
e1000_nvm.c igb: Update license text to remove FSF address and update copyright. 2014-02-26 15:54:52 -05:00
e1000_nvm.h igb: Update license text to remove FSF address and update copyright. 2014-02-26 15:54:52 -05:00
e1000_phy.c igb: Update license text to remove FSF address and update copyright. 2014-02-26 15:54:52 -05:00
e1000_phy.h igb: Update license text to remove FSF address and update copyright. 2014-02-26 15:54:52 -05:00
e1000_regs.h igb: enable VLAN stripping for VMs with i350 2014-03-19 21:38:54 -07:00
igb_ethtool.c net: Replace u64_stats_fetch_begin_bh to u64_stats_fetch_begin_irq 2014-03-14 22:41:36 -04:00
igb_hwmon.c igb: Update license text to remove FSF address and update copyright. 2014-02-26 15:54:52 -05:00
igb_main.c igb: implement SIOCGHWTSTAMP ioctl 2014-03-21 02:51:24 -07:00
igb_ptp.c igb: implement SIOCGHWTSTAMP ioctl 2014-03-21 02:51:24 -07:00
igb.h igb: implement SIOCGHWTSTAMP ioctl 2014-03-21 02:51:24 -07:00
Makefile igb: Update license text to remove FSF address and update copyright. 2014-02-26 15:54:52 -05:00