mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
bridge: Add br_fdb_clear_offload()
When a driver unoffloads all FDB entries en bloc, it's inefficient to send the switchdev notification one by one. Add a helper that unsets the offload flag on FDB entries on a given bridge port and VLAN. Signed-off-by: Petr Machata <petrm@mellanox.com> Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com> Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e5ff4b1952
commit
43920edf3b
2 changed files with 26 additions and 0 deletions
|
@ -119,6 +119,7 @@ static inline int br_vlan_get_info(const struct net_device *dev, u16 vid,
|
|||
struct net_device *br_fdb_find_port(const struct net_device *br_dev,
|
||||
const unsigned char *addr,
|
||||
__u16 vid);
|
||||
void br_fdb_clear_offload(const struct net_device *dev, u16 vid);
|
||||
bool br_port_flag_is_set(const struct net_device *dev, unsigned long flag);
|
||||
#else
|
||||
static inline struct net_device *
|
||||
|
@ -128,6 +129,11 @@ br_fdb_find_port(const struct net_device *br_dev,
|
|||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static inline void br_fdb_clear_offload(const struct net_device *dev, u16 vid)
|
||||
{
|
||||
}
|
||||
|
||||
static inline bool
|
||||
br_port_flag_is_set(const struct net_device *dev, unsigned long flag)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue