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: 26bd4e2db06be ("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
..
2018-02-21 14:14:05 -05:00
2017-12-19 13:25:52 -05:00
2018-02-19 14:16:52 -05:00
2018-01-29 14:25:47 -05:00
2018-01-21 18:05:30 -05:00
2018-02-27 11:40:03 -05:00
2018-01-02 16:14:49 -06:00
2018-03-05 09:23:37 -08:00
2018-01-17 18:04:43 -06:00