When XILINX_AXI_EMAC_HWTSTAMP config is enabled in the driver
the rx_hwtsamp API is valid only for 10G/25G MAC.
This patch adds a check for the same in the driver.
Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
time64 = sec * NS_PER_SEC + nsec;
shhwtstamps = skb_hwtstamps(skb);
shhwtstamps->hwtstamp = ns_to_ktime(time64);
- } else {
+ } else if (lp->axienet_config->mactype == XAXIENET_10G_25G) {
axienet_rx_hwtstamp(lp, skb);
}
#endif