As there is not data path for TEMAC2, consuming the skb packet
sent by this port. This will have no impact on performance.
Signed-off-by: Saurabh Sengar <saurabhs@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
if (eth->h_proto == htons(ETH_P_1588))
return axienet_ptp_xmit(skb, ndev);
#endif
- if (lp->temac_no == XAE_TEMAC2)
- return NETDEV_TX_BUSY;
+ if (lp->temac_no == XAE_TEMAC2) {
+ dev_kfree_skb_any(skb);
+ return NETDEV_TX_OK;
+ }
}
#endif
num_frag = skb_shinfo(skb)->nr_frags;