The current implementation timestamps all packets and also processes
the BD timestamp for the same. This is not necessary and increases
overhead.
Hence update DMA BD settings to timestamp only PTP packets.
Signed-off-by: Harini Katakam <harini.katakam@xilinx.com>
Acked-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
if (gem_ptp_set_one_step_sync(bp, 1) != 0)
return -ERANGE;
case HWTSTAMP_TX_ON:
- tx_bd_control = TSTAMP_ALL_FRAMES;
+ tx_bd_control = TSTAMP_ALL_PTP_FRAMES;
break;
default:
return -ERANGE;