linux/drivers/net/ethernet/intel/igb
Christophe JAILLET 0a6f2f05a2 igb: Fix a test with HWTSTAMP_TX_ON
'HWTSTAMP_TX_ON' should be handled as a value, not as a bit mask.
The modified code should behave the same, because HWTSTAMP_TX_ON is 1
and no other possible values of 'tx_type' would match the test.
However, this is more future-proof, should other values be allowed one day.

See 'struct hwtstamp_config' in 'include/uapi/linux/net_tstamp.h'

This fixes a warning reported by smatch:
   igb_xmit_frame_ring() warn: bit shifter 'HWTSTAMP_TX_ON' used for logical '&'

Fixes: 26bd4e2db0 ("igb: protect TX timestamping from API misuse")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2018-03-05 09:23:37 -08:00
..
Makefile igb: Update license text to remove FSF address and update copyright. 2014-02-26 15:54:52 -05:00
e1000_82575.c igb: support BCM54616 PHY 2017-08-08 18:09:12 -07:00
e1000_82575.h igb: support RX flow classification by ethertype 2016-08-18 22:27:48 -07:00
e1000_defines.h igb: Add support for CBS offload 2017-10-27 09:49:36 -07:00
e1000_hw.h igb: support BCM54616 PHY 2017-08-08 18:09:12 -07:00
e1000_i210.c igb: Fix hw_dbg logging in igb_update_flash_i210 2017-01-06 02:23:22 -08:00
e1000_i210.h igb: Remove GS40G specific defines/functions 2015-12-14 10:20:06 -08:00
e1000_mac.c igb: Realign bad indentation 2017-01-06 02:18:49 -08:00
e1000_mac.h igb: Merge VLVF configuration into igb_vfta_set 2016-02-15 16:36:52 -08:00
e1000_mbx.c igb: do not drop PF mailbox lock after read of VF message 2017-08-08 17:52:45 -07:00
e1000_mbx.h igb: do not drop PF mailbox lock after read of VF message 2017-08-08 17:52:45 -07:00
e1000_nvm.c igb: use BIT() macro or unsigned prefix 2016-05-13 14:39:47 -07:00
e1000_nvm.h igb: Cleanups to change comment style on license headers 2014-04-24 17:26:27 -07:00
e1000_phy.c scripts/spelling.txt: add regsiter -> register spelling mistake 2017-05-08 17:15:13 -07:00
e1000_phy.h igb: use BIT() macro or unsigned prefix 2016-05-13 14:39:47 -07:00
e1000_regs.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2017-11-15 11:56:19 -08:00
igb.h igb: add VF trust infrastructure 2018-03-05 08:35:05 -08:00
igb_ethtool.c igb: add function to get maximum RSS queues 2018-01-24 12:27:48 -08:00
igb_hwmon.c igb: Cleanups to change comment style on license headers 2014-04-24 17:26:27 -07:00
igb_main.c igb: Fix a test with HWTSTAMP_TX_ON 2018-03-05 09:23:37 -08:00
igb_ptp.c igb: Clear TXSTMP when ptp_tx_work() is timeout 2018-01-24 12:27:48 -08:00