felix.c (cfd12c06cdceac094aab3f097cce24c279bfd43b) | felix.c (cf536ea3c7eefb26082836eb7f930b293dd38345) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* Copyright 2019-2021 NXP Semiconductors 3 * 4 * This is an umbrella module for all network switches that are 5 * register-compatible with Ocelot and that perform I/O to their host CPU 6 * through an NPI (Node Processor Interface) Ethernet port. 7 */ 8#include <uapi/linux/if_bridge.h> --- 1382 unchanged lines hidden (view full) --- 1391 1392 shhwtstamps = skb_hwtstamps(skb); 1393 memset(shhwtstamps, 0, sizeof(struct skb_shared_hwtstamps)); 1394 shhwtstamps->hwtstamp = tstamp; 1395 return false; 1396} 1397 1398static bool felix_txtstamp(struct dsa_switch *ds, int port, | 1// SPDX-License-Identifier: GPL-2.0 2/* Copyright 2019-2021 NXP Semiconductors 3 * 4 * This is an umbrella module for all network switches that are 5 * register-compatible with Ocelot and that perform I/O to their host CPU 6 * through an NPI (Node Processor Interface) Ethernet port. 7 */ 8#include <uapi/linux/if_bridge.h> --- 1382 unchanged lines hidden (view full) --- 1391 1392 shhwtstamps = skb_hwtstamps(skb); 1393 memset(shhwtstamps, 0, sizeof(struct skb_shared_hwtstamps)); 1394 shhwtstamps->hwtstamp = tstamp; 1395 return false; 1396} 1397 1398static bool felix_txtstamp(struct dsa_switch *ds, int port, |
1399 struct sk_buff *clone, unsigned int type) | 1399 struct sk_buff *clone) |
1400{ 1401 struct ocelot *ocelot = ds->priv; 1402 struct ocelot_port *ocelot_port = ocelot->ports[port]; 1403 1404 if (ocelot->ptp && ocelot_port->ptp_cmd == IFH_REW_OP_TWO_STEP_PTP) { 1405 ocelot_port_add_txtstamp_skb(ocelot, port, clone); 1406 return true; 1407 } --- 293 unchanged lines hidden --- | 1400{ 1401 struct ocelot *ocelot = ds->priv; 1402 struct ocelot_port *ocelot_port = ocelot->ports[port]; 1403 1404 if (ocelot->ptp && ocelot_port->ptp_cmd == IFH_REW_OP_TWO_STEP_PTP) { 1405 ocelot_port_add_txtstamp_skb(ocelot, port, clone); 1406 return true; 1407 } --- 293 unchanged lines hidden --- |