net: dsa: remove cross-chip support for HSR
The cross-chip notifiers for HSR are bypass operations, meaning that even though all switches in a tree are notified, only the switch specified in the info structure is targeted. We can eliminate the unnecessary complexity by deleting the cross-chip notifier logic and calling the ds->ops straight from port.c. Cc: George McCollister <george.mccollister@gmail.com> Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: George McCollister <george.mccollister@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
cad69019f2
commit
a68dc7b938
@@ -25,8 +25,6 @@ enum {
|
||||
DSA_NOTIFIER_FDB_DEL,
|
||||
DSA_NOTIFIER_HOST_FDB_ADD,
|
||||
DSA_NOTIFIER_HOST_FDB_DEL,
|
||||
DSA_NOTIFIER_HSR_JOIN,
|
||||
DSA_NOTIFIER_HSR_LEAVE,
|
||||
DSA_NOTIFIER_LAG_CHANGE,
|
||||
DSA_NOTIFIER_LAG_JOIN,
|
||||
DSA_NOTIFIER_LAG_LEAVE,
|
||||
@@ -125,13 +123,6 @@ struct dsa_switchdev_event_work {
|
||||
bool host_addr;
|
||||
};
|
||||
|
||||
/* DSA_NOTIFIER_HSR_* */
|
||||
struct dsa_notifier_hsr_info {
|
||||
struct net_device *hsr;
|
||||
int sw_index;
|
||||
int port;
|
||||
};
|
||||
|
||||
struct dsa_slave_priv {
|
||||
/* Copy of CPU port xmit for faster access in slave transmit hot path */
|
||||
struct sk_buff * (*xmit)(struct sk_buff *skb,
|
||||
|
||||
Reference in New Issue
Block a user