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)
commit012bd38740a9f6f956cdaa69a4b9534daddb70a5
treea660d484fb439f63947ed05da42116fecec21289
parent0f13b66b01c6e2ec4913a7812414183844d1cc4f
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