felix.c (6f84981772535e670e4e2df051a672af229b6694) | felix.c (ab3f97a9610a8d90dc9934517e82c3272d4e98a0) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* Copyright 2019-2021 NXP 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> --- 2010 unchanged lines hidden (view full) --- 2019static int felix_port_del_dscp_prio(struct dsa_switch *ds, int port, u8 dscp, 2020 u8 prio) 2021{ 2022 struct ocelot *ocelot = ds->priv; 2023 2024 return ocelot_port_del_dscp_prio(ocelot, port, dscp, prio); 2025} 2026 | 1// SPDX-License-Identifier: GPL-2.0 2/* Copyright 2019-2021 NXP 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> --- 2010 unchanged lines hidden (view full) --- 2019static int felix_port_del_dscp_prio(struct dsa_switch *ds, int port, u8 dscp, 2020 u8 prio) 2021{ 2022 struct ocelot *ocelot = ds->priv; 2023 2024 return ocelot_port_del_dscp_prio(ocelot, port, dscp, prio); 2025} 2026 |
2027static void felix_get_mm_stats(struct dsa_switch *ds, int port, 2028 struct ethtool_mm_stats *stats) 2029{ 2030 struct ocelot *ocelot = ds->priv; 2031 2032 ocelot_port_get_mm_stats(ocelot, port, stats); 2033} 2034 |
|
2027const struct dsa_switch_ops felix_switch_ops = { 2028 .get_tag_protocol = felix_get_tag_protocol, 2029 .change_tag_protocol = felix_change_tag_protocol, 2030 .connect_tag_protocol = felix_connect_tag_protocol, 2031 .setup = felix_setup, 2032 .teardown = felix_teardown, 2033 .set_ageing_time = felix_set_ageing_time, | 2035const struct dsa_switch_ops felix_switch_ops = { 2036 .get_tag_protocol = felix_get_tag_protocol, 2037 .change_tag_protocol = felix_change_tag_protocol, 2038 .connect_tag_protocol = felix_connect_tag_protocol, 2039 .setup = felix_setup, 2040 .teardown = felix_teardown, 2041 .set_ageing_time = felix_set_ageing_time, |
2042 .get_mm_stats = felix_get_mm_stats, |
|
2034 .get_stats64 = felix_get_stats64, 2035 .get_pause_stats = felix_get_pause_stats, 2036 .get_rmon_stats = felix_get_rmon_stats, 2037 .get_eth_ctrl_stats = felix_get_eth_ctrl_stats, 2038 .get_eth_mac_stats = felix_get_eth_mac_stats, 2039 .get_eth_phy_stats = felix_get_eth_phy_stats, 2040 .get_strings = felix_get_strings, 2041 .get_ethtool_stats = felix_get_ethtool_stats, --- 86 unchanged lines hidden --- | 2043 .get_stats64 = felix_get_stats64, 2044 .get_pause_stats = felix_get_pause_stats, 2045 .get_rmon_stats = felix_get_rmon_stats, 2046 .get_eth_ctrl_stats = felix_get_eth_ctrl_stats, 2047 .get_eth_mac_stats = felix_get_eth_mac_stats, 2048 .get_eth_phy_stats = felix_get_eth_phy_stats, 2049 .get_strings = felix_get_strings, 2050 .get_ethtool_stats = felix_get_ethtool_stats, --- 86 unchanged lines hidden --- |