diff options
Diffstat (limited to 'include/net/switchdev.h')
| -rw-r--r-- | include/net/switchdev.h | 10 | 
1 files changed, 9 insertions, 1 deletions
| diff --git a/include/net/switchdev.h b/include/net/switchdev.h index 985619a59323..62f6a967a1b7 100644 --- a/include/net/switchdev.h +++ b/include/net/switchdev.h @@ -60,7 +60,7 @@ struct switchdev_attr {  		struct netdev_phys_item_id ppid;	/* PORT_PARENT_ID */  		u8 stp_state;				/* PORT_STP_STATE */  		unsigned long brport_flags;		/* PORT_BRIDGE_FLAGS */ -		u32 ageing_time;			/* BRIDGE_AGEING_TIME */ +		clock_t ageing_time;			/* BRIDGE_AGEING_TIME */  		bool vlan_filtering;			/* BRIDGE_VLAN_FILTERING */  	} u;  }; @@ -227,6 +227,8 @@ void switchdev_port_fwd_mark_set(struct net_device *dev,  				 struct net_device *group_dev,  				 bool joining); +bool switchdev_port_same_parent_id(struct net_device *a, +				   struct net_device *b);  #else  static inline void switchdev_deferred_process(void) @@ -351,6 +353,12 @@ static inline void switchdev_port_fwd_mark_set(struct net_device *dev,  {  } +static inline bool switchdev_port_same_parent_id(struct net_device *a, +						 struct net_device *b) +{ +	return false; +} +  #endif  #endif /* _LINUX_SWITCHDEV_H_ */ |