]> www.infradead.org Git - users/jedix/linux-maple.git/commit
be2net: Avoid unnecessary firmware updates of multicast list
authorSriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Wed, 27 Jul 2016 09:26:17 +0000 (05:26 -0400)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 8 Mar 2017 01:05:33 +0000 (20:05 -0500)
commit8b8781c5d5a69565950190c8bf5db2ea3633bdb9
treef1f9a96872f4e0fc1bb9896470d766d28904f501
parentdbf1a1d08af320d3894f5692ba00c1aafcb09df4
be2net: Avoid unnecessary firmware updates of multicast list

Orabug: 25570957

Eachtime the ndo_set_rx_mode() routine is called, the driver programs the
multicast list in the adapter without checking if there are any changes to
the list. This leads to a flood of RX_FILTER cmds when a number of vlan
interfaces are configured over the device, as the ndo_ gets
called for each vlan interface. To avoid this, we now use __dev_mc_sync()
and __dev_uc_sync() API, but only to detect if there is a change in the
mc/uc lists. Now that we use this API, the code has to be-designed to
issue these API calls for each invocation of the be_set_rx_mode() call.

Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Signed-off-by: Sathya Perla <sathya.perla@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 92fbb1df83ec17f62a46b23507ebb3f06ca10cd3)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/emulex/benet/be.h
drivers/net/ethernet/emulex/benet/be_main.c