Adding upstream version 6.12.33.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
This commit is contained in:
parent
89eabb05c2
commit
79d69e5050
86698 changed files with 39662057 additions and 0 deletions
37
include/net/failover.h
Normal file
37
include/net/failover.h
Normal file
|
@ -0,0 +1,37 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
/* Copyright (c) 2018, Intel Corporation. */
|
||||
|
||||
#ifndef _FAILOVER_H
|
||||
#define _FAILOVER_H
|
||||
|
||||
#include <linux/netdevice.h>
|
||||
|
||||
struct failover_ops {
|
||||
int (*slave_pre_register)(struct net_device *slave_dev,
|
||||
struct net_device *failover_dev);
|
||||
int (*slave_register)(struct net_device *slave_dev,
|
||||
struct net_device *failover_dev);
|
||||
int (*slave_pre_unregister)(struct net_device *slave_dev,
|
||||
struct net_device *failover_dev);
|
||||
int (*slave_unregister)(struct net_device *slave_dev,
|
||||
struct net_device *failover_dev);
|
||||
int (*slave_link_change)(struct net_device *slave_dev,
|
||||
struct net_device *failover_dev);
|
||||
int (*slave_name_change)(struct net_device *slave_dev,
|
||||
struct net_device *failover_dev);
|
||||
rx_handler_result_t (*slave_handle_frame)(struct sk_buff **pskb);
|
||||
};
|
||||
|
||||
struct failover {
|
||||
struct list_head list;
|
||||
struct net_device __rcu *failover_dev;
|
||||
netdevice_tracker dev_tracker;
|
||||
struct failover_ops __rcu *ops;
|
||||
};
|
||||
|
||||
struct failover *failover_register(struct net_device *dev,
|
||||
struct failover_ops *ops);
|
||||
void failover_unregister(struct failover *failover);
|
||||
int failover_slave_unregister(struct net_device *slave_dev);
|
||||
|
||||
#endif /* _FAILOVER_H */
|
Loading…
Add table
Add a link
Reference in a new issue