OSDN Git Service

be2net: restore properly promisc mode after queues reconfiguration
authorIvan Vecera <cera@cera.cz>
Fri, 19 Jan 2018 19:23:50 +0000 (20:23 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Jan 2018 21:22:42 +0000 (16:22 -0500)
commit52acf06451930eb4cefabd5ecea56e2d46c32f76
tree3b073389be09f602e6ca1dde8d86163898ead9f8
parentad23b750933ea7bf962678972a286c78a8fa36aa
be2net: restore properly promisc mode after queues reconfiguration

The commit 622190669403 ("be2net: Request RSS capability of Rx interface
depending on number of Rx rings") modified be_update_queues() so the
IFACE (HW representation of the netdevice) is destroyed and then
re-created. This causes a regression because potential promiscuous mode
is not restored properly during be_open() because the driver thinks
that the HW has promiscuous mode already enabled.

Note that Lancer is not affected by this bug because RX-filter flags are
disabled during be_close() for this chipset.

Cc: Sathya Perla <sathya.perla@broadcom.com>
Cc: Ajit Khaparde <ajit.khaparde@broadcom.com>
Cc: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Cc: Somnath Kotur <somnath.kotur@broadcom.com>
Fixes: 622190669403 ("be2net: Request RSS capability of Rx interface depending on number of Rx rings")
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c