|
@@ -195,7 +195,7 @@ Signed-off-by: David S. Miller <[email protected]>
|
|
|
|
|
|
|
|
static int ocelot_port_fdb_dump(struct sk_buff *skb,
|
|
static int ocelot_port_fdb_dump(struct sk_buff *skb,
|
|
|
struct netlink_callback *cb,
|
|
struct netlink_callback *cb,
|
|
|
-@@ -1153,8 +1160,7 @@ static const struct net_device_ops ocelo
|
|
|
|
|
|
|
+@@ -1147,8 +1154,7 @@ static const struct net_device_ops ocelo
|
|
|
.ndo_do_ioctl = ocelot_ioctl,
|
|
.ndo_do_ioctl = ocelot_ioctl,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
@@ -205,7 +205,7 @@ Signed-off-by: David S. Miller <[email protected]>
|
|
|
{
|
|
{
|
|
|
int i;
|
|
int i;
|
|
|
|
|
|
|
|
-@@ -1165,6 +1171,7 @@ static void ocelot_get_strings(struct oc
|
|
|
|
|
|
|
+@@ -1159,6 +1165,7 @@ static void ocelot_get_strings(struct oc
|
|
|
memcpy(data + i * ETH_GSTRING_LEN, ocelot->stats_layout[i].name,
|
|
memcpy(data + i * ETH_GSTRING_LEN, ocelot->stats_layout[i].name,
|
|
|
ETH_GSTRING_LEN);
|
|
ETH_GSTRING_LEN);
|
|
|
}
|
|
}
|
|
@@ -213,7 +213,7 @@ Signed-off-by: David S. Miller <[email protected]>
|
|
|
|
|
|
|
|
static void ocelot_port_get_strings(struct net_device *netdev, u32 sset,
|
|
static void ocelot_port_get_strings(struct net_device *netdev, u32 sset,
|
|
|
u8 *data)
|
|
u8 *data)
|
|
|
-@@ -1216,7 +1223,7 @@ static void ocelot_check_stats_work(stru
|
|
|
|
|
|
|
+@@ -1210,7 +1217,7 @@ static void ocelot_check_stats_work(stru
|
|
|
OCELOT_STATS_CHECK_DELAY);
|
|
OCELOT_STATS_CHECK_DELAY);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -222,7 +222,7 @@ Signed-off-by: David S. Miller <[email protected]>
|
|
|
{
|
|
{
|
|
|
int i;
|
|
int i;
|
|
|
|
|
|
|
|
-@@ -1227,6 +1234,7 @@ static void ocelot_get_ethtool_stats(str
|
|
|
|
|
|
|
+@@ -1221,6 +1228,7 @@ static void ocelot_get_ethtool_stats(str
|
|
|
for (i = 0; i < ocelot->num_stats; i++)
|
|
for (i = 0; i < ocelot->num_stats; i++)
|
|
|
*data++ = ocelot->stats[port * ocelot->num_stats + i];
|
|
*data++ = ocelot->stats[port * ocelot->num_stats + i];
|
|
|
}
|
|
}
|
|
@@ -230,7 +230,7 @@ Signed-off-by: David S. Miller <[email protected]>
|
|
|
|
|
|
|
|
static void ocelot_port_get_ethtool_stats(struct net_device *dev,
|
|
static void ocelot_port_get_ethtool_stats(struct net_device *dev,
|
|
|
struct ethtool_stats *stats,
|
|
struct ethtool_stats *stats,
|
|
|
-@@ -1239,13 +1247,14 @@ static void ocelot_port_get_ethtool_stat
|
|
|
|
|
|
|
+@@ -1233,13 +1241,14 @@ static void ocelot_port_get_ethtool_stat
|
|
|
ocelot_get_ethtool_stats(ocelot, port, data);
|
|
ocelot_get_ethtool_stats(ocelot, port, data);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -246,7 +246,7 @@ Signed-off-by: David S. Miller <[email protected]>
|
|
|
|
|
|
|
|
static int ocelot_port_get_sset_count(struct net_device *dev, int sset)
|
|
static int ocelot_port_get_sset_count(struct net_device *dev, int sset)
|
|
|
{
|
|
{
|
|
|
-@@ -1256,8 +1265,8 @@ static int ocelot_port_get_sset_count(st
|
|
|
|
|
|
|
+@@ -1250,8 +1259,8 @@ static int ocelot_port_get_sset_count(st
|
|
|
return ocelot_get_sset_count(ocelot, port, sset);
|
|
return ocelot_get_sset_count(ocelot, port, sset);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -257,7 +257,7 @@ Signed-off-by: David S. Miller <[email protected]>
|
|
|
{
|
|
{
|
|
|
info->phc_index = ocelot->ptp_clock ?
|
|
info->phc_index = ocelot->ptp_clock ?
|
|
|
ptp_clock_index(ocelot->ptp_clock) : -1;
|
|
ptp_clock_index(ocelot->ptp_clock) : -1;
|
|
|
-@@ -1273,6 +1282,7 @@ static int ocelot_get_ts_info(struct oce
|
|
|
|
|
|
|
+@@ -1270,6 +1279,7 @@ static int ocelot_get_ts_info(struct oce
|
|
|
|
|
|
|
|
return 0;
|
|
return 0;
|
|
|
}
|
|
}
|
|
@@ -265,7 +265,7 @@ Signed-off-by: David S. Miller <[email protected]>
|
|
|
|
|
|
|
|
static int ocelot_port_get_ts_info(struct net_device *dev,
|
|
static int ocelot_port_get_ts_info(struct net_device *dev,
|
|
|
struct ethtool_ts_info *info)
|
|
struct ethtool_ts_info *info)
|
|
|
-@@ -1296,8 +1306,7 @@ static const struct ethtool_ops ocelot_e
|
|
|
|
|
|
|
+@@ -1293,8 +1303,7 @@ static const struct ethtool_ops ocelot_e
|
|
|
.get_ts_info = ocelot_port_get_ts_info,
|
|
.get_ts_info = ocelot_port_get_ts_info,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
@@ -275,7 +275,7 @@ Signed-off-by: David S. Miller <[email protected]>
|
|
|
{
|
|
{
|
|
|
u32 port_cfg;
|
|
u32 port_cfg;
|
|
|
int p, i;
|
|
int p, i;
|
|
|
-@@ -1358,6 +1367,7 @@ static void ocelot_bridge_stp_state_set(
|
|
|
|
|
|
|
+@@ -1355,6 +1364,7 @@ static void ocelot_bridge_stp_state_set(
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -283,7 +283,7 @@ Signed-off-by: David S. Miller <[email protected]>
|
|
|
|
|
|
|
|
static void ocelot_port_attr_stp_state_set(struct ocelot *ocelot, int port,
|
|
static void ocelot_port_attr_stp_state_set(struct ocelot *ocelot, int port,
|
|
|
struct switchdev_trans *trans,
|
|
struct switchdev_trans *trans,
|
|
|
-@@ -1369,11 +1379,12 @@ static void ocelot_port_attr_stp_state_s
|
|
|
|
|
|
|
+@@ -1366,11 +1376,12 @@ static void ocelot_port_attr_stp_state_s
|
|
|
ocelot_bridge_stp_state_set(ocelot, port, state);
|
|
ocelot_bridge_stp_state_set(ocelot, port, state);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -297,7 +297,7 @@ Signed-off-by: David S. Miller <[email protected]>
|
|
|
|
|
|
|
|
static void ocelot_port_attr_ageing_set(struct ocelot *ocelot, int port,
|
|
static void ocelot_port_attr_ageing_set(struct ocelot *ocelot, int port,
|
|
|
unsigned long ageing_clock_t)
|
|
unsigned long ageing_clock_t)
|
|
|
-@@ -1604,8 +1615,8 @@ static int ocelot_port_obj_del(struct ne
|
|
|
|
|
|
|
+@@ -1601,8 +1612,8 @@ static int ocelot_port_obj_del(struct ne
|
|
|
return ret;
|
|
return ret;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -308,7 +308,7 @@ Signed-off-by: David S. Miller <[email protected]>
|
|
|
{
|
|
{
|
|
|
if (!ocelot->bridge_mask) {
|
|
if (!ocelot->bridge_mask) {
|
|
|
ocelot->hw_bridge_dev = bridge;
|
|
ocelot->hw_bridge_dev = bridge;
|
|
|
-@@ -1620,9 +1631,10 @@ static int ocelot_port_bridge_join(struc
|
|
|
|
|
|
|
+@@ -1617,9 +1628,10 @@ static int ocelot_port_bridge_join(struc
|
|
|
|
|
|
|
|
return 0;
|
|
return 0;
|
|
|
}
|
|
}
|
|
@@ -321,7 +321,7 @@ Signed-off-by: David S. Miller <[email protected]>
|
|
|
{
|
|
{
|
|
|
ocelot->bridge_mask &= ~BIT(port);
|
|
ocelot->bridge_mask &= ~BIT(port);
|
|
|
|
|
|
|
|
-@@ -1633,6 +1645,7 @@ static int ocelot_port_bridge_leave(stru
|
|
|
|
|
|
|
+@@ -1630,6 +1642,7 @@ static int ocelot_port_bridge_leave(stru
|
|
|
ocelot_port_set_pvid(ocelot, port, 0);
|
|
ocelot_port_set_pvid(ocelot, port, 0);
|
|
|
return ocelot_port_set_native_vlan(ocelot, port, 0);
|
|
return ocelot_port_set_native_vlan(ocelot, port, 0);
|
|
|
}
|
|
}
|
|
@@ -329,7 +329,7 @@ Signed-off-by: David S. Miller <[email protected]>
|
|
|
|
|
|
|
|
static void ocelot_set_aggr_pgids(struct ocelot *ocelot)
|
|
static void ocelot_set_aggr_pgids(struct ocelot *ocelot)
|
|
|
{
|
|
{
|
|
|
-@@ -2121,7 +2134,7 @@ static void ocelot_port_set_mtu(struct o
|
|
|
|
|
|
|
+@@ -2118,7 +2131,7 @@ static void ocelot_port_set_mtu(struct o
|
|
|
ocelot_write(ocelot, ocelot_wm_enc(atop_wm), SYS_ATOP_TOT_CFG);
|
|
ocelot_write(ocelot, ocelot_wm_enc(atop_wm), SYS_ATOP_TOT_CFG);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -338,7 +338,7 @@ Signed-off-by: David S. Miller <[email protected]>
|
|
|
{
|
|
{
|
|
|
struct ocelot_port *ocelot_port = ocelot->ports[port];
|
|
struct ocelot_port *ocelot_port = ocelot->ports[port];
|
|
|
|
|
|
|
|
-@@ -2168,6 +2181,7 @@ static void ocelot_init_port(struct ocel
|
|
|
|
|
|
|
+@@ -2165,6 +2178,7 @@ static void ocelot_init_port(struct ocel
|
|
|
/* Enable vcap lookups */
|
|
/* Enable vcap lookups */
|
|
|
ocelot_vcap_enable(ocelot, port);
|
|
ocelot_vcap_enable(ocelot, port);
|
|
|
}
|
|
}
|