11
11
static
12
12
const char iavf_client_interface_version_str [] = IAVF_CLIENT_VERSION_STR ;
13
13
static struct iavf_client * vf_registered_client ;
14
- static LIST_HEAD (i40e_devices );
14
+ static LIST_HEAD (iavf_devices );
15
15
static DEFINE_MUTEX (iavf_device_mutex );
16
16
17
17
static u32 iavf_client_virtchnl_send (struct iavf_info * ldev ,
@@ -291,11 +291,11 @@ void iavf_client_subtask(struct iavf_adapter *adapter)
291
291
**/
292
292
int iavf_lan_add_device (struct iavf_adapter * adapter )
293
293
{
294
- struct i40e_device * ldev ;
294
+ struct iavf_device * ldev ;
295
295
int ret = 0 ;
296
296
297
297
mutex_lock (& iavf_device_mutex );
298
- list_for_each_entry (ldev , & i40e_devices , list ) {
298
+ list_for_each_entry (ldev , & iavf_devices , list ) {
299
299
if (ldev -> vf == adapter ) {
300
300
ret = - EEXIST ;
301
301
goto out ;
@@ -308,7 +308,7 @@ int iavf_lan_add_device(struct iavf_adapter *adapter)
308
308
}
309
309
ldev -> vf = adapter ;
310
310
INIT_LIST_HEAD (& ldev -> list );
311
- list_add (& ldev -> list , & i40e_devices );
311
+ list_add (& ldev -> list , & iavf_devices );
312
312
dev_info (& adapter -> pdev -> dev , "Added LAN device bus=0x%02x dev=0x%02x func=0x%02x\n" ,
313
313
adapter -> hw .bus .bus_id , adapter -> hw .bus .device ,
314
314
adapter -> hw .bus .func );
@@ -331,11 +331,11 @@ int iavf_lan_add_device(struct iavf_adapter *adapter)
331
331
**/
332
332
int iavf_lan_del_device (struct iavf_adapter * adapter )
333
333
{
334
- struct i40e_device * ldev , * tmp ;
334
+ struct iavf_device * ldev , * tmp ;
335
335
int ret = - ENODEV ;
336
336
337
337
mutex_lock (& iavf_device_mutex );
338
- list_for_each_entry_safe (ldev , tmp , & i40e_devices , list ) {
338
+ list_for_each_entry_safe (ldev , tmp , & iavf_devices , list ) {
339
339
if (ldev -> vf == adapter ) {
340
340
dev_info (& adapter -> pdev -> dev ,
341
341
"Deleted LAN device bus=0x%02x dev=0x%02x func=0x%02x\n" ,
@@ -360,11 +360,11 @@ int iavf_lan_del_device(struct iavf_adapter *adapter)
360
360
static void iavf_client_release (struct iavf_client * client )
361
361
{
362
362
struct iavf_client_instance * cinst ;
363
- struct i40e_device * ldev ;
363
+ struct iavf_device * ldev ;
364
364
struct iavf_adapter * adapter ;
365
365
366
366
mutex_lock (& iavf_device_mutex );
367
- list_for_each_entry (ldev , & i40e_devices , list ) {
367
+ list_for_each_entry (ldev , & iavf_devices , list ) {
368
368
adapter = ldev -> vf ;
369
369
cinst = adapter -> cinst ;
370
370
if (!cinst )
@@ -394,11 +394,11 @@ static void iavf_client_release(struct iavf_client *client)
394
394
**/
395
395
static void iavf_client_prepare (struct iavf_client * client )
396
396
{
397
- struct i40e_device * ldev ;
397
+ struct iavf_device * ldev ;
398
398
struct iavf_adapter * adapter ;
399
399
400
400
mutex_lock (& iavf_device_mutex );
401
- list_for_each_entry (ldev , & i40e_devices , list ) {
401
+ list_for_each_entry (ldev , & iavf_devices , list ) {
402
402
adapter = ldev -> vf ;
403
403
/* Signal the watchdog to service the client */
404
404
adapter -> flags |= IAVF_FLAG_SERVICE_CLIENT_REQUESTED ;
0 commit comments