↑ Collapse Diff ↑
 
new file 100644
1
 

	
2
 
/*
3
 
 * DO NOT EDIT THIS FILE - IT IS GENERATED BY THE DRIVER BUILD.
4
 
 *
5
 
 * If you need to change the driver's name spaces, look in the scons
6
 
 * files for the driver's defineVmkDriver() rule.
7
 
 */
8
 

	
9
 
VMK_NAMESPACE_PROVIDES("com.vmware.libfc", "9.2.1.0");
10
 
#define VMKLNX_MY_NAMESPACE_VERSION "9.2.1.0"
11
 
VMK_NAMESPACE_REQUIRED("com.vmware.libfc", "9.2.3.0");
 
new file 100644
1
 

	
2
 
/*
3
 
 * DO NOT EDIT THIS FILE - IT IS GENERATED BY THE DRIVER BUILD.
4
 
 *
5
 
 * If you need to change the driver's name spaces, look in the scons
6
 
 * files for the driver's defineVmkDriver() rule.
7
 
 */
8
 

	
9
 
VMK_NAMESPACE_PROVIDES("com.vmware.libfcoe", "9.2.1.0");
10
 
#define VMKLNX_MY_NAMESPACE_VERSION "9.2.1.0"
11
 
VMK_NAMESPACE_REQUIRED("com.vmware.libfcoe", "9.2.3.0");
1
 
#define BUILD_NUMBER "build-2507296"
2
 
#define BUILD_NUMBER_NUMERIC 2507296
3
 
#define BUILD_NUMBER_NUMERIC_STRING "2507296"
4
 
#define PRODUCT_BUILD_NUMBER "product-build-21922"
5
 
#define PRODUCT_BUILD_NUMBER_NUMERIC 21922
6
 
#define PRODUCT_BUILD_NUMBER_NUMERIC_STRING "21922"
1
 
#define BUILD_NUMBER "build-2809209"
2
 
#define BUILD_NUMBER_NUMERIC 2809209
3
 
#define BUILD_NUMBER_NUMERIC_STRING "2809209"
4
 
#define PRODUCT_BUILD_NUMBER "product-build-28864"
5
 
#define PRODUCT_BUILD_NUMBER_NUMERIC 28864
6
 
#define PRODUCT_BUILD_NUMBER_NUMERIC_STRING "28864"
...
 
@@ -25,7 +25,7 @@
25 25
 
/*
26 26
 
 * Source file for NIC routines to access the Phantom hardware
27 27
 
 *
28
 
 * $Id: //depot/vmkdrivers/vsphere-2015/src_9/drivers/net/nx_nic/unm_nic_hw.c#1 $
28
 
 * $Id: //depot/vmkdrivers/vsphere60p01/src_9/drivers/net/nx_nic/unm_nic_hw.c#1 $
29 29
 
 *
30 30
 
 */
31 31
 
#include <linux/delay.h>
...
 
@@ -1469,7 +1469,6 @@ static inline void bnx2i_int_to_scsilun_with_sec_lun_id(uint16_t lun,
1469 1469
 
							uint64_t sllid)
1470 1470
 
{
1471 1471
 
	if (sllid != VMKLNX_SCSI_INVALID_SECONDLEVEL_ID) {
1472
 
		VMK_ASSERT(lun <= 255); /* Max LUN supported is 255. */
1473 1472
 
		memset(scsi_lun, 0, 8);
1474 1473
 
		scsi_lun->scsi_lun[0] = (lun >> 8) & 0xFF;
1475 1474
 
		scsi_lun->scsi_lun[1] = lun & 0xFF;
 
new file 100644
1
 
/* ****************************************************************
2
 
 * Copyright 2015 VMware, Inc.
3
 
 *
4
 
 * This program is free software; you can redistribute it and/or
5
 
 * modify it under the terms of the GNU General Public License
6
 
 * as published by the Free Software Foundation; either version 2
7
 
 * of the License, or (at your option) any later version.
8
 
 * ****************************************************************/
9
 

	
10
 
#include "vmkapi.h"
11
 
#include "vmklinux_version.h"
12
 
#include <linux/module.h>
13
 
/* NOTE: __namespace.h is generated by the build from the driver's .sc file. */
14
 
#include "__namespace.h"
15
 

	
16
 
#ifndef MODULE
17
 
#error "You can only compile and link vmklinux_module with modules, which" \
18
 
       "means that MODULE has to be defined when compiling it..."
19
 
#endif
20
 

	
21
 
VMK_LICENSE_INFO(VMK_MODULE_LICENSE_GPLV2);
22
 
MODULE_VERSION2(VMKLNX_STRINGIFY(PRODUCT_VERSION), VMKLNX_MY_NAMESPACE_VERSION);
23
 

	
24
 
/*
25
 
 * All vmkdriver modules are built using the latest vmakpi interface.
26
 
 */
27
 
VMK_NAMESPACE_REQUIRED(VMK_NAMESPACE_VMKAPI, VMK_NAMESPACE_CURRENT_VERSION);
28
 
#if VMKAPI_REVISION >= VMK_REVISION_FROM_NUMBERS(2, 2, 0, 0) && \
29
 
    defined(VMK_DEVKIT_USES_BINARY_INCOMPATIBLE_APIS)
30
 
VMK_NAMESPACE_REQUIRED(VMK_NAMESPACE_VMKAPI_INCOMPAT,
31
 
                       VMK_NAMESPACE_INCOMPAT_CURRENT_VERSION);
32
 
#endif
33
 

	
34
 
vmk_ModuleID vmkshim_module_id;
35
 

	
36
 
int
37
 
vmk_early_init_module(void)
38
 
{
39
 
   VMK_ReturnStatus vmk_status;
40
 

	
41
 
   vmk_status = vmk_ModuleRegister(&vmkshim_module_id, VMKAPI_REVISION);
42
 
   if (vmk_status != VMK_OK) {
43
 
      vmk_WarningMessage("Registration failed (%#x): %s",
44
 
                          vmk_status, vmk_StatusToString(vmk_status));
45
 
      return vmk_status;
46
 
   }
47
 

	
48
 
   return 0;
49
 
}
50
 

	
51
 
int
52
 
vmk_late_cleanup_module(void)
53
 
{
54
 
   return 0;
55
 
}
56
 

	
57
 
/*
58
 
 * Symbols passed in directly from libfcoe without the need for a shim function.
59
 
 */
60
 
VMK_MODULE_EXPORT_ALIAS(fcoe_ctlr_destroy);
61
 
VMK_MODULE_EXPORT_ALIAS(fcoe_ctlr_els_send);
62
 
VMK_MODULE_EXPORT_ALIAS(fcoe_ctlr_init);
63
 
VMK_MODULE_EXPORT_ALIAS(fcoe_ctlr_link_down);
64
 
VMK_MODULE_EXPORT_ALIAS(fcoe_ctlr_link_up);
65
 
VMK_MODULE_EXPORT_ALIAS(fcoe_ctlr_recv);
66
 
VMK_MODULE_EXPORT_ALIAS(fcoe_ctlr_recv_flogi);
67
 
VMK_MODULE_EXPORT_ALIAS(fcoe_libfc_config);
68
 
VMK_MODULE_EXPORT_ALIAS(fcoe_wwn_from_mac);
69
 

	
 
new file 100644
1
 
/* ****************************************************************
2
 
 * Copyright 2015 VMware, Inc.
3
 
 *
4
 
 * This program is free software; you can redistribute it and/or
5
 
 * modify it under the terms of the GNU General Public License
6
 
 * as published by the Free Software Foundation; either version 2
7
 
 * of the License, or (at your option) any later version.
8
 
 * ****************************************************************/
9
 

	
10
 
#include "vmkapi.h"
11
 
#include "vmklinux_version.h"
12
 
#include <linux/module.h>
13
 
/* NOTE: __namespace.h is generated by the build from the driver's .sc file. */
14
 
#include "__namespace.h"
15
 

	
16
 
#ifndef MODULE
17
 
#error "You can only compile and link vmklinux_module with modules, which" \
18
 
       "means that MODULE has to be defined when compiling it..."
19
 
#endif
20
 

	
21
 
VMK_LICENSE_INFO(VMK_MODULE_LICENSE_GPLV2);
22
 
MODULE_VERSION2(VMKLNX_STRINGIFY(PRODUCT_VERSION), VMKLNX_MY_NAMESPACE_VERSION);
23
 

	
24
 
/*
25
 
 * All vmkdriver modules are built using the latest vmakpi interface.
26
 
 */
27
 
VMK_NAMESPACE_REQUIRED(VMK_NAMESPACE_VMKAPI, VMK_NAMESPACE_CURRENT_VERSION);
28
 
#if VMKAPI_REVISION >= VMK_REVISION_FROM_NUMBERS(2, 2, 0, 0) && \
29
 
    defined(VMK_DEVKIT_USES_BINARY_INCOMPATIBLE_APIS)
30
 
VMK_NAMESPACE_REQUIRED(VMK_NAMESPACE_VMKAPI_INCOMPAT,
31
 
                       VMK_NAMESPACE_INCOMPAT_CURRENT_VERSION);
32
 
#endif
33
 

	
34
 
vmk_ModuleID vmkshim_module_id;
35
 

	
36
 
int
37
 
vmk_early_init_module(void)
38
 
{
39
 
   VMK_ReturnStatus vmk_status;
40
 

	
41
 
   vmk_status = vmk_ModuleRegister(&vmkshim_module_id, VMKAPI_REVISION);
42
 
   if (vmk_status != VMK_OK) {
43
 
      vmk_WarningMessage("Registration failed (%#x): %s",
44
 
                          vmk_status, vmk_StatusToString(vmk_status));
45
 
      return vmk_status;
46
 
   }
47
 

	
48
 
   return 0;
49
 
}
50
 

	
51
 
int
52
 
vmk_late_cleanup_module(void)
53
 
{
54
 
   return 0;
55
 
}
56
 

	
57
 
/*
58
 
 * Symbols passed in directly from libfc without the need for a shim function.
59
 
 */
60
 
VMK_MODULE_EXPORT_ALIAS(fc_change_queue_depth);
61
 
VMK_MODULE_EXPORT_ALIAS(fc_change_queue_type);
62
 
VMK_MODULE_EXPORT_ALIAS(fc_cpu_mask);
63
 
VMK_MODULE_EXPORT_ALIAS(fc_disc_init);
64
 
VMK_MODULE_EXPORT_ALIAS(fc_eh_abort);
65
 
VMK_MODULE_EXPORT_ALIAS(fc_eh_device_reset);
66
 
VMK_MODULE_EXPORT_ALIAS(fc_eh_host_reset);
67
 
VMK_MODULE_EXPORT_ALIAS(fc_elsct_init);
68
 
VMK_MODULE_EXPORT_ALIAS(fc_elsct_send);
69
 
VMK_MODULE_EXPORT_ALIAS(fc_exch_init);
70
 
VMK_MODULE_EXPORT_ALIAS(fc_exch_mgr_add);
71
 
VMK_MODULE_EXPORT_ALIAS(fc_exch_mgr_alloc);
72
 
VMK_MODULE_EXPORT_ALIAS(fc_exch_mgr_del);
73
 
VMK_MODULE_EXPORT_ALIAS(fc_exch_mgr_free);
74
 
VMK_MODULE_EXPORT_ALIAS(fc_exch_mgr_reset);
75
 
VMK_MODULE_EXPORT_ALIAS(fc_exch_recv);
76
 
VMK_MODULE_EXPORT_ALIAS(fc_fabric_login);
77
 
VMK_MODULE_EXPORT_ALIAS(fc_fabric_logoff);
78
 
VMK_MODULE_EXPORT_ALIAS(fc_fcp_destroy);
79
 
VMK_MODULE_EXPORT_ALIAS(fc_fcp_init);
80
 
VMK_MODULE_EXPORT_ALIAS(_fc_frame_alloc);
81
 
VMK_MODULE_EXPORT_ALIAS(fc_frame_alloc_fill);
82
 
VMK_MODULE_EXPORT_ALIAS(fc_frame_crc_check);
83
 
VMK_MODULE_EXPORT_ALIAS(fc_get_host_port_state);
84
 
VMK_MODULE_EXPORT_ALIAS(fc_get_host_port_type);
85
 
VMK_MODULE_EXPORT_ALIAS(fc_get_host_speed);
86
 
VMK_MODULE_EXPORT_ALIAS(fc_get_host_stats);
87
 
VMK_MODULE_EXPORT_ALIAS(fc_linkdown);
88
 
VMK_MODULE_EXPORT_ALIAS(fc_linkup);
89
 
VMK_MODULE_EXPORT_ALIAS(fc_lport_config);
90
 
VMK_MODULE_EXPORT_ALIAS(fc_lport_destroy);
91
 
VMK_MODULE_EXPORT_ALIAS(fc_lport_flogi_resp);
92
 
VMK_MODULE_EXPORT_ALIAS(fc_lport_init);
93
 
VMK_MODULE_EXPORT_ALIAS(fc_lport_logo_resp);
94
 
VMK_MODULE_EXPORT_ALIAS(fc_lport_reset);
95
 
VMK_MODULE_EXPORT_ALIAS(fc_queuecommand);
96
 
VMK_MODULE_EXPORT_ALIAS(fc_rport_init);
97
 
VMK_MODULE_EXPORT_ALIAS(fc_rport_terminate_io);
98
 
VMK_MODULE_EXPORT_ALIAS(fc_set_mfs);
99
 
VMK_MODULE_EXPORT_ALIAS(fc_set_rport_loss_tmo);
100
 
VMK_MODULE_EXPORT_ALIAS(fc_slave_alloc);
101
 
VMK_MODULE_EXPORT_ALIAS(fc_slave_configure);
102
 
VMK_MODULE_EXPORT_ALIAS(fc_vport_setlink);
103
 
VMK_MODULE_EXPORT_ALIAS(libfc_lun_qdepth);
104
 
VMK_MODULE_EXPORT_ALIAS(libfc_vport_create);
105
 
VMK_MODULE_EXPORT_ALIAS(vmklnx_fc_eh_bus_reset);
...
 
@@ -278,8 +278,11 @@ static void defer_bh(struct usbnet *dev, struct sk_buff *skb, struct sk_buff_hea
278 278
 
	spin_unlock(&list->lock);
279 279
 
	spin_lock(&dev->done.lock);
280 280
 
	__skb_queue_tail(&dev->done, skb);
281
 
	if (dev->done.qlen == 1)
281
 
	if (dev->done.qlen == 1) {
282
 
		spin_unlock_irqrestore(&dev->done.lock, flags);
282 283
 
		tasklet_schedule(&dev->bh);
284
 
		return;
285
 
	}
283 286
 
	spin_unlock_irqrestore(&dev->done.lock, flags);
284 287
 
}
285 288
 

	
0 comments (0 inline, 0 general)