diff options
author | Sathya Perla <sathyap@serverengines.com> | 2010-04-11 18:35:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-13 06:32:43 -0400 |
commit | 69d7ce72b926d4ceeacd2b7b9ffcbc37ae4b1c58 (patch) | |
tree | e3a2da577aad98934e7568a7fa5fd00d83704978 /drivers/net/benet | |
parent | 127aa0e14b3e1f8476c4781facdfac11d5546872 (diff) |
be2net: clarify promiscuous cmd with a comment
The promiscous cmd config code gives an impression that
setting a port to promisc mode will unset the other port.
This is not the case and is clarified with a comment.
Signed-off-by: Sathya Perla <sathyap@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet')
-rw-r--r-- | drivers/net/benet/be_cmds.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/benet/be_cmds.c b/drivers/net/benet/be_cmds.c index da8793026bb1..e79bf8b9af3b 100644 --- a/drivers/net/benet/be_cmds.c +++ b/drivers/net/benet/be_cmds.c | |||
@@ -1113,6 +1113,10 @@ int be_cmd_promiscuous_config(struct be_adapter *adapter, u8 port_num, bool en) | |||
1113 | be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ETH, | 1113 | be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ETH, |
1114 | OPCODE_ETH_PROMISCUOUS, sizeof(*req)); | 1114 | OPCODE_ETH_PROMISCUOUS, sizeof(*req)); |
1115 | 1115 | ||
1116 | /* In FW versions X.102.149/X.101.487 and later, | ||
1117 | * the port setting associated only with the | ||
1118 | * issuing pci function will take effect | ||
1119 | */ | ||
1116 | if (port_num) | 1120 | if (port_num) |
1117 | req->port1_promiscuous = en; | 1121 | req->port1_promiscuous = en; |
1118 | else | 1122 | else |