]> git.ipfire.org Git - people/ms/linux.git/commit
e1000e: Fix SHRA register access for 82579
authorDavid Ertman <davidx.m.ertman@intel.com>
Wed, 5 Mar 2014 07:50:46 +0000 (07:50 +0000)
committerJiri Slaby <jslaby@suse.cz>
Tue, 29 Jul 2014 14:56:55 +0000 (16:56 +0200)
commitb0d711510509931f482d791abb5bb706d7f97a9c
tree5e9db78baed64951bffd9f95c092ef66b7163043
parent3a0722ddd6e925eecfe335b7405a0d1067b9acf4
e1000e: Fix SHRA register access for 82579

commit 96dee024ca4799d6d21588951240035c21ba1c67 upstream.

Previous commit c3a0dce35af0 fixed an overrun for the RAR on i218 devices.
This commit also attempted to homogenize the RAR/SHRA access for all parts
accessed by the e1000e driver.  This change introduced an error for
assigning MAC addresses to guest OS's for 82579 devices.

Only RAR[0] is accessible to the driver for 82579 parts, and additional
addresses must be placed into the SHRA[L|H] registers.  The rar_entry_count
was changed in the previous commit to an inaccurate value that accounted
for all RAR and SHRA registers, not just the ones usable by the driver.

This patch fixes the count to the correct value and adjusts the
e1000_rar_set_pch2lan() function to user the correct index.

Cc: John Greene <jogreene@redhat.com>
Signed-off-by: Dave Ertman <davidx.m.ertman@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Cc: "Alexander Y. Fomichev" <aleksandr.fomichev@x5.ru>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/net/ethernet/intel/e1000e/ich8lan.c
drivers/net/ethernet/intel/e1000e/ich8lan.h