summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuresh Reddy <Suresh.Reddy@emulex.com>2015-03-20 11:28:24 +0100
committerDavid S. Miller <davem@davemloft.net>2015-03-20 18:25:51 +0100
commitc8ba4ad0b59c511578f8f706aae711f01c990794 (patch)
tree1c663d8db983a998b69d8f6dfb886947976f9534
parentbe2net: Prevent VFs from enabling VLAN promiscuous mode (diff)
downloadlinux-c8ba4ad0b59c511578f8f706aae711f01c990794.tar.xz
linux-c8ba4ad0b59c511578f8f706aae711f01c990794.zip
be2net: restrict MODIFY_EQ_DELAY cmd to a max of 8 EQs
Issuing this cmd for more than 8 EQs does not have the intended effect even on BEx and Skyhawk-R. This patch fixes this by issuing this cmd for upto 8 EQs at a time. Signed-off-by: Suresh Reddy <Suresh.Reddy@emulex.com> Signed-off-by: Sathya Perla <sathya.perla@emulex.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/emulex/benet/be_cmds.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_cmds.c b/drivers/net/ethernet/emulex/benet/be_cmds.c
index 3e894f449cc1..7f05f309e935 100644
--- a/drivers/net/ethernet/emulex/benet/be_cmds.c
+++ b/drivers/net/ethernet/emulex/benet/be_cmds.c
@@ -1902,15 +1902,11 @@ int be_cmd_modify_eqd(struct be_adapter *adapter, struct be_set_eqd *set_eqd,
{
int num_eqs, i = 0;
- if (lancer_chip(adapter) && num > 8) {
- while (num) {
- num_eqs = min(num, 8);
- __be_cmd_modify_eqd(adapter, &set_eqd[i], num_eqs);
- i += num_eqs;
- num -= num_eqs;
- }
- } else {
- __be_cmd_modify_eqd(adapter, set_eqd, num);
+ while (num) {
+ num_eqs = min(num, 8);
+ __be_cmd_modify_eqd(adapter, &set_eqd[i], num_eqs);
+ i += num_eqs;
+ num -= num_eqs;
}
return 0;