Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
6cc43e74
Commit
6cc43e74
authored
Sep 11, 2003
by
Amir Noam
Committed by
Stephen Hemminger
Sep 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[bonding 2.6] misc fixes: missing include, typos, comments
parent
93f47055
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
22 deletions
+60
-22
Documentation/networking/ifenslave.c
Documentation/networking/ifenslave.c
+1
-0
drivers/net/bonding/bond_main.c
drivers/net/bonding/bond_main.c
+59
-22
No files found.
Documentation/networking/ifenslave.c
View file @
6cc43e74
...
...
@@ -140,6 +140,7 @@ static const char *howto_msg =
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <linux/if.h>
#include <net/if_arp.h>
#include <linux/if_ether.h>
#include <linux/if_bonding.h>
...
...
drivers/net/bonding/bond_main.c
View file @
6cc43e74
...
...
@@ -278,7 +278,7 @@
* bonding round-robin mode ignoring links after failover/recovery
*
* 2003/03/17 - Jay Vosburgh <fubar at us dot ibm dot com>
* - kmalloc fix (G
PF_KERNEL to GPF
_ATOMIC) reported by
* - kmalloc fix (G
FP_KERNEL to GFP
_ATOMIC) reported by
* Shmulik dot Hen at intel.com.
* - Based on discussion on mailing list, changed use of
* update_slave_cnt(), created wrapper functions for adding/removing
...
...
@@ -323,22 +323,22 @@
* 2003/03/18 - Amir Noam <amir.noam at intel dot com>,
* Tsippy Mendelson <tsippy.mendelson at intel dot com> and
* Shmulik Hen <shmulik.hen at intel dot com>
*
- Added support for IEEE 802.3ad Dynamic link aggregation mode.
*
- Added support for IEEE 802.3ad Dynamic link aggregation mode.
*
* 2003/05/01 - Amir Noam <amir.noam at intel dot com>
*
- Added ABI version control to restore compatibility between
*
new/old ifenslave and new/old bonding.
*
- Added ABI version control to restore compatibility between
*
new/old ifenslave and new/old bonding.
*
* 2003/05/01 - Shmulik Hen <shmulik.hen at intel dot com>
*
- Fixed bug in bond_release_all(): save old value of current_slave
*
before setting it to NULL.
*
- Changed driver versioning scheme to include version number instead
*
of release date (that is already in another field). There are 3
*
fields X.Y.Z where:
*
X - Major version - big behavior changes
*
Y - Minor version - addition of features
*
Z - Extra version - minor changes and bug fixes
*
The current version is 1.0.0 as a base line.
*
- Fixed bug in bond_release_all(): save old value of current_slave
*
before setting it to NULL.
*
- Changed driver versioning scheme to include version number instead
*
of release date (that is already in another field). There are 3
*
fields X.Y.Z where:
*
X - Major version - big behavior changes
*
Y - Minor version - addition of features
*
Z - Extra version - minor changes and bug fixes
*
The current version is 1.0.0 as a base line.
*
* 2003/05/01 - Tsippy Mendelson <tsippy.mendelson at intel dot com> and
* Amir Noam <amir.noam at intel dot com>
...
...
@@ -371,6 +371,43 @@
* - Added support for Adaptive load balancing mode which is
* equivalent to Transmit load balancing + Receive load balancing.
* new version - 2.2.0
*
* 2003/05/15 - Jay Vosburgh <fubar at us dot ibm dot com>
* - Applied fix to activebackup_arp_monitor posted to bonding-devel
* by Tony Cureington <tony.cureington * hp_com>. Fixes ARP
* monitor endless failover bug. Version to 2.2.10
*
* 2003/05/20 - Amir Noam <amir.noam at intel dot com>
* - Fixed bug in ABI version control - Don't commit to a specific
* ABI version if receiving unsupported ioctl commands.
*
* 2003/05/22 - Jay Vosburgh <fubar at us dot ibm dot com>
* - Fix ifenslave -c causing bond to loose existing routes;
* added bond_set_mac_address() that doesn't require the
* bond to be down.
* - In conjunction with fix for ifenslave -c, in
* bond_change_active(), changing to the already active slave
* is no longer an error (it successfully does nothing).
*
* 2003/06/30 - Amir Noam <amir.noam at intel dot com>
* - Fixed bond_change_active() for ALB/TLB modes.
* Version to 2.2.14.
*
* 2003/07/29 - Amir Noam <amir.noam at intel dot com>
* - Fixed ARP monitoring bug.
* Version to 2.2.15.
*
* 2003/07/31 - Willy Tarreau <willy at ods dot org>
* - Fixed kernel panic when using ARP monitoring without
* setting bond's IP address.
* Version to 2.2.16.
*
* 2003/08/06 - Amir Noam <amir.noam at intel dot com>
* - Back port from 2.6: use alloc_netdev(); fix /proc handling;
* made stats a part of bond struct so no need to allocate
* and free it separately; use standard list operations instead
* of pre-allocated array of bonds.
* Version to 2.3.0.
*/
#include <linux/config.h>
...
...
@@ -415,10 +452,10 @@
#include "bond_3ad.h"
#include "bond_alb.h"
#define DRV_VERSION
"2.2
.0"
#define DRV_RELDATE
"April 15
, 2003"
#define DRV_NAME
"bonding"
#define DRV_DESCRIPTION
"Ethernet Channel Bonding Driver"
#define DRV_VERSION
"2.3
.0"
#define DRV_RELDATE
"August 6
, 2003"
#define DRV_NAME "bonding"
#define DRV_DESCRIPTION "Ethernet Channel Bonding Driver"
static
const
char
*
version
=
DRV_NAME
".c:v"
DRV_VERSION
" ("
DRV_RELDATE
")
\n
"
;
...
...
@@ -474,8 +511,8 @@ static struct bond_parm_tbl bond_mode_tbl[] = {
{
"balance-xor"
,
BOND_MODE_XOR
},
{
"broadcast"
,
BOND_MODE_BROADCAST
},
{
"802.3ad"
,
BOND_MODE_8023AD
},
{
"
tlb"
,
BOND_MODE_TLB
},
{
"
alb"
,
BOND_MODE_ALB
},
{
"
balance-tlb"
,
BOND_MODE_TLB
},
{
"
balance-alb"
,
BOND_MODE_ALB
},
{
NULL
,
-
1
},
};
...
...
@@ -505,7 +542,7 @@ MODULE_PARM_DESC(max_bonds, "Max number of bonded devices");
MODULE_PARM
(
miimon
,
"i"
);
MODULE_PARM_DESC
(
miimon
,
"Link check interval in milliseconds"
);
MODULE_PARM
(
use_carrier
,
"i"
);
MODULE_PARM_DESC
(
use_carrier
,
"Use netif_carrier_ok (vs MII ioctls) in miimon; 0
9
for off, 1 for on (default)"
);
MODULE_PARM_DESC
(
use_carrier
,
"Use netif_carrier_ok (vs MII ioctls) in miimon; 0 for off, 1 for on (default)"
);
MODULE_PARM
(
mode
,
"s"
);
MODULE_PARM_DESC
(
mode
,
"Mode of operation : 0 for round robin, 1 for active-backup, 2 for xor"
);
MODULE_PARM
(
arp_interval
,
"i"
);
...
...
@@ -2988,7 +3025,7 @@ static int bond_ioctl(struct net_device *master_dev, struct ifreq *ifr, int cmd)
}
else
if
(
orig_app_abi_ver
!=
app_abi_ver
)
{
printk
(
KERN_ERR
"bonding: Error: already using ifenslave ABI "
"version %d; to upgrade ifenslave to version %d,"
"version %d; to upgrade ifenslave to version %d,
"
"you must first reload bonding.
\n
"
,
orig_app_abi_ver
,
app_abi_ver
);
return
-
EINVAL
;
...
...
@@ -3601,8 +3638,8 @@ static int __init bond_init(struct net_device *dev)
bond
->
bond_proc_info_file
->
owner
=
THIS_MODULE
;
#endif
/* CONFIG_PROC_FS */
list_add_tail
(
&
bond
->
bond_list
,
&
bond_dev_list
);
return
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment