~ubuntu-branches/ubuntu/precise/open-vm-tools/precise

« back to all changes in this revision

Viewing changes to debian/patches/03-vmxnet.patch

Tags: 2010.04.25-253928-2+ubuntu2
Add 03-vmxnet.patch and 04-vsock.patch.
Fixes building on Maverick kernels (LP: #598542)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Compile against 3.6.35
 
2
Author: Noel J. Bergman
 
3
Bug-Ubuntu: http://launchpad.net/bugs/598542
 
4
Last-Update: 2010-07-24
 
5
--- a/modules/linux/vmxnet/vmxnet.c
 
6
+++ b/modules/linux/vmxnet/vmxnet.c
 
7
@@ -2910,7 +2910,7 @@
 
8
 {
 
9
    struct Vmxnet_Private *lp = netdev_priv(dev);
 
10
     volatile u16 *mcast_table = (u16 *)lp->dd->LADRF;
 
11
-    struct dev_mc_list *dmi = dev->mc_list;
 
12
+    struct netdev_hw_addr *ha;  // struct dev_mc_list *dmi = dev->mc_list;
 
13
     u8 *addrs;
 
14
     int i, j, bit, byte;
 
15
     u32 crc, poly = CRC_POLYNOMIAL_LE;
 
16
@@ -2919,10 +2919,11 @@
 
17
     lp->dd->LADRF[0] = 0;
 
18
     lp->dd->LADRF[1] = 0;
 
19
 
 
20
+    i = 0;
 
21
     /* Add addresses */
 
22
-    for (i = 0; i < dev->mc_count; i++){
 
23
-       addrs = dmi->dmi_addr;
 
24
-       dmi   = dmi->next;
 
25
+    netdev_for_each_mc_addr(ha, dev) { // for (i = 0; i < dev->mc_count; i++){
 
26
+        addrs = ha->addr; //dmi->dmi_addr;
 
27
+       ++i; // dmi   = dmi->next;
 
28
 
 
29
        /* multicast address? */
 
30
        if (!(*addrs & 1))