]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: do not remove vids from driver table if be_vid_config() fails.
authorSathya Perla <sathya.perla@broadcom.com>
Wed, 27 Jul 2016 09:26:16 +0000 (05:26 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Aug 2016 22:38:27 +0000 (15:38 -0700)
commit4f823ae63d07fb671b0787be35cfd91bef265417
treee278ded2c75303dcd558464f437b835e66cd301a
parent2da45fb1c250ccd9c2f0a961ed55d30191b2d6fc
be2net: do not remove vids from driver table if be_vid_config() fails.

The driver currently removes a new vid from the adapter->vids[] array if
be_vid_config() returns an error, which occurs when there is an error in
HW/FW. This is wrong. After the HW/FW error is recovered from, we need the
complete vids[] array to re-program the vlan list.

Signed-off-by: Sathya Perla <sathya.perla@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c