Messages in this thread | | | Date | Wed, 14 Jul 2010 14:04:33 -0700 (PDT) | Subject | Re: [PATCH 2.6.35-rc1] net-next: vmxnet3 fixes [2/5] Interrupt control bitmap | From | David Miller <> |
| |
From: Shreyas Bhatewara <sbhatewara@vmware.com> Date: Tue, 13 Jul 2010 17:48:04 -0700 (PDT)
> - __le32 reserved[3]; > + __le32 intrCtrl; > + __le32 reserved[2]; > }; > ... > + adapter->shared->devRead.intrConf.intrCtrl &= ~VMXNET3_IC_DISABLE_ALL; ... > + adapter->shared->devRead.intrConf.intrCtrl |= VMXNET3_IC_DISABLE_ALL; ... > + devRead->intrConf.intrCtrl |= VMXNET3_IC_DISABLE_ALL;
You need to use cpu_to_le32() and similar when accessing this value.
If you run "sparse" with endianness checking enabled you'll see warnings showing alerting you to this issue...
| |