aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/igb
diff options
context:
space:
mode:
authorGreg Rose <gregory.v.rose@intel.com>2010-07-01 13:39:23 +0000
committerDavid S. Miller <davem@davemloft.net>2010-07-01 22:45:57 -0700
commitde42edde131cd09a556f0b90373569d64b92ef99 (patch)
tree9b54e6e7fb42a984eab8addf5a8b133730691fd7 /drivers/net/igb
parent8d420a1b3ea65357b6eb59e4e742248d2838e904 (diff)
downloadkernel_samsung_tuna-de42edde131cd09a556f0b90373569d64b92ef99.zip
kernel_samsung_tuna-de42edde131cd09a556f0b90373569d64b92ef99.tar.gz
kernel_samsung_tuna-de42edde131cd09a556f0b90373569d64b92ef99.tar.bz2
igb: Add comment
Add explanatory comment to avoid confusion when a pointer is set to the second word of an array instead of the customary cast of a pointer to the beginning of the array. Signed-off-by: Greg Rose <gregory.v.rose@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/igb')
-rw-r--r--drivers/net/igb/igb_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c
index d811462..9cb04e2 100644
--- a/drivers/net/igb/igb_main.c
+++ b/drivers/net/igb/igb_main.c
@@ -4974,6 +4974,10 @@ static void igb_vf_reset_msg(struct igb_adapter *adapter, u32 vf)
static int igb_set_vf_mac_addr(struct igb_adapter *adapter, u32 *msg, int vf)
{
+ /*
+ * The VF MAC Address is stored in a packed array of bytes
+ * starting at the second 32 bit word of the msg array
+ */
unsigned char *addr = (char *)&msg[1];
int err = -1;