]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: Fix unconditional enabling of Rx interface options
authorAjit Khaparde <ajit.khaparde@emulex.com>
Mon, 18 Nov 2013 16:44:24 +0000 (10:44 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Nov 2013 21:25:22 +0000 (16:25 -0500)
commitabb6f7620e94fa1e164bf388f5d24990ba8ee5e4
treea660d484fb439f63947ed05da42116fecec21289
parent93caee6a102bad73e5fb688be7b00ca293cc1985
be2net: Fix unconditional enabling of Rx interface options

The driver currently requests the firmware to enable rx_interface options
without considering if the interface was created with that capability.
This could cause commands to firmware to fail.

To avoid this, enable only those options on an interface if the interface
was created with that capability.

Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_cmds.c
drivers/net/ethernet/emulex/benet/be_cmds.h
drivers/net/ethernet/emulex/benet/be_main.c