Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1303947 > unrolled thread

[PATCH v2 net-next] ixgbe: Fix for RAR0 not being set to default MAC addr

Started byTushar Dave <tushar.n.dave@oracle.com>
First post2016-01-07 23:20 +0100
Last post2016-01-07 23:20 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH v2 net-next] ixgbe: Fix for RAR0 not being set to default MAC addr Tushar Dave <tushar.n.dave@oracle.com> - 2016-01-07 23:20 +0100

#1303947 — [PATCH v2 net-next] ixgbe: Fix for RAR0 not being set to default MAC addr

FromTushar Dave <tushar.n.dave@oracle.com>
Date2016-01-07 23:20 +0100
Subject[PATCH v2 net-next] ixgbe: Fix for RAR0 not being set to default MAC addr
Message-ID<qOr4u-5VS-11@gated-at.bofh.it>
commit c9f53e63c208 ("ixgbe: Refactor MAC address configuration code")
introduced code that doesn't set HW register RAR0 to default mac address
but FF:FF:FF:FF:FF:FF. Due to this, ixgbe HW discards all incoming packets
that doesn't have destination mac address equals to FF:FF:FF:FF:FF:FF.

This commit sets RAR0 correctly to default HW mac address.

Signed-off-by: Tushar Dave <tushar.n.dave@oracle.com>
Tested-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
---

v2:
Minor change in code comment
This time send to all ixgbe maintainers as per get_maintainer.pl


 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
index ea9537d..3e6b208 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
@@ -9084,6 +9084,8 @@ skip_sriov:
 		goto err_sw_init;
 	}
 
+	/* Set hw->mac.addr to permanent MAC address */
+	ether_addr_copy(hw->mac.addr, hw->mac.perm_addr);
 	ixgbe_mac_set_default_filter(adapter);
 
 	setup_timer(&adapter->service_timer, &ixgbe_service_timer,
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web