LinuxKPI: netdevice: add structs net_device_path, net_device_path_ctx
mt76(4) is using this along with a mac80211.h functiontion pointer to resolve a path in an offload case. Sponsored by: The FreeBSD Foundation MFC after: 3 days
This commit is contained in:
@@ -160,6 +160,30 @@ struct net_device {
|
||||
|
||||
#define SET_NETDEV_DEV(_ndev, _dev) (_ndev)->dev.parent = _dev;
|
||||
|
||||
enum net_device_path_type {
|
||||
DEV_PATH_MTK_WDMA,
|
||||
};
|
||||
|
||||
struct net_device_path {
|
||||
enum net_device_path_type type;
|
||||
const struct net_device *dev;
|
||||
/* We assume there's a struct per type. */
|
||||
union {
|
||||
struct {
|
||||
uint16_t wcid;
|
||||
uint8_t wdma_idx;
|
||||
uint8_t queue;
|
||||
uint8_t bss;
|
||||
uint8_t amsdu;
|
||||
} mtk_wdma;
|
||||
};
|
||||
};
|
||||
|
||||
struct net_device_path_ctx {
|
||||
const struct net_device *dev;
|
||||
};
|
||||
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* According to linux::ipoib_main.c. */
|
||||
struct netdev_notifier_info {
|
||||
|
||||
Reference in New Issue
Block a user