]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
net: macb: Check for SKBTX_HW_TSTAMP in macb driver
authorPaul Thomas <pthomas8589@gmail.com>
Thu, 14 Mar 2019 10:11:33 +0000 (15:41 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 15 Mar 2019 10:23:54 +0000 (11:23 +0100)
commitdb8102b7c980059ebdf4cce7175a7669291fadd9
tree50c10b2cd4875f22379eacd748483d2c4d5f1d1e
parentb10faf3e8b9378c3a9d0b013a000614100067acc
net: macb: Check for SKBTX_HW_TSTAMP in macb driver

Make sure SKBTX_HW_TSTAMP (i.e. SOF_TIMESTAMPING_TX_HARDWARE) has
been enabled for this skb. This is a common practice in handling TX
timestamp. It fixes the issue where normal socks that aren't
expecting a timestamp will not wake up on select.

Fixed if statement, modified commit description and tested.
- Harini

Signed-off-by: Paul Thomas <pthomas8589@gmail.com>
Signed-off-by: Harini Katakam <harini.katakam@xilinx.com>
Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/net/ethernet/cadence/macb_main.c