Skip to content

Commit 9ed7533

Browse files
shirazsaleemanguy11
authored andcommitted
i40e: Prep i40e header for aux bus conversion
Add the definitions to the i40e client header file in preparation to convert i40e to use the new auxiliary bus infrastructure. This header is shared between the 'i40e' Intel networking driver providing RDMA support and the 'irdma' driver. Signed-off-by: Shiraz Saleem <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent f9f5301 commit 9ed7533

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

include/linux/net/intel/i40e_client.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#ifndef _I40E_CLIENT_H_
55
#define _I40E_CLIENT_H_
66

7+
#include <linux/auxiliary_bus.h>
8+
79
#define I40E_CLIENT_STR_LENGTH 10
810

911
/* Client interface version should be updated anytime there is a change in the
@@ -78,6 +80,7 @@ struct i40e_info {
7880
u8 lanmac[6];
7981
struct net_device *netdev;
8082
struct pci_dev *pcidev;
83+
struct auxiliary_device *aux_dev;
8184
u8 __iomem *hw_addr;
8285
u8 fid; /* function id, PF id or VF id */
8386
#define I40E_CLIENT_FTYPE_PF 0
@@ -100,6 +103,11 @@ struct i40e_info {
100103
u32 fw_build; /* firmware build number */
101104
};
102105

106+
struct i40e_auxiliary_device {
107+
struct auxiliary_device aux_dev;
108+
struct i40e_info *ldev;
109+
};
110+
103111
#define I40E_CLIENT_RESET_LEVEL_PF 1
104112
#define I40E_CLIENT_RESET_LEVEL_CORE 2
105113
#define I40E_CLIENT_VSI_FLAG_TCP_ENABLE BIT(1)
@@ -187,6 +195,8 @@ static inline bool i40e_client_is_registered(struct i40e_client *client)
187195
return test_bit(__I40E_CLIENT_REGISTERED, &client->state);
188196
}
189197

198+
void i40e_client_device_register(struct i40e_info *ldev, struct i40e_client *client);
199+
void i40e_client_device_unregister(struct i40e_info *ldev);
190200
/* used by clients */
191201
int i40e_register_client(struct i40e_client *client);
192202
int i40e_unregister_client(struct i40e_client *client);

0 commit comments

Comments
 (0)