]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e: remove code to handle dev_addr specially
authorJacob Keller <jacob.e.keller@intel.com>
Tue, 8 Nov 2016 21:05:17 +0000 (13:05 -0800)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 8 Mar 2017 00:41:33 +0000 (19:41 -0500)
commit2039331cdc09d66236e326404e69aa3698c9ccd3
tree3e5ff2143fb2adcb59f7ddb58ecf2659d9d26417
parent0f907a6e5603225332df210bc42dec98ddce1c54
i40e: remove code to handle dev_addr specially

Orabug: 24568124

The netdev->dev_addr MAC filter already exists in the
MAC/VLAN hash table, as it is added when we configure
the netdev in i40e_configure_netdev. Because we already
know that this address will be updated in the
hash_for_each loops, we do not need to handle it
specially. This removes duplicate code and simplifies
the i40e_vsi_add_vlan and i40e_vsi_kill_vlan functions.
Because we know these filters must be part of the
MAC/VLAN hash table, this should not have any functional
impact on what filters are included and is merely a code
simplification.

Change-ID: I5e648302dbdd7cc29efc6d203b7019c11f0b5705
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit 3c7cbd45bca8ad34c66327c919fc76e0dfee90fe)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_main.c