aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLakhvich Dmitriy <[email protected]>2015-10-06 15:12:28 +0200
committerDavid S. Miller <[email protected]>2015-10-07 04:52:04 -0700
commitfe5c802882f2eaaf5475b072f16066038754782a (patch)
tree2f16f8c86917ab8d242100ac09720de75da6a4bc /tools/perf/scripts/python
parent9abfa8cb201b2167872654b92f567f8bff6016f4 (diff)
s390/qeth: optimize MAC handling in rx_mode callback
In layer2 mode of the qeth driver, MAC address lists from struct net_device require mapping to the OSA-card. The existing implementation is inefficient for lists with more than several MAC addresses, since for every ndo_set_rx_mode callback it removes all MAC addresses first, and then registers the current MAC address list. This patch changes implementation of ndo_set_rx_mode callback in qeth, only performing hardware registration/removal for new/deleted addresses. To shorten lookup of MAC addresses registered addresses are kept in a hashtable instead of a linear list. Signed-off-by: Lakhvich Dmitriy <[email protected]> Signed-off-by: Ursula Braun <[email protected]> Reviewed-by: Eugene Crosser <[email protected]> Reviewed-by: Thomas Richter <[email protected]> Tested-by: Christian Borntraeger <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions