net/ice/base: add timestamp masks
authorQi Zhang <qi.z.zhang@intel.com>
Tue, 10 Aug 2021 02:51:17 +0000 (10:51 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Wed, 11 Aug 2021 02:23:45 +0000 (04:23 +0200)
commit275e88b0cf1ad82f04d0cad7ba5bd893984ed4fd
tree007b2028a6f20b407bc70ce2af53f828af9ce1b6
parent21bc183b68154e08c67e2fccf10f5301a014be1f
net/ice/base: add timestamp masks

Adding macros for shift and masking of the lower timestamp work in the
Rx flex descriptor. The LSB of the timestamp-low word indicates the
validity of the timestamp while the rest 7 bits contain the timestamp.

Signed-off-by: Vignesh Sridhar <vignesh.sridhar@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Junfeng Guo <junfeng.guo@intel.com>
drivers/net/ice/base/ice_lan_tx_rx.h